[2025-02-09 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:00:06 [end_date_ymd] => 2025-02-09 00:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:00:06' and `end` < '2025-02-09 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-02-09 00:00:33] Production.INFO: count ==1351 [2025-02-09 00:00:33] Production.ERROR: pbx CDR StartTime 2025-02-08 21:00:06 - End Time 2025-02-09 00:00:06 [2025-02-09 00:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433241', 'tblTempUsageDetail_20' ) start [2025-02-09 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433241', 'tblTempUsageDetail_20' ) end [2025-02-09 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433241', 'tblTempVendorCDR_20' ) start [2025-02-09 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433241', 'tblTempVendorCDR_20' ) end [2025-02-09 00:00:33] Production.INFO: ProcessCDR(1,14433241,1,1,2) [2025-02-09 00:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433241', 'tblTempUsageDetail_20' ) start [2025-02-09 00:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433241', 'tblTempUsageDetail_20' ) end [2025-02-09 00:00:38] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:00:38] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:00:40] Production.INFO: ==28091== Releasing lock... [2025-02-09 00:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:00:40] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:01:06 [end_date_ymd] => 2025-02-09 00:01:06 [RateCDR] => 1 ) [2025-02-09 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:01:06' and `end` < '2025-02-09 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:01:29] Production.INFO: count ==1307 [2025-02-09 00:01:29] Production.ERROR: pbx CDR StartTime 2025-02-08 21:01:06 - End Time 2025-02-09 00:01:06 [2025-02-09 00:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433246', 'tblTempUsageDetail_20' ) start [2025-02-09 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433246', 'tblTempUsageDetail_20' ) end [2025-02-09 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433246', 'tblTempVendorCDR_20' ) start [2025-02-09 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433246', 'tblTempVendorCDR_20' ) end [2025-02-09 00:01:29] Production.INFO: ProcessCDR(1,14433246,1,1,2) [2025-02-09 00:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433246', 'tblTempUsageDetail_20' ) start [2025-02-09 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433246', 'tblTempUsageDetail_20' ) end [2025-02-09 00:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:01:32] Production.INFO: ==28184== Releasing lock... [2025-02-09 00:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:01:32] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:02:05 [end_date_ymd] => 2025-02-09 00:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:02:05' and `end` < '2025-02-09 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-02-09 00:02:39] Production.INFO: count ==536 [2025-02-09 00:02:40] Production.ERROR: pbx CDR StartTime 2025-02-08 21:02:05 - End Time 2025-02-09 00:02:05 [2025-02-09 00:02:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433251', 'tblTempUsageDetail_20' ) start [2025-02-09 00:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433251', 'tblTempUsageDetail_20' ) end [2025-02-09 00:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433251', 'tblTempVendorCDR_20' ) start [2025-02-09 00:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433251', 'tblTempVendorCDR_20' ) end [2025-02-09 00:02:40] Production.INFO: ProcessCDR(1,14433251,1,1,2) [2025-02-09 00:02:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:02:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:02:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433251', 'tblTempUsageDetail_20' ) start [2025-02-09 00:02:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433251', 'tblTempUsageDetail_20' ) end [2025-02-09 00:02:43] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:02:43] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:02:43] Production.INFO: ==28258== Releasing lock... [2025-02-09 00:02:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:02:43] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:03:05 [end_date_ymd] => 2025-02-09 00:03:05 [RateCDR] => 1 ) [2025-02-09 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:03:05' and `end` < '2025-02-09 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:03:31] Production.INFO: count ==517 [2025-02-09 00:03:32] Production.ERROR: pbx CDR StartTime 2025-02-08 21:03:05 - End Time 2025-02-09 00:03:05 [2025-02-09 00:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433256', 'tblTempUsageDetail_20' ) start [2025-02-09 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433256', 'tblTempUsageDetail_20' ) end [2025-02-09 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433256', 'tblTempVendorCDR_20' ) start [2025-02-09 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433256', 'tblTempVendorCDR_20' ) end [2025-02-09 00:03:32] Production.INFO: ProcessCDR(1,14433256,1,1,2) [2025-02-09 00:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:03:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433256', 'tblTempUsageDetail_20' ) start [2025-02-09 00:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433256', 'tblTempUsageDetail_20' ) end [2025-02-09 00:03:35] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:03:35] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:03:35] Production.INFO: ==28335== Releasing lock... [2025-02-09 00:03:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:03:35] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:04:04 [end_date_ymd] => 2025-02-09 00:04:04 [RateCDR] => 1 ) [2025-02-09 00:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:04:04' and `end` < '2025-02-09 00:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:04:29] Production.INFO: count ==503 [2025-02-09 00:04:29] Production.ERROR: pbx CDR StartTime 2025-02-08 21:04:04 - End Time 2025-02-09 00:04:04 [2025-02-09 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433261', 'tblTempUsageDetail_20' ) start [2025-02-09 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433261', 'tblTempUsageDetail_20' ) end [2025-02-09 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433261', 'tblTempVendorCDR_20' ) start [2025-02-09 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433261', 'tblTempVendorCDR_20' ) end [2025-02-09 00:04:29] Production.INFO: ProcessCDR(1,14433261,1,1,2) [2025-02-09 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433261', 'tblTempUsageDetail_20' ) start [2025-02-09 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433261', 'tblTempUsageDetail_20' ) end [2025-02-09 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:04:32] Production.INFO: ==28415== Releasing lock... [2025-02-09 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:04:32] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:05:05 [end_date_ymd] => 2025-02-09 00:05:05 [RateCDR] => 1 ) [2025-02-09 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:05:05' and `end` < '2025-02-09 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:05:29] Production.INFO: count ==503 [2025-02-09 00:05:29] Production.ERROR: pbx CDR StartTime 2025-02-08 21:05:05 - End Time 2025-02-09 00:05:05 [2025-02-09 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433266', 'tblTempUsageDetail_20' ) start [2025-02-09 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433266', 'tblTempUsageDetail_20' ) end [2025-02-09 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433266', 'tblTempVendorCDR_20' ) start [2025-02-09 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433266', 'tblTempVendorCDR_20' ) end [2025-02-09 00:05:29] Production.INFO: ProcessCDR(1,14433266,1,1,2) [2025-02-09 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433266', 'tblTempUsageDetail_20' ) start [2025-02-09 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433266', 'tblTempUsageDetail_20' ) end [2025-02-09 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:05:32] Production.INFO: ==28531== Releasing lock... [2025-02-09 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:05:32] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:06:04 [end_date_ymd] => 2025-02-09 00:06:04 [RateCDR] => 1 ) [2025-02-09 00:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:06:04' and `end` < '2025-02-09 00:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:06:18] Production.INFO: count ==493 [2025-02-09 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:06:04 - End Time 2025-02-09 00:06:04 [2025-02-09 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433271', 'tblTempUsageDetail_20' ) start [2025-02-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433271', 'tblTempUsageDetail_20' ) end [2025-02-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433271', 'tblTempVendorCDR_20' ) start [2025-02-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433271', 'tblTempVendorCDR_20' ) end [2025-02-09 00:06:18] Production.INFO: ProcessCDR(1,14433271,1,1,2) [2025-02-09 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433271', 'tblTempUsageDetail_20' ) start [2025-02-09 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433271', 'tblTempUsageDetail_20' ) end [2025-02-09 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:06:22] Production.INFO: ==28607== Releasing lock... [2025-02-09 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:06:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:07:05 [end_date_ymd] => 2025-02-09 00:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:07:05' and `end` < '2025-02-09 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-02-09 00:07:18] Production.INFO: count ==481 [2025-02-09 00:07:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:07:05 - End Time 2025-02-09 00:07:05 [2025-02-09 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433276', 'tblTempUsageDetail_20' ) start [2025-02-09 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433276', 'tblTempUsageDetail_20' ) end [2025-02-09 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433276', 'tblTempVendorCDR_20' ) start [2025-02-09 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433276', 'tblTempVendorCDR_20' ) end [2025-02-09 00:07:19] Production.INFO: ProcessCDR(1,14433276,1,1,2) [2025-02-09 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433276', 'tblTempUsageDetail_20' ) start [2025-02-09 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433276', 'tblTempUsageDetail_20' ) end [2025-02-09 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:07:22] Production.INFO: ==28683== Releasing lock... [2025-02-09 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:07:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:08:05 [end_date_ymd] => 2025-02-09 00:08:05 [RateCDR] => 1 ) [2025-02-09 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:08:05' and `end` < '2025-02-09 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:08:20] Production.INFO: count ==474 [2025-02-09 00:08:20] Production.ERROR: pbx CDR StartTime 2025-02-08 21:08:05 - End Time 2025-02-09 00:08:05 [2025-02-09 00:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433281', 'tblTempUsageDetail_20' ) start [2025-02-09 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433281', 'tblTempUsageDetail_20' ) end [2025-02-09 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433281', 'tblTempVendorCDR_20' ) start [2025-02-09 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433281', 'tblTempVendorCDR_20' ) end [2025-02-09 00:08:20] Production.INFO: ProcessCDR(1,14433281,1,1,2) [2025-02-09 00:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433281', 'tblTempUsageDetail_20' ) start [2025-02-09 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433281', 'tblTempUsageDetail_20' ) end [2025-02-09 00:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:08:24] Production.INFO: ==28755== Releasing lock... [2025-02-09 00:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:08:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:09:05 [end_date_ymd] => 2025-02-09 00:09:05 [RateCDR] => 1 ) [2025-02-09 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:09:05' and `end` < '2025-02-09 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:09:27] Production.INFO: count ==480 [2025-02-09 00:09:28] Production.ERROR: pbx CDR StartTime 2025-02-08 21:09:05 - End Time 2025-02-09 00:09:05 [2025-02-09 00:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433286', 'tblTempUsageDetail_20' ) start [2025-02-09 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433286', 'tblTempUsageDetail_20' ) end [2025-02-09 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433286', 'tblTempVendorCDR_20' ) start [2025-02-09 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433286', 'tblTempVendorCDR_20' ) end [2025-02-09 00:09:28] Production.INFO: ProcessCDR(1,14433286,1,1,2) [2025-02-09 00:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433286', 'tblTempUsageDetail_20' ) start [2025-02-09 00:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433286', 'tblTempUsageDetail_20' ) end [2025-02-09 00:09:32] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:09:32] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:09:32] Production.INFO: ==28826== Releasing lock... [2025-02-09 00:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:09:32] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:10:05 [end_date_ymd] => 2025-02-09 00:10:05 [RateCDR] => 1 ) [2025-02-09 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:10:05' and `end` < '2025-02-09 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:10:19] Production.INFO: count ==476 [2025-02-09 00:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:10:05 - End Time 2025-02-09 00:10:05 [2025-02-09 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433292', 'tblTempUsageDetail_20' ) start [2025-02-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433292', 'tblTempUsageDetail_20' ) end [2025-02-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433292', 'tblTempVendorCDR_20' ) start [2025-02-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433292', 'tblTempVendorCDR_20' ) end [2025-02-09 00:10:19] Production.INFO: ProcessCDR(1,14433292,1,1,2) [2025-02-09 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433292', 'tblTempUsageDetail_20' ) start [2025-02-09 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433292', 'tblTempUsageDetail_20' ) end [2025-02-09 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:10:23] Production.INFO: ==28910== Releasing lock... [2025-02-09 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:10:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:11:05 [end_date_ymd] => 2025-02-09 00:11:05 [RateCDR] => 1 ) [2025-02-09 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:11:05' and `end` < '2025-02-09 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:11:47] Production.INFO: count ==520 [2025-02-09 00:11:47] Production.ERROR: pbx CDR StartTime 2025-02-08 21:11:05 - End Time 2025-02-09 00:11:05 [2025-02-09 00:11:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:11:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433297', 'tblTempUsageDetail_20' ) start [2025-02-09 00:11:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433297', 'tblTempUsageDetail_20' ) end [2025-02-09 00:11:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433297', 'tblTempVendorCDR_20' ) start [2025-02-09 00:11:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433297', 'tblTempVendorCDR_20' ) end [2025-02-09 00:11:47] Production.INFO: ProcessCDR(1,14433297,1,1,2) [2025-02-09 00:11:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:11:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:11:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:11:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:11:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433297', 'tblTempUsageDetail_20' ) start [2025-02-09 00:11:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433297', 'tblTempUsageDetail_20' ) end [2025-02-09 00:11:50] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:11:50] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:11:50] Production.INFO: ==28988== Releasing lock... [2025-02-09 00:11:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:11:50] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:12:05 [end_date_ymd] => 2025-02-09 00:12:05 [RateCDR] => 1 ) [2025-02-09 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:12:05' and `end` < '2025-02-09 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:12:21] Production.INFO: count ==513 [2025-02-09 00:12:21] Production.ERROR: pbx CDR StartTime 2025-02-08 21:12:05 - End Time 2025-02-09 00:12:05 [2025-02-09 00:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433302', 'tblTempUsageDetail_20' ) start [2025-02-09 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433302', 'tblTempUsageDetail_20' ) end [2025-02-09 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433302', 'tblTempVendorCDR_20' ) start [2025-02-09 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433302', 'tblTempVendorCDR_20' ) end [2025-02-09 00:12:21] Production.INFO: ProcessCDR(1,14433302,1,1,2) [2025-02-09 00:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433302', 'tblTempUsageDetail_20' ) start [2025-02-09 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433302', 'tblTempUsageDetail_20' ) end [2025-02-09 00:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:12:24] Production.INFO: ==29063== Releasing lock... [2025-02-09 00:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:12:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:13:04 [end_date_ymd] => 2025-02-09 00:13:04 [RateCDR] => 1 ) [2025-02-09 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:13:04' and `end` < '2025-02-09 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:13:19] Production.INFO: count ==506 [2025-02-09 00:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:13:04 - End Time 2025-02-09 00:13:04 [2025-02-09 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433307', 'tblTempUsageDetail_20' ) start [2025-02-09 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433307', 'tblTempUsageDetail_20' ) end [2025-02-09 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433307', 'tblTempVendorCDR_20' ) start [2025-02-09 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433307', 'tblTempVendorCDR_20' ) end [2025-02-09 00:13:19] Production.INFO: ProcessCDR(1,14433307,1,1,2) [2025-02-09 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433307', 'tblTempUsageDetail_20' ) start [2025-02-09 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433307', 'tblTempUsageDetail_20' ) end [2025-02-09 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:13:22] Production.INFO: ==29139== Releasing lock... [2025-02-09 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:13:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:14:05 [end_date_ymd] => 2025-02-09 00:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:14:05' and `end` < '2025-02-09 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-02-09 00:14:18] Production.INFO: count ==509 [2025-02-09 00:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:14:05 - End Time 2025-02-09 00:14:05 [2025-02-09 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433312', 'tblTempUsageDetail_20' ) start [2025-02-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433312', 'tblTempUsageDetail_20' ) end [2025-02-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433312', 'tblTempVendorCDR_20' ) start [2025-02-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433312', 'tblTempVendorCDR_20' ) end [2025-02-09 00:14:18] Production.INFO: ProcessCDR(1,14433312,1,1,2) [2025-02-09 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433312', 'tblTempUsageDetail_20' ) start [2025-02-09 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433312', 'tblTempUsageDetail_20' ) end [2025-02-09 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:14:22] Production.INFO: ==29213== Releasing lock... [2025-02-09 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:15:05 [end_date_ymd] => 2025-02-09 00:15:05 [RateCDR] => 1 ) [2025-02-09 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:15:05' and `end` < '2025-02-09 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:15:18] Production.INFO: count ==509 [2025-02-09 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:15:05 - End Time 2025-02-09 00:15:05 [2025-02-09 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433317', 'tblTempUsageDetail_20' ) start [2025-02-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433317', 'tblTempUsageDetail_20' ) end [2025-02-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433317', 'tblTempVendorCDR_20' ) start [2025-02-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433317', 'tblTempVendorCDR_20' ) end [2025-02-09 00:15:18] Production.INFO: ProcessCDR(1,14433317,1,1,2) [2025-02-09 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433317', 'tblTempUsageDetail_20' ) start [2025-02-09 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433317', 'tblTempUsageDetail_20' ) end [2025-02-09 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:15:21] Production.INFO: ==29288== Releasing lock... [2025-02-09 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:16:06 [end_date_ymd] => 2025-02-09 00:16:06 [RateCDR] => 1 ) [2025-02-09 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:16:06' and `end` < '2025-02-09 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:16:19] Production.INFO: count ==512 [2025-02-09 00:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:16:06 - End Time 2025-02-09 00:16:06 [2025-02-09 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433322', 'tblTempUsageDetail_20' ) start [2025-02-09 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433322', 'tblTempUsageDetail_20' ) end [2025-02-09 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433322', 'tblTempVendorCDR_20' ) start [2025-02-09 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433322', 'tblTempVendorCDR_20' ) end [2025-02-09 00:16:19] Production.INFO: ProcessCDR(1,14433322,1,1,2) [2025-02-09 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433322', 'tblTempUsageDetail_20' ) start [2025-02-09 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433322', 'tblTempUsageDetail_20' ) end [2025-02-09 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:16:23] Production.INFO: ==29362== Releasing lock... [2025-02-09 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:16:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:17:04 [end_date_ymd] => 2025-02-09 00:17:04 [RateCDR] => 1 ) [2025-02-09 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:17:04' and `end` < '2025-02-09 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:17:17] Production.INFO: count ==510 [2025-02-09 00:17:17] Production.ERROR: pbx CDR StartTime 2025-02-08 21:17:04 - End Time 2025-02-09 00:17:04 [2025-02-09 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433327', 'tblTempUsageDetail_20' ) start [2025-02-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433327', 'tblTempUsageDetail_20' ) end [2025-02-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433327', 'tblTempVendorCDR_20' ) start [2025-02-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433327', 'tblTempVendorCDR_20' ) end [2025-02-09 00:17:18] Production.INFO: ProcessCDR(1,14433327,1,1,2) [2025-02-09 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433327', 'tblTempUsageDetail_20' ) start [2025-02-09 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433327', 'tblTempUsageDetail_20' ) end [2025-02-09 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:17:21] Production.INFO: ==29436== Releasing lock... [2025-02-09 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:18:05 [end_date_ymd] => 2025-02-09 00:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:18:05' and `end` < '2025-02-09 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-02-09 00:18:19] Production.INFO: count ==510 [2025-02-09 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:18:05 - End Time 2025-02-09 00:18:05 [2025-02-09 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433332', 'tblTempUsageDetail_20' ) start [2025-02-09 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433332', 'tblTempUsageDetail_20' ) end [2025-02-09 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433332', 'tblTempVendorCDR_20' ) start [2025-02-09 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433332', 'tblTempVendorCDR_20' ) end [2025-02-09 00:18:19] Production.INFO: ProcessCDR(1,14433332,1,1,2) [2025-02-09 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433332', 'tblTempUsageDetail_20' ) start [2025-02-09 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433332', 'tblTempUsageDetail_20' ) end [2025-02-09 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:18:22] Production.INFO: ==29527== Releasing lock... [2025-02-09 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:19:04 [end_date_ymd] => 2025-02-09 00:19:04 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:19:04' and `end` < '2025-02-09 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-02-09 00:19:18] Production.INFO: count ==502 [2025-02-09 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:19:04 - End Time 2025-02-09 00:19:04 [2025-02-09 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433337', 'tblTempUsageDetail_20' ) start [2025-02-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433337', 'tblTempUsageDetail_20' ) end [2025-02-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433337', 'tblTempVendorCDR_20' ) start [2025-02-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433337', 'tblTempVendorCDR_20' ) end [2025-02-09 00:19:18] Production.INFO: ProcessCDR(1,14433337,1,1,2) [2025-02-09 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433337', 'tblTempUsageDetail_20' ) start [2025-02-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433337', 'tblTempUsageDetail_20' ) end [2025-02-09 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:19:21] Production.INFO: ==29599== Releasing lock... [2025-02-09 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:20:05 [end_date_ymd] => 2025-02-09 00:20:05 [RateCDR] => 1 ) [2025-02-09 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:20:05' and `end` < '2025-02-09 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:20:18] Production.INFO: count ==509 [2025-02-09 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:20:05 - End Time 2025-02-09 00:20:05 [2025-02-09 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433342', 'tblTempUsageDetail_20' ) start [2025-02-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433342', 'tblTempUsageDetail_20' ) end [2025-02-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433342', 'tblTempVendorCDR_20' ) start [2025-02-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433342', 'tblTempVendorCDR_20' ) end [2025-02-09 00:20:18] Production.INFO: ProcessCDR(1,14433342,1,1,2) [2025-02-09 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433342', 'tblTempUsageDetail_20' ) start [2025-02-09 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433342', 'tblTempUsageDetail_20' ) end [2025-02-09 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:20:21] Production.INFO: ==29733== Releasing lock... [2025-02-09 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:20:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:21:05 [end_date_ymd] => 2025-02-09 00:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:21:05' and `end` < '2025-02-09 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-02-09 00:21:18] Production.INFO: count ==528 [2025-02-09 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:21:05 - End Time 2025-02-09 00:21:05 [2025-02-09 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433348', 'tblTempUsageDetail_20' ) start [2025-02-09 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433348', 'tblTempUsageDetail_20' ) end [2025-02-09 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433348', 'tblTempVendorCDR_20' ) start [2025-02-09 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433348', 'tblTempVendorCDR_20' ) end [2025-02-09 00:21:19] Production.INFO: ProcessCDR(1,14433348,1,1,2) [2025-02-09 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433348', 'tblTempUsageDetail_20' ) start [2025-02-09 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433348', 'tblTempUsageDetail_20' ) end [2025-02-09 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:21:22] Production.INFO: ==29810== Releasing lock... [2025-02-09 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:22:05 [end_date_ymd] => 2025-02-09 00:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:22:05' and `end` < '2025-02-09 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-02-09 00:22:18] Production.INFO: count ==527 [2025-02-09 00:22:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:22:05 - End Time 2025-02-09 00:22:05 [2025-02-09 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433353', 'tblTempUsageDetail_20' ) start [2025-02-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433353', 'tblTempUsageDetail_20' ) end [2025-02-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433353', 'tblTempVendorCDR_20' ) start [2025-02-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433353', 'tblTempVendorCDR_20' ) end [2025-02-09 00:22:18] Production.INFO: ProcessCDR(1,14433353,1,1,2) [2025-02-09 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433353', 'tblTempUsageDetail_20' ) start [2025-02-09 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433353', 'tblTempUsageDetail_20' ) end [2025-02-09 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:22:21] Production.INFO: ==29889== Releasing lock... [2025-02-09 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:23:05 [end_date_ymd] => 2025-02-09 00:23:05 [RateCDR] => 1 ) [2025-02-09 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:23:05' and `end` < '2025-02-09 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:23:18] Production.INFO: count ==518 [2025-02-09 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:23:05 - End Time 2025-02-09 00:23:05 [2025-02-09 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433358', 'tblTempUsageDetail_20' ) start [2025-02-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433358', 'tblTempUsageDetail_20' ) end [2025-02-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433358', 'tblTempVendorCDR_20' ) start [2025-02-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433358', 'tblTempVendorCDR_20' ) end [2025-02-09 00:23:18] Production.INFO: ProcessCDR(1,14433358,1,1,2) [2025-02-09 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433358', 'tblTempUsageDetail_20' ) start [2025-02-09 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433358', 'tblTempUsageDetail_20' ) end [2025-02-09 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:23:21] Production.INFO: ==29975== Releasing lock... [2025-02-09 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:24:04 [end_date_ymd] => 2025-02-09 00:24:04 [RateCDR] => 1 ) [2025-02-09 00: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-02-08 21:24:04' and `end` < '2025-02-09 00: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-02-09 00:24:17] Production.INFO: count ==514 [2025-02-09 00:24:17] Production.ERROR: pbx CDR StartTime 2025-02-08 21:24:04 - End Time 2025-02-09 00:24:04 [2025-02-09 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433363', 'tblTempUsageDetail_20' ) start [2025-02-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433363', 'tblTempUsageDetail_20' ) end [2025-02-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433363', 'tblTempVendorCDR_20' ) start [2025-02-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433363', 'tblTempVendorCDR_20' ) end [2025-02-09 00:24:17] Production.INFO: ProcessCDR(1,14433363,1,1,2) [2025-02-09 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433363', 'tblTempUsageDetail_20' ) start [2025-02-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433363', 'tblTempUsageDetail_20' ) end [2025-02-09 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:24:21] Production.INFO: ==30057== Releasing lock... [2025-02-09 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:25:05 [end_date_ymd] => 2025-02-09 00:25:05 [RateCDR] => 1 ) [2025-02-09 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:25:05' and `end` < '2025-02-09 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:25:18] Production.INFO: count ==523 [2025-02-09 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:25:05 - End Time 2025-02-09 00:25:05 [2025-02-09 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433368', 'tblTempUsageDetail_20' ) start [2025-02-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433368', 'tblTempUsageDetail_20' ) end [2025-02-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433368', 'tblTempVendorCDR_20' ) start [2025-02-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433368', 'tblTempVendorCDR_20' ) end [2025-02-09 00:25:18] Production.INFO: ProcessCDR(1,14433368,1,1,2) [2025-02-09 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433368', 'tblTempUsageDetail_20' ) start [2025-02-09 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433368', 'tblTempUsageDetail_20' ) end [2025-02-09 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:25:21] Production.INFO: ==30132== Releasing lock... [2025-02-09 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:26:05 [end_date_ymd] => 2025-02-09 00:26:05 [RateCDR] => 1 ) [2025-02-09 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:26:05' and `end` < '2025-02-09 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:26:18] Production.INFO: count ==515 [2025-02-09 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:26:05 - End Time 2025-02-09 00:26:05 [2025-02-09 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433373', 'tblTempUsageDetail_20' ) start [2025-02-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433373', 'tblTempUsageDetail_20' ) end [2025-02-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433373', 'tblTempVendorCDR_20' ) start [2025-02-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433373', 'tblTempVendorCDR_20' ) end [2025-02-09 00:26:18] Production.INFO: ProcessCDR(1,14433373,1,1,2) [2025-02-09 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433373', 'tblTempUsageDetail_20' ) start [2025-02-09 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433373', 'tblTempUsageDetail_20' ) end [2025-02-09 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:26:21] Production.INFO: ==30217== Releasing lock... [2025-02-09 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:27:06 [end_date_ymd] => 2025-02-09 00:27:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:27:06' and `end` < '2025-02-09 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-02-09 00:27:18] Production.INFO: count ==509 [2025-02-09 00:27:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:27:06 - End Time 2025-02-09 00:27:06 [2025-02-09 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433378', 'tblTempUsageDetail_20' ) start [2025-02-09 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433378', 'tblTempUsageDetail_20' ) end [2025-02-09 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433378', 'tblTempVendorCDR_20' ) start [2025-02-09 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433378', 'tblTempVendorCDR_20' ) end [2025-02-09 00:27:19] Production.INFO: ProcessCDR(1,14433378,1,1,2) [2025-02-09 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433378', 'tblTempUsageDetail_20' ) start [2025-02-09 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433378', 'tblTempUsageDetail_20' ) end [2025-02-09 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:27:23] Production.INFO: ==30296== Releasing lock... [2025-02-09 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:27:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:28:05 [end_date_ymd] => 2025-02-09 00:28:05 [RateCDR] => 1 ) [2025-02-09 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:28:05' and `end` < '2025-02-09 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:28:18] Production.INFO: count ==512 [2025-02-09 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:28:05 - End Time 2025-02-09 00:28:05 [2025-02-09 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433383', 'tblTempUsageDetail_20' ) start [2025-02-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433383', 'tblTempUsageDetail_20' ) end [2025-02-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433383', 'tblTempVendorCDR_20' ) start [2025-02-09 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433383', 'tblTempVendorCDR_20' ) end [2025-02-09 00:28:18] Production.INFO: ProcessCDR(1,14433383,1,1,2) [2025-02-09 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433383', 'tblTempUsageDetail_20' ) start [2025-02-09 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433383', 'tblTempUsageDetail_20' ) end [2025-02-09 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:28:21] Production.INFO: ==30378== Releasing lock... [2025-02-09 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:29:05 [end_date_ymd] => 2025-02-09 00:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:29:05' and `end` < '2025-02-09 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-02-09 00:29:18] Production.INFO: count ==508 [2025-02-09 00:29:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:29:05 - End Time 2025-02-09 00:29:05 [2025-02-09 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433388', 'tblTempUsageDetail_20' ) start [2025-02-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433388', 'tblTempUsageDetail_20' ) end [2025-02-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433388', 'tblTempVendorCDR_20' ) start [2025-02-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433388', 'tblTempVendorCDR_20' ) end [2025-02-09 00:29:18] Production.INFO: ProcessCDR(1,14433388,1,1,2) [2025-02-09 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433388', 'tblTempUsageDetail_20' ) start [2025-02-09 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433388', 'tblTempUsageDetail_20' ) end [2025-02-09 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:29:23] Production.INFO: ==30458== Releasing lock... [2025-02-09 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:30:06 [end_date_ymd] => 2025-02-09 00:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:30:06' and `end` < '2025-02-09 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-02-09 00:30:19] Production.INFO: count ==516 [2025-02-09 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:30:06 - End Time 2025-02-09 00:30:06 [2025-02-09 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433393', 'tblTempUsageDetail_20' ) start [2025-02-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433393', 'tblTempUsageDetail_20' ) end [2025-02-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433393', 'tblTempVendorCDR_20' ) start [2025-02-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433393', 'tblTempVendorCDR_20' ) end [2025-02-09 00:30:19] Production.INFO: ProcessCDR(1,14433393,1,1,2) [2025-02-09 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433393', 'tblTempUsageDetail_20' ) start [2025-02-09 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433393', 'tblTempUsageDetail_20' ) end [2025-02-09 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:30:22] Production.INFO: ==30541== Releasing lock... [2025-02-09 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:31:05 [end_date_ymd] => 2025-02-09 00:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:31:05' and `end` < '2025-02-09 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-02-09 00:31:17] Production.INFO: count ==553 [2025-02-09 00:31:17] Production.ERROR: pbx CDR StartTime 2025-02-08 21:31:05 - End Time 2025-02-09 00:31:05 [2025-02-09 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433399', 'tblTempUsageDetail_20' ) start [2025-02-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433399', 'tblTempUsageDetail_20' ) end [2025-02-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433399', 'tblTempVendorCDR_20' ) start [2025-02-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433399', 'tblTempVendorCDR_20' ) end [2025-02-09 00:31:18] Production.INFO: ProcessCDR(1,14433399,1,1,2) [2025-02-09 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433399', 'tblTempUsageDetail_20' ) start [2025-02-09 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433399', 'tblTempUsageDetail_20' ) end [2025-02-09 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:31:22] Production.INFO: ==30634== Releasing lock... [2025-02-09 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:32:05 [end_date_ymd] => 2025-02-09 00:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:32:05' and `end` < '2025-02-09 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-02-09 00:32:19] Production.INFO: count ==553 [2025-02-09 00:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:32:05 - End Time 2025-02-09 00:32:05 [2025-02-09 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433404', 'tblTempUsageDetail_20' ) start [2025-02-09 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433404', 'tblTempUsageDetail_20' ) end [2025-02-09 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433404', 'tblTempVendorCDR_20' ) start [2025-02-09 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433404', 'tblTempVendorCDR_20' ) end [2025-02-09 00:32:19] Production.INFO: ProcessCDR(1,14433404,1,1,2) [2025-02-09 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433404', 'tblTempUsageDetail_20' ) start [2025-02-09 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433404', 'tblTempUsageDetail_20' ) end [2025-02-09 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:32:22] Production.INFO: ==30712== Releasing lock... [2025-02-09 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:33:05 [end_date_ymd] => 2025-02-09 00:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:33:05' and `end` < '2025-02-09 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-02-09 00:33:17] Production.INFO: count ==557 [2025-02-09 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:33:05 - End Time 2025-02-09 00:33:05 [2025-02-09 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433409', 'tblTempUsageDetail_20' ) start [2025-02-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433409', 'tblTempUsageDetail_20' ) end [2025-02-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433409', 'tblTempVendorCDR_20' ) start [2025-02-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433409', 'tblTempVendorCDR_20' ) end [2025-02-09 00:33:18] Production.INFO: ProcessCDR(1,14433409,1,1,2) [2025-02-09 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433409', 'tblTempUsageDetail_20' ) start [2025-02-09 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433409', 'tblTempUsageDetail_20' ) end [2025-02-09 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:33:21] Production.INFO: ==30792== Releasing lock... [2025-02-09 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:34:05 [end_date_ymd] => 2025-02-09 00:34:05 [RateCDR] => 1 ) [2025-02-09 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:34:05' and `end` < '2025-02-09 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:34:19] Production.INFO: count ==560 [2025-02-09 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:34:05 - End Time 2025-02-09 00:34:05 [2025-02-09 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433414', 'tblTempUsageDetail_20' ) start [2025-02-09 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433414', 'tblTempUsageDetail_20' ) end [2025-02-09 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433414', 'tblTempVendorCDR_20' ) start [2025-02-09 00:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433414', 'tblTempVendorCDR_20' ) end [2025-02-09 00:34:20] Production.INFO: ProcessCDR(1,14433414,1,1,2) [2025-02-09 00:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433414', 'tblTempUsageDetail_20' ) start [2025-02-09 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433414', 'tblTempUsageDetail_20' ) end [2025-02-09 00:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:34:23] Production.INFO: ==30869== Releasing lock... [2025-02-09 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:34:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:35:04 [end_date_ymd] => 2025-02-09 00:35:04 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:35:04' and `end` < '2025-02-09 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-02-09 00:35:17] Production.INFO: count ==560 [2025-02-09 00:35:17] Production.ERROR: pbx CDR StartTime 2025-02-08 21:35:04 - End Time 2025-02-09 00:35:04 [2025-02-09 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433419', 'tblTempUsageDetail_20' ) start [2025-02-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433419', 'tblTempUsageDetail_20' ) end [2025-02-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433419', 'tblTempVendorCDR_20' ) start [2025-02-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433419', 'tblTempVendorCDR_20' ) end [2025-02-09 00:35:17] Production.INFO: ProcessCDR(1,14433419,1,1,2) [2025-02-09 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433419', 'tblTempUsageDetail_20' ) start [2025-02-09 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433419', 'tblTempUsageDetail_20' ) end [2025-02-09 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:35:20] Production.INFO: ==30951== Releasing lock... [2025-02-09 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:35:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:36:05 [end_date_ymd] => 2025-02-09 00:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:36:05' and `end` < '2025-02-09 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-02-09 00:36:19] Production.INFO: count ==563 [2025-02-09 00:36:20] Production.ERROR: pbx CDR StartTime 2025-02-08 21:36:05 - End Time 2025-02-09 00:36:05 [2025-02-09 00:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433424', 'tblTempUsageDetail_20' ) start [2025-02-09 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433424', 'tblTempUsageDetail_20' ) end [2025-02-09 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433424', 'tblTempVendorCDR_20' ) start [2025-02-09 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433424', 'tblTempVendorCDR_20' ) end [2025-02-09 00:36:20] Production.INFO: ProcessCDR(1,14433424,1,1,2) [2025-02-09 00:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433424', 'tblTempUsageDetail_20' ) start [2025-02-09 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433424', 'tblTempUsageDetail_20' ) end [2025-02-09 00:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:36:24] Production.INFO: ==31077== Releasing lock... [2025-02-09 00:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:36:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:37:05 [end_date_ymd] => 2025-02-09 00:37:05 [RateCDR] => 1 ) [2025-02-09 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:37:05' and `end` < '2025-02-09 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:37:17] Production.INFO: count ==567 [2025-02-09 00:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:37:05 - End Time 2025-02-09 00:37:05 [2025-02-09 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433429', 'tblTempUsageDetail_20' ) start [2025-02-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433429', 'tblTempUsageDetail_20' ) end [2025-02-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433429', 'tblTempVendorCDR_20' ) start [2025-02-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433429', 'tblTempVendorCDR_20' ) end [2025-02-09 00:37:18] Production.INFO: ProcessCDR(1,14433429,1,1,2) [2025-02-09 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433429', 'tblTempUsageDetail_20' ) start [2025-02-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433429', 'tblTempUsageDetail_20' ) end [2025-02-09 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:37:21] Production.INFO: ==31155== Releasing lock... [2025-02-09 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:37:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:38:05 [end_date_ymd] => 2025-02-09 00:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:38:05' and `end` < '2025-02-09 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-02-09 00:38:18] Production.INFO: count ==567 [2025-02-09 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:38:05 - End Time 2025-02-09 00:38:05 [2025-02-09 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433434', 'tblTempUsageDetail_20' ) start [2025-02-09 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433434', 'tblTempUsageDetail_20' ) end [2025-02-09 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433434', 'tblTempVendorCDR_20' ) start [2025-02-09 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433434', 'tblTempVendorCDR_20' ) end [2025-02-09 00:38:18] Production.INFO: ProcessCDR(1,14433434,1,1,2) [2025-02-09 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433434', 'tblTempUsageDetail_20' ) start [2025-02-09 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433434', 'tblTempUsageDetail_20' ) end [2025-02-09 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:38:21] Production.INFO: ==31233== Releasing lock... [2025-02-09 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:39:04 [end_date_ymd] => 2025-02-09 00:39:04 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:39:04' and `end` < '2025-02-09 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-02-09 00:39:18] Production.INFO: count ==561 [2025-02-09 00:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:39:04 - End Time 2025-02-09 00:39:04 [2025-02-09 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433439', 'tblTempUsageDetail_20' ) start [2025-02-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433439', 'tblTempUsageDetail_20' ) end [2025-02-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433439', 'tblTempVendorCDR_20' ) start [2025-02-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433439', 'tblTempVendorCDR_20' ) end [2025-02-09 00:39:18] Production.INFO: ProcessCDR(1,14433439,1,1,2) [2025-02-09 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433439', 'tblTempUsageDetail_20' ) start [2025-02-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433439', 'tblTempUsageDetail_20' ) end [2025-02-09 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:39:21] Production.INFO: ==31320== Releasing lock... [2025-02-09 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:40:06 [end_date_ymd] => 2025-02-09 00:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:40:06' and `end` < '2025-02-09 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-02-09 00:40:19] Production.INFO: count ==563 [2025-02-09 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:40:06 - End Time 2025-02-09 00:40:06 [2025-02-09 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433445', 'tblTempUsageDetail_20' ) start [2025-02-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433445', 'tblTempUsageDetail_20' ) end [2025-02-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433445', 'tblTempVendorCDR_20' ) start [2025-02-09 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433445', 'tblTempVendorCDR_20' ) end [2025-02-09 00:40:19] Production.INFO: ProcessCDR(1,14433445,1,1,2) [2025-02-09 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433445', 'tblTempUsageDetail_20' ) start [2025-02-09 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433445', 'tblTempUsageDetail_20' ) end [2025-02-09 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:40:22] Production.INFO: ==31403== Releasing lock... [2025-02-09 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:41:05 [end_date_ymd] => 2025-02-09 00:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:41:05' and `end` < '2025-02-09 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-02-09 00:41:18] Production.INFO: count ==570 [2025-02-09 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:41:05 - End Time 2025-02-09 00:41:05 [2025-02-09 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433450', 'tblTempUsageDetail_20' ) start [2025-02-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433450', 'tblTempUsageDetail_20' ) end [2025-02-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433450', 'tblTempVendorCDR_20' ) start [2025-02-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433450', 'tblTempVendorCDR_20' ) end [2025-02-09 00:41:18] Production.INFO: ProcessCDR(1,14433450,1,1,2) [2025-02-09 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433450', 'tblTempUsageDetail_20' ) start [2025-02-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433450', 'tblTempUsageDetail_20' ) end [2025-02-09 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:41:21] Production.INFO: ==31489== Releasing lock... [2025-02-09 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:42:05 [end_date_ymd] => 2025-02-09 00:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:42:05' and `end` < '2025-02-09 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-02-09 00:42:18] Production.INFO: count ==695 [2025-02-09 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:42:05 - End Time 2025-02-09 00:42:05 [2025-02-09 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433455', 'tblTempUsageDetail_20' ) start [2025-02-09 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433455', 'tblTempUsageDetail_20' ) end [2025-02-09 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433455', 'tblTempVendorCDR_20' ) start [2025-02-09 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433455', 'tblTempVendorCDR_20' ) end [2025-02-09 00:42:19] Production.INFO: ProcessCDR(1,14433455,1,1,2) [2025-02-09 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433455', 'tblTempUsageDetail_20' ) start [2025-02-09 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433455', 'tblTempUsageDetail_20' ) end [2025-02-09 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:42:22] Production.INFO: ==31561== Releasing lock... [2025-02-09 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:43:05 [end_date_ymd] => 2025-02-09 00:43:05 [RateCDR] => 1 ) [2025-02-09 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:43:05' and `end` < '2025-02-09 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:43:18] Production.INFO: count ==687 [2025-02-09 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:43:05 - End Time 2025-02-09 00:43:05 [2025-02-09 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433460', 'tblTempUsageDetail_20' ) start [2025-02-09 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433460', 'tblTempUsageDetail_20' ) end [2025-02-09 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433460', 'tblTempVendorCDR_20' ) start [2025-02-09 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433460', 'tblTempVendorCDR_20' ) end [2025-02-09 00:43:19] Production.INFO: ProcessCDR(1,14433460,1,1,2) [2025-02-09 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433460', 'tblTempUsageDetail_20' ) start [2025-02-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433460', 'tblTempUsageDetail_20' ) end [2025-02-09 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:43:21] Production.INFO: ==31645== Releasing lock... [2025-02-09 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:44:04 [end_date_ymd] => 2025-02-09 00:44:04 [RateCDR] => 1 ) [2025-02-09 00:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:44:04' and `end` < '2025-02-09 00:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:44:18] Production.INFO: count ==680 [2025-02-09 00:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:44:04 - End Time 2025-02-09 00:44:04 [2025-02-09 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433465', 'tblTempUsageDetail_20' ) start [2025-02-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433465', 'tblTempUsageDetail_20' ) end [2025-02-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433465', 'tblTempVendorCDR_20' ) start [2025-02-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433465', 'tblTempVendorCDR_20' ) end [2025-02-09 00:44:18] Production.INFO: ProcessCDR(1,14433465,1,1,2) [2025-02-09 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433465', 'tblTempUsageDetail_20' ) start [2025-02-09 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433465', 'tblTempUsageDetail_20' ) end [2025-02-09 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:44:22] Production.INFO: ==31722== Releasing lock... [2025-02-09 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:45:05 [end_date_ymd] => 2025-02-09 00:45:05 [RateCDR] => 1 ) [2025-02-09 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:45:05' and `end` < '2025-02-09 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:45:18] Production.INFO: count ==670 [2025-02-09 00:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:45:05 - End Time 2025-02-09 00:45:05 [2025-02-09 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433470', 'tblTempUsageDetail_20' ) start [2025-02-09 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433470', 'tblTempUsageDetail_20' ) end [2025-02-09 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433470', 'tblTempVendorCDR_20' ) start [2025-02-09 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433470', 'tblTempVendorCDR_20' ) end [2025-02-09 00:45:19] Production.INFO: ProcessCDR(1,14433470,1,1,2) [2025-02-09 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433470', 'tblTempUsageDetail_20' ) start [2025-02-09 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433470', 'tblTempUsageDetail_20' ) end [2025-02-09 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:45:22] Production.INFO: ==31811== Releasing lock... [2025-02-09 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:46:05 [end_date_ymd] => 2025-02-09 00:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:46:05' and `end` < '2025-02-09 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-02-09 00:46:18] Production.INFO: count ==667 [2025-02-09 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:46:05 - End Time 2025-02-09 00:46:05 [2025-02-09 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433475', 'tblTempUsageDetail_20' ) start [2025-02-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433475', 'tblTempUsageDetail_20' ) end [2025-02-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433475', 'tblTempVendorCDR_20' ) start [2025-02-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433475', 'tblTempVendorCDR_20' ) end [2025-02-09 00:46:18] Production.INFO: ProcessCDR(1,14433475,1,1,2) [2025-02-09 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433475', 'tblTempUsageDetail_20' ) start [2025-02-09 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433475', 'tblTempUsageDetail_20' ) end [2025-02-09 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:46:21] Production.INFO: ==31882== Releasing lock... [2025-02-09 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:47:05 [end_date_ymd] => 2025-02-09 00:47:05 [RateCDR] => 1 ) [2025-02-09 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:47:05' and `end` < '2025-02-09 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:47:18] Production.INFO: count ==657 [2025-02-09 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:47:05 - End Time 2025-02-09 00:47:05 [2025-02-09 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433478', 'tblTempUsageDetail_20' ) start [2025-02-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433478', 'tblTempUsageDetail_20' ) end [2025-02-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433478', 'tblTempVendorCDR_20' ) start [2025-02-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433478', 'tblTempVendorCDR_20' ) end [2025-02-09 00:47:18] Production.INFO: ProcessCDR(1,14433478,1,1,2) [2025-02-09 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433478', 'tblTempUsageDetail_20' ) start [2025-02-09 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433478', 'tblTempUsageDetail_20' ) end [2025-02-09 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:47:21] Production.INFO: ==31970== Releasing lock... [2025-02-09 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:48:05 [end_date_ymd] => 2025-02-09 00:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:48:05' and `end` < '2025-02-09 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-02-09 00:48:18] Production.INFO: count ==657 [2025-02-09 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:48:05 - End Time 2025-02-09 00:48:05 [2025-02-09 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433485', 'tblTempUsageDetail_20' ) start [2025-02-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433485', 'tblTempUsageDetail_20' ) end [2025-02-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433485', 'tblTempVendorCDR_20' ) start [2025-02-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433485', 'tblTempVendorCDR_20' ) end [2025-02-09 00:48:18] Production.INFO: ProcessCDR(1,14433485,1,1,2) [2025-02-09 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433485', 'tblTempUsageDetail_20' ) start [2025-02-09 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433485', 'tblTempUsageDetail_20' ) end [2025-02-09 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:48:21] Production.INFO: ==32046== Releasing lock... [2025-02-09 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:48:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:49:05 [end_date_ymd] => 2025-02-09 00:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:49:05' and `end` < '2025-02-09 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-02-09 00:49:18] Production.INFO: count ==658 [2025-02-09 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:49:05 - End Time 2025-02-09 00:49:05 [2025-02-09 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433490', 'tblTempUsageDetail_20' ) start [2025-02-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433490', 'tblTempUsageDetail_20' ) end [2025-02-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433490', 'tblTempVendorCDR_20' ) start [2025-02-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433490', 'tblTempVendorCDR_20' ) end [2025-02-09 00:49:18] Production.INFO: ProcessCDR(1,14433490,1,1,2) [2025-02-09 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433490', 'tblTempUsageDetail_20' ) start [2025-02-09 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433490', 'tblTempUsageDetail_20' ) end [2025-02-09 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:49:22] Production.INFO: ==32129== Releasing lock... [2025-02-09 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:50:05 [end_date_ymd] => 2025-02-09 00:50:05 [RateCDR] => 1 ) [2025-02-09 00: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-02-08 21:50:05' and `end` < '2025-02-09 00: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-02-09 00:50:18] Production.INFO: count ==659 [2025-02-09 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:50:05 - End Time 2025-02-09 00:50:05 [2025-02-09 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433495', 'tblTempUsageDetail_20' ) start [2025-02-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433495', 'tblTempUsageDetail_20' ) end [2025-02-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433495', 'tblTempVendorCDR_20' ) start [2025-02-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433495', 'tblTempVendorCDR_20' ) end [2025-02-09 00:50:18] Production.INFO: ProcessCDR(1,14433495,1,1,2) [2025-02-09 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433495', 'tblTempUsageDetail_20' ) start [2025-02-09 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433495', 'tblTempUsageDetail_20' ) end [2025-02-09 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:50:21] Production.INFO: ==32213== Releasing lock... [2025-02-09 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:51:05 [end_date_ymd] => 2025-02-09 00:51:05 [RateCDR] => 1 ) [2025-02-09 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:51:05' and `end` < '2025-02-09 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-02-09 00:51:18] Production.INFO: count ==677 [2025-02-09 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:51:05 - End Time 2025-02-09 00:51:05 [2025-02-09 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433501', 'tblTempUsageDetail_20' ) start [2025-02-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433501', 'tblTempUsageDetail_20' ) end [2025-02-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433501', 'tblTempVendorCDR_20' ) start [2025-02-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433501', 'tblTempVendorCDR_20' ) end [2025-02-09 00:51:18] Production.INFO: ProcessCDR(1,14433501,1,1,2) [2025-02-09 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433501', 'tblTempUsageDetail_20' ) start [2025-02-09 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433501', 'tblTempUsageDetail_20' ) end [2025-02-09 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:51:23] Production.INFO: ==32328== Releasing lock... [2025-02-09 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:51:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:52:06 [end_date_ymd] => 2025-02-09 00:52:06 [RateCDR] => 1 ) [2025-02-09 00: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-02-08 21:52:06' and `end` < '2025-02-09 00: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-02-09 00:52:19] Production.INFO: count ==668 [2025-02-09 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:52:06 - End Time 2025-02-09 00:52:06 [2025-02-09 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433506', 'tblTempUsageDetail_20' ) start [2025-02-09 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433506', 'tblTempUsageDetail_20' ) end [2025-02-09 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433506', 'tblTempVendorCDR_20' ) start [2025-02-09 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433506', 'tblTempVendorCDR_20' ) end [2025-02-09 00:52:19] Production.INFO: ProcessCDR(1,14433506,1,1,2) [2025-02-09 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433506', 'tblTempUsageDetail_20' ) start [2025-02-09 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433506', 'tblTempUsageDetail_20' ) end [2025-02-09 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:52:22] Production.INFO: ==32407== Releasing lock... [2025-02-09 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:53:05 [end_date_ymd] => 2025-02-09 00:53:05 [RateCDR] => 1 ) [2025-02-09 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:53:05' and `end` < '2025-02-09 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:53:19] Production.INFO: count ==662 [2025-02-09 00:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:53:05 - End Time 2025-02-09 00:53:05 [2025-02-09 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433511', 'tblTempUsageDetail_20' ) start [2025-02-09 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433511', 'tblTempUsageDetail_20' ) end [2025-02-09 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433511', 'tblTempVendorCDR_20' ) start [2025-02-09 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433511', 'tblTempVendorCDR_20' ) end [2025-02-09 00:53:19] Production.INFO: ProcessCDR(1,14433511,1,1,2) [2025-02-09 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433511', 'tblTempUsageDetail_20' ) start [2025-02-09 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433511', 'tblTempUsageDetail_20' ) end [2025-02-09 00:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:53:24] Production.INFO: ==32487== Releasing lock... [2025-02-09 00:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:54:06 [end_date_ymd] => 2025-02-09 00:54:06 [RateCDR] => 1 ) [2025-02-09 00: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-02-08 21:54:06' and `end` < '2025-02-09 00: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-02-09 00:54:18] Production.INFO: count ==658 [2025-02-09 00:54:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:54:06 - End Time 2025-02-09 00:54:06 [2025-02-09 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433516', 'tblTempUsageDetail_20' ) start [2025-02-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433516', 'tblTempUsageDetail_20' ) end [2025-02-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433516', 'tblTempVendorCDR_20' ) start [2025-02-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433516', 'tblTempVendorCDR_20' ) end [2025-02-09 00:54:19] Production.INFO: ProcessCDR(1,14433516,1,1,2) [2025-02-09 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433516', 'tblTempUsageDetail_20' ) start [2025-02-09 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433516', 'tblTempUsageDetail_20' ) end [2025-02-09 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:54:22] Production.INFO: ==32566== Releasing lock... [2025-02-09 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:55:05 [end_date_ymd] => 2025-02-09 00:55:05 [RateCDR] => 1 ) [2025-02-09 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:55:05' and `end` < '2025-02-09 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:55:18] Production.INFO: count ==654 [2025-02-09 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:55:05 - End Time 2025-02-09 00:55:05 [2025-02-09 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433521', 'tblTempUsageDetail_20' ) start [2025-02-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433521', 'tblTempUsageDetail_20' ) end [2025-02-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433521', 'tblTempVendorCDR_20' ) start [2025-02-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433521', 'tblTempVendorCDR_20' ) end [2025-02-09 00:55:18] Production.INFO: ProcessCDR(1,14433521,1,1,2) [2025-02-09 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433521', 'tblTempUsageDetail_20' ) start [2025-02-09 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433521', 'tblTempUsageDetail_20' ) end [2025-02-09 00:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:55:23] Production.INFO: ==32650== Releasing lock... [2025-02-09 00:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:55:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:56:05 [end_date_ymd] => 2025-02-09 00:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:56:05' and `end` < '2025-02-09 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-02-09 00:56:19] Production.INFO: count ==648 [2025-02-09 00:56:20] Production.ERROR: pbx CDR StartTime 2025-02-08 21:56:05 - End Time 2025-02-09 00:56:05 [2025-02-09 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433526', 'tblTempUsageDetail_20' ) start [2025-02-09 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433526', 'tblTempUsageDetail_20' ) end [2025-02-09 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433526', 'tblTempVendorCDR_20' ) start [2025-02-09 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433526', 'tblTempVendorCDR_20' ) end [2025-02-09 00:56:20] Production.INFO: ProcessCDR(1,14433526,1,1,2) [2025-02-09 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433526', 'tblTempUsageDetail_20' ) start [2025-02-09 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433526', 'tblTempUsageDetail_20' ) end [2025-02-09 00:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:56:24] Production.INFO: ==32727== Releasing lock... [2025-02-09 00:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:56:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:57:05 [end_date_ymd] => 2025-02-09 00:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:57:05' and `end` < '2025-02-09 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-02-09 00:57:17] Production.INFO: count ==634 [2025-02-09 00:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 21:57:05 - End Time 2025-02-09 00:57:05 [2025-02-09 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433531', 'tblTempUsageDetail_20' ) start [2025-02-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433531', 'tblTempUsageDetail_20' ) end [2025-02-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433531', 'tblTempVendorCDR_20' ) start [2025-02-09 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433531', 'tblTempVendorCDR_20' ) end [2025-02-09 00:57:18] Production.INFO: ProcessCDR(1,14433531,1,1,2) [2025-02-09 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433531', 'tblTempUsageDetail_20' ) start [2025-02-09 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433531', 'tblTempUsageDetail_20' ) end [2025-02-09 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:57:21] Production.INFO: ==361== Releasing lock... [2025-02-09 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:58:05 [end_date_ymd] => 2025-02-09 00:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 21:58:05' and `end` < '2025-02-09 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-02-09 00:58:20] Production.INFO: count ==624 [2025-02-09 00:58:20] Production.ERROR: pbx CDR StartTime 2025-02-08 21:58:05 - End Time 2025-02-09 00:58:05 [2025-02-09 00:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433536', 'tblTempUsageDetail_20' ) start [2025-02-09 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433536', 'tblTempUsageDetail_20' ) end [2025-02-09 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433536', 'tblTempVendorCDR_20' ) start [2025-02-09 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433536', 'tblTempVendorCDR_20' ) end [2025-02-09 00:58:20] Production.INFO: ProcessCDR(1,14433536,1,1,2) [2025-02-09 00:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433536', 'tblTempUsageDetail_20' ) start [2025-02-09 00:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433536', 'tblTempUsageDetail_20' ) end [2025-02-09 00:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:58:24] Production.INFO: ==435== Releasing lock... [2025-02-09 00:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:58:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 21:59:05 [end_date_ymd] => 2025-02-09 00:59:05 [RateCDR] => 1 ) [2025-02-09 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 21:59:05' and `end` < '2025-02-09 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 00:59:19] Production.INFO: count ==617 [2025-02-09 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-08 21:59:05 - End Time 2025-02-09 00:59:05 [2025-02-09 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433541', 'tblTempUsageDetail_20' ) start [2025-02-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433541', 'tblTempUsageDetail_20' ) end [2025-02-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433541', 'tblTempVendorCDR_20' ) start [2025-02-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433541', 'tblTempVendorCDR_20' ) end [2025-02-09 00:59:19] Production.INFO: ProcessCDR(1,14433541,1,1,2) [2025-02-09 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433541', 'tblTempUsageDetail_20' ) start [2025-02-09 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433541', 'tblTempUsageDetail_20' ) end [2025-02-09 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 00:59:22] Production.INFO: ==524== Releasing lock... [2025-02-09 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 00:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:00:06 [end_date_ymd] => 2025-02-09 01:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:00:06' and `end` < '2025-02-09 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-02-09 01:00:19] Production.INFO: count ==634 [2025-02-09 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:00:06 - End Time 2025-02-09 01:00:06 [2025-02-09 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433546', 'tblTempUsageDetail_20' ) start [2025-02-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433546', 'tblTempUsageDetail_20' ) end [2025-02-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433546', 'tblTempVendorCDR_20' ) start [2025-02-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433546', 'tblTempVendorCDR_20' ) end [2025-02-09 01:00:19] Production.INFO: ProcessCDR(1,14433546,1,1,2) [2025-02-09 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433546', 'tblTempUsageDetail_20' ) start [2025-02-09 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433546', 'tblTempUsageDetail_20' ) end [2025-02-09 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:00:23] Production.INFO: ==603== Releasing lock... [2025-02-09 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:00:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:01:05 [end_date_ymd] => 2025-02-09 01:01:05 [RateCDR] => 1 ) [2025-02-09 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:01:05' and `end` < '2025-02-09 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:01:19] Production.INFO: count ==660 [2025-02-09 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:01:05 - End Time 2025-02-09 01:01:05 [2025-02-09 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433552', 'tblTempUsageDetail_20' ) start [2025-02-09 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433552', 'tblTempUsageDetail_20' ) end [2025-02-09 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433552', 'tblTempVendorCDR_20' ) start [2025-02-09 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433552', 'tblTempVendorCDR_20' ) end [2025-02-09 01:01:19] Production.INFO: ProcessCDR(1,14433552,1,1,2) [2025-02-09 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433552', 'tblTempUsageDetail_20' ) start [2025-02-09 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433552', 'tblTempUsageDetail_20' ) end [2025-02-09 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:01:22] Production.INFO: ==720== Releasing lock... [2025-02-09 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:02:05 [end_date_ymd] => 2025-02-09 01:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:02:05' and `end` < '2025-02-09 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-02-09 01:02:18] Production.INFO: count ==650 [2025-02-09 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:02:05 - End Time 2025-02-09 01:02:05 [2025-02-09 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433557', 'tblTempUsageDetail_20' ) start [2025-02-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433557', 'tblTempUsageDetail_20' ) end [2025-02-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433557', 'tblTempVendorCDR_20' ) start [2025-02-09 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433557', 'tblTempVendorCDR_20' ) end [2025-02-09 01:02:18] Production.INFO: ProcessCDR(1,14433557,1,1,2) [2025-02-09 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433557', 'tblTempUsageDetail_20' ) start [2025-02-09 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433557', 'tblTempUsageDetail_20' ) end [2025-02-09 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:02:23] Production.INFO: ==796== Releasing lock... [2025-02-09 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:03:05 [end_date_ymd] => 2025-02-09 01:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:03:05' and `end` < '2025-02-09 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-02-09 01:03:20] Production.INFO: count ==653 [2025-02-09 01:03:20] Production.ERROR: pbx CDR StartTime 2025-02-08 22:03:05 - End Time 2025-02-09 01:03:05 [2025-02-09 01:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433562', 'tblTempUsageDetail_20' ) start [2025-02-09 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433562', 'tblTempUsageDetail_20' ) end [2025-02-09 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433562', 'tblTempVendorCDR_20' ) start [2025-02-09 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433562', 'tblTempVendorCDR_20' ) end [2025-02-09 01:03:20] Production.INFO: ProcessCDR(1,14433562,1,1,2) [2025-02-09 01:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433562', 'tblTempUsageDetail_20' ) start [2025-02-09 01:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433562', 'tblTempUsageDetail_20' ) end [2025-02-09 01:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:03:25] Production.INFO: ==866== Releasing lock... [2025-02-09 01:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:03:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:04:05 [end_date_ymd] => 2025-02-09 01:04:05 [RateCDR] => 1 ) [2025-02-09 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:04:05' and `end` < '2025-02-09 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:04:20] Production.INFO: count ==649 [2025-02-09 01:04:20] Production.ERROR: pbx CDR StartTime 2025-02-08 22:04:05 - End Time 2025-02-09 01:04:05 [2025-02-09 01:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433567', 'tblTempUsageDetail_20' ) start [2025-02-09 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433567', 'tblTempUsageDetail_20' ) end [2025-02-09 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433567', 'tblTempVendorCDR_20' ) start [2025-02-09 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433567', 'tblTempVendorCDR_20' ) end [2025-02-09 01:04:20] Production.INFO: ProcessCDR(1,14433567,1,1,2) [2025-02-09 01:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433567', 'tblTempUsageDetail_20' ) start [2025-02-09 01:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433567', 'tblTempUsageDetail_20' ) end [2025-02-09 01:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:04:25] Production.INFO: ==941== Releasing lock... [2025-02-09 01:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:04:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:05:05 [end_date_ymd] => 2025-02-09 01:05:05 [RateCDR] => 1 ) [2025-02-09 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:05:05' and `end` < '2025-02-09 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:05:18] Production.INFO: count ==646 [2025-02-09 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:05:05 - End Time 2025-02-09 01:05:05 [2025-02-09 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433572', 'tblTempUsageDetail_20' ) start [2025-02-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433572', 'tblTempUsageDetail_20' ) end [2025-02-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433572', 'tblTempVendorCDR_20' ) start [2025-02-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433572', 'tblTempVendorCDR_20' ) end [2025-02-09 01:05:18] Production.INFO: ProcessCDR(1,14433572,1,1,2) [2025-02-09 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433572', 'tblTempUsageDetail_20' ) start [2025-02-09 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433572', 'tblTempUsageDetail_20' ) end [2025-02-09 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:05:22] Production.INFO: ==1015== Releasing lock... [2025-02-09 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:06:06 [end_date_ymd] => 2025-02-09 01:06:06 [RateCDR] => 1 ) [2025-02-09 01: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-02-08 22:06:06' and `end` < '2025-02-09 01: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-02-09 01:06:19] Production.INFO: count ==643 [2025-02-09 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:06:06 - End Time 2025-02-09 01:06:06 [2025-02-09 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433577', 'tblTempUsageDetail_20' ) start [2025-02-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433577', 'tblTempUsageDetail_20' ) end [2025-02-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433577', 'tblTempVendorCDR_20' ) start [2025-02-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433577', 'tblTempVendorCDR_20' ) end [2025-02-09 01:06:19] Production.INFO: ProcessCDR(1,14433577,1,1,2) [2025-02-09 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433577', 'tblTempUsageDetail_20' ) start [2025-02-09 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433577', 'tblTempUsageDetail_20' ) end [2025-02-09 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:06:22] Production.INFO: ==1086== Releasing lock... [2025-02-09 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:07:05 [end_date_ymd] => 2025-02-09 01:07:05 [RateCDR] => 1 ) [2025-02-09 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:07:05' and `end` < '2025-02-09 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:07:18] Production.INFO: count ==640 [2025-02-09 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:07:05 - End Time 2025-02-09 01:07:05 [2025-02-09 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433582', 'tblTempUsageDetail_20' ) start [2025-02-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433582', 'tblTempUsageDetail_20' ) end [2025-02-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433582', 'tblTempVendorCDR_20' ) start [2025-02-09 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433582', 'tblTempVendorCDR_20' ) end [2025-02-09 01:07:18] Production.INFO: ProcessCDR(1,14433582,1,1,2) [2025-02-09 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433582', 'tblTempUsageDetail_20' ) start [2025-02-09 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433582', 'tblTempUsageDetail_20' ) end [2025-02-09 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:07:22] Production.INFO: ==1204== Releasing lock... [2025-02-09 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:07:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:08:05 [end_date_ymd] => 2025-02-09 01:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:08:05' and `end` < '2025-02-09 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-02-09 01:08:18] Production.INFO: count ==636 [2025-02-09 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:08:05 - End Time 2025-02-09 01:08:05 [2025-02-09 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433587', 'tblTempUsageDetail_20' ) start [2025-02-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433587', 'tblTempUsageDetail_20' ) end [2025-02-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433587', 'tblTempVendorCDR_20' ) start [2025-02-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433587', 'tblTempVendorCDR_20' ) end [2025-02-09 01:08:18] Production.INFO: ProcessCDR(1,14433587,1,1,2) [2025-02-09 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433587', 'tblTempUsageDetail_20' ) start [2025-02-09 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433587', 'tblTempUsageDetail_20' ) end [2025-02-09 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:08:22] Production.INFO: ==1290== Releasing lock... [2025-02-09 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:09:05 [end_date_ymd] => 2025-02-09 01:09:05 [RateCDR] => 1 ) [2025-02-09 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:09:05' and `end` < '2025-02-09 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:09:17] Production.INFO: count ==623 [2025-02-09 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:09:05 - End Time 2025-02-09 01:09:05 [2025-02-09 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433592', 'tblTempUsageDetail_20' ) start [2025-02-09 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433592', 'tblTempUsageDetail_20' ) end [2025-02-09 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433592', 'tblTempVendorCDR_20' ) start [2025-02-09 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433592', 'tblTempVendorCDR_20' ) end [2025-02-09 01:09:18] Production.INFO: ProcessCDR(1,14433592,1,1,2) [2025-02-09 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433592', 'tblTempUsageDetail_20' ) start [2025-02-09 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433592', 'tblTempUsageDetail_20' ) end [2025-02-09 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:09:21] Production.INFO: ==1361== Releasing lock... [2025-02-09 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:10:05 [end_date_ymd] => 2025-02-09 01:10:05 [RateCDR] => 1 ) [2025-02-09 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:10:05' and `end` < '2025-02-09 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:10:18] Production.INFO: count ==628 [2025-02-09 01:10:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:10:05 - End Time 2025-02-09 01:10:05 [2025-02-09 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433598', 'tblTempUsageDetail_20' ) start [2025-02-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433598', 'tblTempUsageDetail_20' ) end [2025-02-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433598', 'tblTempVendorCDR_20' ) start [2025-02-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433598', 'tblTempVendorCDR_20' ) end [2025-02-09 01:10:18] Production.INFO: ProcessCDR(1,14433598,1,1,2) [2025-02-09 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433598', 'tblTempUsageDetail_20' ) start [2025-02-09 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433598', 'tblTempUsageDetail_20' ) end [2025-02-09 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:10:22] Production.INFO: ==1436== Releasing lock... [2025-02-09 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:11:05 [end_date_ymd] => 2025-02-09 01:11:05 [RateCDR] => 1 ) [2025-02-09 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:11:05' and `end` < '2025-02-09 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:11:19] Production.INFO: count ==638 [2025-02-09 01:11:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:11:05 - End Time 2025-02-09 01:11:05 [2025-02-09 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433603', 'tblTempUsageDetail_20' ) start [2025-02-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433603', 'tblTempUsageDetail_20' ) end [2025-02-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433603', 'tblTempVendorCDR_20' ) start [2025-02-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433603', 'tblTempVendorCDR_20' ) end [2025-02-09 01:11:19] Production.INFO: ProcessCDR(1,14433603,1,1,2) [2025-02-09 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433603', 'tblTempUsageDetail_20' ) start [2025-02-09 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433603', 'tblTempUsageDetail_20' ) end [2025-02-09 01:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:11:24] Production.INFO: ==1543== Releasing lock... [2025-02-09 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:11:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:12:05 [end_date_ymd] => 2025-02-09 01:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:12:05' and `end` < '2025-02-09 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-02-09 01:12:19] Production.INFO: count ==638 [2025-02-09 01:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:12:05 - End Time 2025-02-09 01:12:05 [2025-02-09 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433607', 'tblTempUsageDetail_20' ) start [2025-02-09 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433607', 'tblTempUsageDetail_20' ) end [2025-02-09 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433607', 'tblTempVendorCDR_20' ) start [2025-02-09 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433607', 'tblTempVendorCDR_20' ) end [2025-02-09 01:12:19] Production.INFO: ProcessCDR(1,14433607,1,1,2) [2025-02-09 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433607', 'tblTempUsageDetail_20' ) start [2025-02-09 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433607', 'tblTempUsageDetail_20' ) end [2025-02-09 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:12:22] Production.INFO: ==1629== Releasing lock... [2025-02-09 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:12:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:13:05 [end_date_ymd] => 2025-02-09 01:13:05 [RateCDR] => 1 ) [2025-02-09 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:13:05' and `end` < '2025-02-09 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:13:21] Production.INFO: count ==634 [2025-02-09 01:13:21] Production.ERROR: pbx CDR StartTime 2025-02-08 22:13:05 - End Time 2025-02-09 01:13:05 [2025-02-09 01:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433613', 'tblTempUsageDetail_20' ) start [2025-02-09 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433613', 'tblTempUsageDetail_20' ) end [2025-02-09 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433613', 'tblTempVendorCDR_20' ) start [2025-02-09 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433613', 'tblTempVendorCDR_20' ) end [2025-02-09 01:13:21] Production.INFO: ProcessCDR(1,14433613,1,1,2) [2025-02-09 01:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433613', 'tblTempUsageDetail_20' ) start [2025-02-09 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433613', 'tblTempUsageDetail_20' ) end [2025-02-09 01:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:13:24] Production.INFO: ==1706== Releasing lock... [2025-02-09 01:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:13:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:14:04 [end_date_ymd] => 2025-02-09 01:14:04 [RateCDR] => 1 ) [2025-02-09 01:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:14:04' and `end` < '2025-02-09 01:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:14:18] Production.INFO: count ==633 [2025-02-09 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:14:04 - End Time 2025-02-09 01:14:04 [2025-02-09 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433618', 'tblTempUsageDetail_20' ) start [2025-02-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433618', 'tblTempUsageDetail_20' ) end [2025-02-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433618', 'tblTempVendorCDR_20' ) start [2025-02-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433618', 'tblTempVendorCDR_20' ) end [2025-02-09 01:14:18] Production.INFO: ProcessCDR(1,14433618,1,1,2) [2025-02-09 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433618', 'tblTempUsageDetail_20' ) start [2025-02-09 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433618', 'tblTempUsageDetail_20' ) end [2025-02-09 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:14:23] Production.INFO: ==1776== Releasing lock... [2025-02-09 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:14:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:15:05 [end_date_ymd] => 2025-02-09 01:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:15:05' and `end` < '2025-02-09 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-02-09 01:15:18] Production.INFO: count ==633 [2025-02-09 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:15:05 - End Time 2025-02-09 01:15:05 [2025-02-09 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433623', 'tblTempUsageDetail_20' ) start [2025-02-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433623', 'tblTempUsageDetail_20' ) end [2025-02-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433623', 'tblTempVendorCDR_20' ) start [2025-02-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433623', 'tblTempVendorCDR_20' ) end [2025-02-09 01:15:18] Production.INFO: ProcessCDR(1,14433623,1,1,2) [2025-02-09 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433623', 'tblTempUsageDetail_20' ) start [2025-02-09 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433623', 'tblTempUsageDetail_20' ) end [2025-02-09 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:15:21] Production.INFO: ==1854== Releasing lock... [2025-02-09 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:16:05 [end_date_ymd] => 2025-02-09 01:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:16:05' and `end` < '2025-02-09 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-02-09 01:16:19] Production.INFO: count ==633 [2025-02-09 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:16:05 - End Time 2025-02-09 01:16:05 [2025-02-09 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433628', 'tblTempUsageDetail_20' ) start [2025-02-09 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433628', 'tblTempUsageDetail_20' ) end [2025-02-09 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433628', 'tblTempVendorCDR_20' ) start [2025-02-09 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433628', 'tblTempVendorCDR_20' ) end [2025-02-09 01:16:19] Production.INFO: ProcessCDR(1,14433628,1,1,2) [2025-02-09 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433628', 'tblTempUsageDetail_20' ) start [2025-02-09 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433628', 'tblTempUsageDetail_20' ) end [2025-02-09 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:16:22] Production.INFO: ==1924== Releasing lock... [2025-02-09 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:17:05 [end_date_ymd] => 2025-02-09 01:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:17:05' and `end` < '2025-02-09 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-02-09 01:17:18] Production.INFO: count ==633 [2025-02-09 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:17:05 - End Time 2025-02-09 01:17:05 [2025-02-09 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433633', 'tblTempUsageDetail_20' ) start [2025-02-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433633', 'tblTempUsageDetail_20' ) end [2025-02-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433633', 'tblTempVendorCDR_20' ) start [2025-02-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433633', 'tblTempVendorCDR_20' ) end [2025-02-09 01:17:18] Production.INFO: ProcessCDR(1,14433633,1,1,2) [2025-02-09 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433633', 'tblTempUsageDetail_20' ) start [2025-02-09 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433633', 'tblTempUsageDetail_20' ) end [2025-02-09 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:17:21] Production.INFO: ==1998== Releasing lock... [2025-02-09 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:18:05 [end_date_ymd] => 2025-02-09 01:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:18:05' and `end` < '2025-02-09 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-02-09 01:18:18] Production.INFO: count ==632 [2025-02-09 01:18:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:18:05 - End Time 2025-02-09 01:18:05 [2025-02-09 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433638', 'tblTempUsageDetail_20' ) start [2025-02-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433638', 'tblTempUsageDetail_20' ) end [2025-02-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433638', 'tblTempVendorCDR_20' ) start [2025-02-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433638', 'tblTempVendorCDR_20' ) end [2025-02-09 01:18:18] Production.INFO: ProcessCDR(1,14433638,1,1,2) [2025-02-09 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433638', 'tblTempUsageDetail_20' ) start [2025-02-09 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433638', 'tblTempUsageDetail_20' ) end [2025-02-09 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:18:22] Production.INFO: ==2074== Releasing lock... [2025-02-09 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:19:05 [end_date_ymd] => 2025-02-09 01:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:19:05' and `end` < '2025-02-09 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-02-09 01:19:18] Production.INFO: count ==630 [2025-02-09 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:19:05 - End Time 2025-02-09 01:19:05 [2025-02-09 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433643', 'tblTempUsageDetail_20' ) start [2025-02-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433643', 'tblTempUsageDetail_20' ) end [2025-02-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433643', 'tblTempVendorCDR_20' ) start [2025-02-09 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433643', 'tblTempVendorCDR_20' ) end [2025-02-09 01:19:18] Production.INFO: ProcessCDR(1,14433643,1,1,2) [2025-02-09 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433643', 'tblTempUsageDetail_20' ) start [2025-02-09 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433643', 'tblTempUsageDetail_20' ) end [2025-02-09 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:19:21] Production.INFO: ==2148== Releasing lock... [2025-02-09 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:20:07 [end_date_ymd] => 2025-02-09 01:20:07 [RateCDR] => 1 ) [2025-02-09 01:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:20:07' and `end` < '2025-02-09 01:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:20:20] Production.INFO: count ==640 [2025-02-09 01:20:20] Production.ERROR: pbx CDR StartTime 2025-02-08 22:20:07 - End Time 2025-02-09 01:20:07 [2025-02-09 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433649', 'tblTempUsageDetail_20' ) start [2025-02-09 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433649', 'tblTempUsageDetail_20' ) end [2025-02-09 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433649', 'tblTempVendorCDR_20' ) start [2025-02-09 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433649', 'tblTempVendorCDR_20' ) end [2025-02-09 01:20:20] Production.INFO: ProcessCDR(1,14433649,1,1,2) [2025-02-09 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433649', 'tblTempUsageDetail_20' ) start [2025-02-09 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433649', 'tblTempUsageDetail_20' ) end [2025-02-09 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:20:23] Production.INFO: ==2222== Releasing lock... [2025-02-09 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:21:05 [end_date_ymd] => 2025-02-09 01:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:21:05' and `end` < '2025-02-09 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-02-09 01:21:18] Production.INFO: count ==674 [2025-02-09 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:21:05 - End Time 2025-02-09 01:21:05 [2025-02-09 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433654', 'tblTempUsageDetail_20' ) start [2025-02-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433654', 'tblTempUsageDetail_20' ) end [2025-02-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433654', 'tblTempVendorCDR_20' ) start [2025-02-09 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433654', 'tblTempVendorCDR_20' ) end [2025-02-09 01:21:18] Production.INFO: ProcessCDR(1,14433654,1,1,2) [2025-02-09 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433654', 'tblTempUsageDetail_20' ) start [2025-02-09 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433654', 'tblTempUsageDetail_20' ) end [2025-02-09 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:21:21] Production.INFO: ==2294== Releasing lock... [2025-02-09 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:22:06 [end_date_ymd] => 2025-02-09 01:22:06 [RateCDR] => 1 ) [2025-02-09 01: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-02-08 22:22:06' and `end` < '2025-02-09 01: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-02-09 01:22:18] Production.INFO: count ==678 [2025-02-09 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:22:06 - End Time 2025-02-09 01:22:06 [2025-02-09 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433659', 'tblTempUsageDetail_20' ) start [2025-02-09 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433659', 'tblTempUsageDetail_20' ) end [2025-02-09 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433659', 'tblTempVendorCDR_20' ) start [2025-02-09 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433659', 'tblTempVendorCDR_20' ) end [2025-02-09 01:22:19] Production.INFO: ProcessCDR(1,14433659,1,1,2) [2025-02-09 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433659', 'tblTempUsageDetail_20' ) start [2025-02-09 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433659', 'tblTempUsageDetail_20' ) end [2025-02-09 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:22:22] Production.INFO: ==2406== Releasing lock... [2025-02-09 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:23:05 [end_date_ymd] => 2025-02-09 01:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:23:05' and `end` < '2025-02-09 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-02-09 01:23:19] Production.INFO: count ==683 [2025-02-09 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:23:05 - End Time 2025-02-09 01:23:05 [2025-02-09 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433664', 'tblTempUsageDetail_20' ) start [2025-02-09 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433664', 'tblTempUsageDetail_20' ) end [2025-02-09 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433664', 'tblTempVendorCDR_20' ) start [2025-02-09 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433664', 'tblTempVendorCDR_20' ) end [2025-02-09 01:23:19] Production.INFO: ProcessCDR(1,14433664,1,1,2) [2025-02-09 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433664', 'tblTempUsageDetail_20' ) start [2025-02-09 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433664', 'tblTempUsageDetail_20' ) end [2025-02-09 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:23:22] Production.INFO: ==2478== Releasing lock... [2025-02-09 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:23:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:24:05 [end_date_ymd] => 2025-02-09 01:24:05 [RateCDR] => 1 ) [2025-02-09 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:24:05' and `end` < '2025-02-09 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:24:18] Production.INFO: count ==677 [2025-02-09 01:24:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:24:05 - End Time 2025-02-09 01:24:05 [2025-02-09 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433669', 'tblTempUsageDetail_20' ) start [2025-02-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433669', 'tblTempUsageDetail_20' ) end [2025-02-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433669', 'tblTempVendorCDR_20' ) start [2025-02-09 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433669', 'tblTempVendorCDR_20' ) end [2025-02-09 01:24:18] Production.INFO: ProcessCDR(1,14433669,1,1,2) [2025-02-09 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433669', 'tblTempUsageDetail_20' ) start [2025-02-09 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433669', 'tblTempUsageDetail_20' ) end [2025-02-09 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:24:21] Production.INFO: ==2552== Releasing lock... [2025-02-09 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:25:04 [end_date_ymd] => 2025-02-09 01:25:04 [RateCDR] => 1 ) [2025-02-09 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:25:04' and `end` < '2025-02-09 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:25:17] Production.INFO: count ==680 [2025-02-09 01:25:17] Production.ERROR: pbx CDR StartTime 2025-02-08 22:25:04 - End Time 2025-02-09 01:25:04 [2025-02-09 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433674', 'tblTempUsageDetail_20' ) start [2025-02-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433674', 'tblTempUsageDetail_20' ) end [2025-02-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433674', 'tblTempVendorCDR_20' ) start [2025-02-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433674', 'tblTempVendorCDR_20' ) end [2025-02-09 01:25:17] Production.INFO: ProcessCDR(1,14433674,1,1,2) [2025-02-09 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433674', 'tblTempUsageDetail_20' ) start [2025-02-09 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433674', 'tblTempUsageDetail_20' ) end [2025-02-09 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:25:22] Production.INFO: ==2622== Releasing lock... [2025-02-09 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:25:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:26:05 [end_date_ymd] => 2025-02-09 01:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:26:05' and `end` < '2025-02-09 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-02-09 01:26:19] Production.INFO: count ==679 [2025-02-09 01:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:26:05 - End Time 2025-02-09 01:26:05 [2025-02-09 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433679', 'tblTempUsageDetail_20' ) start [2025-02-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433679', 'tblTempUsageDetail_20' ) end [2025-02-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433679', 'tblTempVendorCDR_20' ) start [2025-02-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433679', 'tblTempVendorCDR_20' ) end [2025-02-09 01:26:19] Production.INFO: ProcessCDR(1,14433679,1,1,2) [2025-02-09 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433679', 'tblTempUsageDetail_20' ) start [2025-02-09 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433679', 'tblTempUsageDetail_20' ) end [2025-02-09 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:26:23] Production.INFO: ==2704== Releasing lock... [2025-02-09 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:26:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:27:04 [end_date_ymd] => 2025-02-09 01:27:04 [RateCDR] => 1 ) [2025-02-09 01:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:27:04' and `end` < '2025-02-09 01:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:27:17] Production.INFO: count ==679 [2025-02-09 01:27:17] Production.ERROR: pbx CDR StartTime 2025-02-08 22:27:04 - End Time 2025-02-09 01:27:04 [2025-02-09 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433684', 'tblTempUsageDetail_20' ) start [2025-02-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433684', 'tblTempUsageDetail_20' ) end [2025-02-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433684', 'tblTempVendorCDR_20' ) start [2025-02-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433684', 'tblTempVendorCDR_20' ) end [2025-02-09 01:27:17] Production.INFO: ProcessCDR(1,14433684,1,1,2) [2025-02-09 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433684', 'tblTempUsageDetail_20' ) start [2025-02-09 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433684', 'tblTempUsageDetail_20' ) end [2025-02-09 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:27:21] Production.INFO: ==2775== Releasing lock... [2025-02-09 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:27:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:28:05 [end_date_ymd] => 2025-02-09 01:28:05 [RateCDR] => 1 ) [2025-02-09 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:28:05' and `end` < '2025-02-09 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:28:18] Production.INFO: count ==679 [2025-02-09 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:28:05 - End Time 2025-02-09 01:28:05 [2025-02-09 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433689', 'tblTempUsageDetail_20' ) start [2025-02-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433689', 'tblTempUsageDetail_20' ) end [2025-02-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433689', 'tblTempVendorCDR_20' ) start [2025-02-09 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433689', 'tblTempVendorCDR_20' ) end [2025-02-09 01:28:18] Production.INFO: ProcessCDR(1,14433689,1,1,2) [2025-02-09 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433689', 'tblTempUsageDetail_20' ) start [2025-02-09 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433689', 'tblTempUsageDetail_20' ) end [2025-02-09 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:28:21] Production.INFO: ==2846== Releasing lock... [2025-02-09 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:29:05 [end_date_ymd] => 2025-02-09 01:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:29:05' and `end` < '2025-02-09 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-02-09 01:29:18] Production.INFO: count ==679 [2025-02-09 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:29:05 - End Time 2025-02-09 01:29:05 [2025-02-09 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433694', 'tblTempUsageDetail_20' ) start [2025-02-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433694', 'tblTempUsageDetail_20' ) end [2025-02-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433694', 'tblTempVendorCDR_20' ) start [2025-02-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433694', 'tblTempVendorCDR_20' ) end [2025-02-09 01:29:18] Production.INFO: ProcessCDR(1,14433694,1,1,2) [2025-02-09 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433694', 'tblTempUsageDetail_20' ) start [2025-02-09 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433694', 'tblTempUsageDetail_20' ) end [2025-02-09 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:29:22] Production.INFO: ==2919== Releasing lock... [2025-02-09 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:30:06 [end_date_ymd] => 2025-02-09 01:30:06 [RateCDR] => 1 ) [2025-02-09 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:30:06' and `end` < '2025-02-09 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:30:19] Production.INFO: count ==687 [2025-02-09 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:30:06 - End Time 2025-02-09 01:30:06 [2025-02-09 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433700', 'tblTempUsageDetail_20' ) start [2025-02-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433700', 'tblTempUsageDetail_20' ) end [2025-02-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433700', 'tblTempVendorCDR_20' ) start [2025-02-09 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433700', 'tblTempVendorCDR_20' ) end [2025-02-09 01:30:19] Production.INFO: ProcessCDR(1,14433700,1,1,2) [2025-02-09 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433700', 'tblTempUsageDetail_20' ) start [2025-02-09 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433700', 'tblTempUsageDetail_20' ) end [2025-02-09 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:30:22] Production.INFO: ==2993== Releasing lock... [2025-02-09 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:31:05 [end_date_ymd] => 2025-02-09 01:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:31:05' and `end` < '2025-02-09 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-02-09 01:31:18] Production.INFO: count ==697 [2025-02-09 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:31:05 - End Time 2025-02-09 01:31:05 [2025-02-09 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433705', 'tblTempUsageDetail_20' ) start [2025-02-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433705', 'tblTempUsageDetail_20' ) end [2025-02-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433705', 'tblTempVendorCDR_20' ) start [2025-02-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433705', 'tblTempVendorCDR_20' ) end [2025-02-09 01:31:18] Production.INFO: ProcessCDR(1,14433705,1,1,2) [2025-02-09 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433705', 'tblTempUsageDetail_20' ) start [2025-02-09 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433705', 'tblTempUsageDetail_20' ) end [2025-02-09 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:31:21] Production.INFO: ==3070== Releasing lock... [2025-02-09 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:31:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:32:05 [end_date_ymd] => 2025-02-09 01:32:05 [RateCDR] => 1 ) [2025-02-09 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:32:05' and `end` < '2025-02-09 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:32:17] Production.INFO: count ==697 [2025-02-09 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:32:05 - End Time 2025-02-09 01:32:05 [2025-02-09 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433710', 'tblTempUsageDetail_20' ) start [2025-02-09 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433710', 'tblTempUsageDetail_20' ) end [2025-02-09 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433710', 'tblTempVendorCDR_20' ) start [2025-02-09 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433710', 'tblTempVendorCDR_20' ) end [2025-02-09 01:32:18] Production.INFO: ProcessCDR(1,14433710,1,1,2) [2025-02-09 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433710', 'tblTempUsageDetail_20' ) start [2025-02-09 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433710', 'tblTempUsageDetail_20' ) end [2025-02-09 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:32:21] Production.INFO: ==3142== Releasing lock... [2025-02-09 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:32:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:33:05 [end_date_ymd] => 2025-02-09 01:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:33:05' and `end` < '2025-02-09 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-02-09 01:33:18] Production.INFO: count ==701 [2025-02-09 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:33:05 - End Time 2025-02-09 01:33:05 [2025-02-09 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433715', 'tblTempUsageDetail_20' ) start [2025-02-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433715', 'tblTempUsageDetail_20' ) end [2025-02-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433715', 'tblTempVendorCDR_20' ) start [2025-02-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433715', 'tblTempVendorCDR_20' ) end [2025-02-09 01:33:18] Production.INFO: ProcessCDR(1,14433715,1,1,2) [2025-02-09 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433715', 'tblTempUsageDetail_20' ) start [2025-02-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433715', 'tblTempUsageDetail_20' ) end [2025-02-09 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:33:21] Production.INFO: ==3214== Releasing lock... [2025-02-09 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:33:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:34:05 [end_date_ymd] => 2025-02-09 01:34:05 [RateCDR] => 1 ) [2025-02-09 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:34:05' and `end` < '2025-02-09 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:34:18] Production.INFO: count ==699 [2025-02-09 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:34:05 - End Time 2025-02-09 01:34:05 [2025-02-09 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433720', 'tblTempUsageDetail_20' ) start [2025-02-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433720', 'tblTempUsageDetail_20' ) end [2025-02-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433720', 'tblTempVendorCDR_20' ) start [2025-02-09 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433720', 'tblTempVendorCDR_20' ) end [2025-02-09 01:34:18] Production.INFO: ProcessCDR(1,14433720,1,1,2) [2025-02-09 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433720', 'tblTempUsageDetail_20' ) start [2025-02-09 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433720', 'tblTempUsageDetail_20' ) end [2025-02-09 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:34:22] Production.INFO: ==3289== Releasing lock... [2025-02-09 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:34:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:35:05 [end_date_ymd] => 2025-02-09 01:35:05 [RateCDR] => 1 ) [2025-02-09 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:35:05' and `end` < '2025-02-09 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:35:18] Production.INFO: count ==694 [2025-02-09 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:35:05 - End Time 2025-02-09 01:35:05 [2025-02-09 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433725', 'tblTempUsageDetail_20' ) start [2025-02-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433725', 'tblTempUsageDetail_20' ) end [2025-02-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433725', 'tblTempVendorCDR_20' ) start [2025-02-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433725', 'tblTempVendorCDR_20' ) end [2025-02-09 01:35:18] Production.INFO: ProcessCDR(1,14433725,1,1,2) [2025-02-09 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433725', 'tblTempUsageDetail_20' ) start [2025-02-09 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433725', 'tblTempUsageDetail_20' ) end [2025-02-09 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:35:22] Production.INFO: ==3360== Releasing lock... [2025-02-09 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:36:05 [end_date_ymd] => 2025-02-09 01:36:05 [RateCDR] => 1 ) [2025-02-09 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:36:05' and `end` < '2025-02-09 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:36:20] Production.INFO: count ==692 [2025-02-09 01:36:20] Production.ERROR: pbx CDR StartTime 2025-02-08 22:36:05 - End Time 2025-02-09 01:36:05 [2025-02-09 01:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433730', 'tblTempUsageDetail_20' ) start [2025-02-09 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433730', 'tblTempUsageDetail_20' ) end [2025-02-09 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433730', 'tblTempVendorCDR_20' ) start [2025-02-09 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433730', 'tblTempVendorCDR_20' ) end [2025-02-09 01:36:20] Production.INFO: ProcessCDR(1,14433730,1,1,2) [2025-02-09 01:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433730', 'tblTempUsageDetail_20' ) start [2025-02-09 01:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433730', 'tblTempUsageDetail_20' ) end [2025-02-09 01:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:36:24] Production.INFO: ==3433== Releasing lock... [2025-02-09 01:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:36:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:37:06 [end_date_ymd] => 2025-02-09 01:37:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:37:06' and `end` < '2025-02-09 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-02-09 01:37:18] Production.INFO: count ==685 [2025-02-09 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:37:06 - End Time 2025-02-09 01:37:06 [2025-02-09 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433735', 'tblTempUsageDetail_20' ) start [2025-02-09 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433735', 'tblTempUsageDetail_20' ) end [2025-02-09 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433735', 'tblTempVendorCDR_20' ) start [2025-02-09 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433735', 'tblTempVendorCDR_20' ) end [2025-02-09 01:37:19] Production.INFO: ProcessCDR(1,14433735,1,1,2) [2025-02-09 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433735', 'tblTempUsageDetail_20' ) start [2025-02-09 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433735', 'tblTempUsageDetail_20' ) end [2025-02-09 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:37:22] Production.INFO: ==3504== Releasing lock... [2025-02-09 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:37:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:38:05 [end_date_ymd] => 2025-02-09 01:38:05 [RateCDR] => 1 ) [2025-02-09 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:38:05' and `end` < '2025-02-09 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:38:18] Production.INFO: count ==684 [2025-02-09 01:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:38:05 - End Time 2025-02-09 01:38:05 [2025-02-09 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433740', 'tblTempUsageDetail_20' ) start [2025-02-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433740', 'tblTempUsageDetail_20' ) end [2025-02-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433740', 'tblTempVendorCDR_20' ) start [2025-02-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433740', 'tblTempVendorCDR_20' ) end [2025-02-09 01:38:18] Production.INFO: ProcessCDR(1,14433740,1,1,2) [2025-02-09 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433740', 'tblTempUsageDetail_20' ) start [2025-02-09 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433740', 'tblTempUsageDetail_20' ) end [2025-02-09 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:38:21] Production.INFO: ==3622== Releasing lock... [2025-02-09 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:38:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:39:06 [end_date_ymd] => 2025-02-09 01:39:06 [RateCDR] => 1 ) [2025-02-09 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:39:06' and `end` < '2025-02-09 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:39:19] Production.INFO: count ==685 [2025-02-09 01:39:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:39:06 - End Time 2025-02-09 01:39:06 [2025-02-09 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433745', 'tblTempUsageDetail_20' ) start [2025-02-09 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433745', 'tblTempUsageDetail_20' ) end [2025-02-09 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433745', 'tblTempVendorCDR_20' ) start [2025-02-09 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433745', 'tblTempVendorCDR_20' ) end [2025-02-09 01:39:19] Production.INFO: ProcessCDR(1,14433745,1,1,2) [2025-02-09 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433745', 'tblTempUsageDetail_20' ) start [2025-02-09 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433745', 'tblTempUsageDetail_20' ) end [2025-02-09 01:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:39:24] Production.INFO: ==3699== Releasing lock... [2025-02-09 01:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:39:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:40:06 [end_date_ymd] => 2025-02-09 01:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:40:06' and `end` < '2025-02-09 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-02-09 01:40:19] Production.INFO: count ==693 [2025-02-09 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:40:06 - End Time 2025-02-09 01:40:06 [2025-02-09 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433751', 'tblTempUsageDetail_20' ) start [2025-02-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433751', 'tblTempUsageDetail_20' ) end [2025-02-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433751', 'tblTempVendorCDR_20' ) start [2025-02-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433751', 'tblTempVendorCDR_20' ) end [2025-02-09 01:40:19] Production.INFO: ProcessCDR(1,14433751,1,1,2) [2025-02-09 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433751', 'tblTempUsageDetail_20' ) start [2025-02-09 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433751', 'tblTempUsageDetail_20' ) end [2025-02-09 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:40:23] Production.INFO: ==3774== Releasing lock... [2025-02-09 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:40:23] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:41:06 [end_date_ymd] => 2025-02-09 01:41:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:41:06' and `end` < '2025-02-09 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-02-09 01:41:19] Production.INFO: count ==750 [2025-02-09 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:41:06 - End Time 2025-02-09 01:41:06 [2025-02-09 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433756', 'tblTempUsageDetail_20' ) start [2025-02-09 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433756', 'tblTempUsageDetail_20' ) end [2025-02-09 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433756', 'tblTempVendorCDR_20' ) start [2025-02-09 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433756', 'tblTempVendorCDR_20' ) end [2025-02-09 01:41:19] Production.INFO: ProcessCDR(1,14433756,1,1,2) [2025-02-09 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433756', 'tblTempUsageDetail_20' ) start [2025-02-09 01:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433756', 'tblTempUsageDetail_20' ) end [2025-02-09 01:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:41:25] Production.INFO: ==3849== Releasing lock... [2025-02-09 01:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:41:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:42:05 [end_date_ymd] => 2025-02-09 01:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:42:05' and `end` < '2025-02-09 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-02-09 01:42:19] Production.INFO: count ==749 [2025-02-09 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:42:05 - End Time 2025-02-09 01:42:05 [2025-02-09 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433761', 'tblTempUsageDetail_20' ) start [2025-02-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433761', 'tblTempUsageDetail_20' ) end [2025-02-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433761', 'tblTempVendorCDR_20' ) start [2025-02-09 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433761', 'tblTempVendorCDR_20' ) end [2025-02-09 01:42:20] Production.INFO: ProcessCDR(1,14433761,1,1,2) [2025-02-09 01:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433761', 'tblTempUsageDetail_20' ) start [2025-02-09 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433761', 'tblTempUsageDetail_20' ) end [2025-02-09 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:42:23] Production.INFO: ==3919== Releasing lock... [2025-02-09 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:42:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:43:05 [end_date_ymd] => 2025-02-09 01:43:05 [RateCDR] => 1 ) [2025-02-09 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:43:05' and `end` < '2025-02-09 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:43:19] Production.INFO: count ==748 [2025-02-09 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:43:05 - End Time 2025-02-09 01:43:05 [2025-02-09 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433766', 'tblTempUsageDetail_20' ) start [2025-02-09 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433766', 'tblTempUsageDetail_20' ) end [2025-02-09 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433766', 'tblTempVendorCDR_20' ) start [2025-02-09 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433766', 'tblTempVendorCDR_20' ) end [2025-02-09 01:43:19] Production.INFO: ProcessCDR(1,14433766,1,1,2) [2025-02-09 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433766', 'tblTempUsageDetail_20' ) start [2025-02-09 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433766', 'tblTempUsageDetail_20' ) end [2025-02-09 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:43:22] Production.INFO: ==3991== Releasing lock... [2025-02-09 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:43:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:44:05 [end_date_ymd] => 2025-02-09 01:44:05 [RateCDR] => 1 ) [2025-02-09 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:44:05' and `end` < '2025-02-09 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:44:18] Production.INFO: count ==749 [2025-02-09 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:44:05 - End Time 2025-02-09 01:44:05 [2025-02-09 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433771', 'tblTempUsageDetail_20' ) start [2025-02-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433771', 'tblTempUsageDetail_20' ) end [2025-02-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433771', 'tblTempVendorCDR_20' ) start [2025-02-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433771', 'tblTempVendorCDR_20' ) end [2025-02-09 01:44:18] Production.INFO: ProcessCDR(1,14433771,1,1,2) [2025-02-09 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433771', 'tblTempUsageDetail_20' ) start [2025-02-09 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433771', 'tblTempUsageDetail_20' ) end [2025-02-09 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:44:22] Production.INFO: ==4064== Releasing lock... [2025-02-09 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:45:05 [end_date_ymd] => 2025-02-09 01:45:05 [RateCDR] => 1 ) [2025-02-09 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:45:05' and `end` < '2025-02-09 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:45:18] Production.INFO: count ==749 [2025-02-09 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:45:05 - End Time 2025-02-09 01:45:05 [2025-02-09 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433776', 'tblTempUsageDetail_20' ) start [2025-02-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433776', 'tblTempUsageDetail_20' ) end [2025-02-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433776', 'tblTempVendorCDR_20' ) start [2025-02-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433776', 'tblTempVendorCDR_20' ) end [2025-02-09 01:45:18] Production.INFO: ProcessCDR(1,14433776,1,1,2) [2025-02-09 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433776', 'tblTempUsageDetail_20' ) start [2025-02-09 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433776', 'tblTempUsageDetail_20' ) end [2025-02-09 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:45:22] Production.INFO: ==4139== Releasing lock... [2025-02-09 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:46:05 [end_date_ymd] => 2025-02-09 01:46:05 [RateCDR] => 1 ) [2025-02-09 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:46:05' and `end` < '2025-02-09 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:46:18] Production.INFO: count ==749 [2025-02-09 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:46:05 - End Time 2025-02-09 01:46:05 [2025-02-09 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433781', 'tblTempUsageDetail_20' ) start [2025-02-09 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433781', 'tblTempUsageDetail_20' ) end [2025-02-09 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433781', 'tblTempVendorCDR_20' ) start [2025-02-09 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433781', 'tblTempVendorCDR_20' ) end [2025-02-09 01:46:19] Production.INFO: ProcessCDR(1,14433781,1,1,2) [2025-02-09 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433781', 'tblTempUsageDetail_20' ) start [2025-02-09 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433781', 'tblTempUsageDetail_20' ) end [2025-02-09 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:46:22] Production.INFO: ==4216== Releasing lock... [2025-02-09 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:46:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:47:06 [end_date_ymd] => 2025-02-09 01:47:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:47:06' and `end` < '2025-02-09 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-02-09 01:47:19] Production.INFO: count ==749 [2025-02-09 01:47:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:47:06 - End Time 2025-02-09 01:47:06 [2025-02-09 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433786', 'tblTempUsageDetail_20' ) start [2025-02-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433786', 'tblTempUsageDetail_20' ) end [2025-02-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433786', 'tblTempVendorCDR_20' ) start [2025-02-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433786', 'tblTempVendorCDR_20' ) end [2025-02-09 01:47:19] Production.INFO: ProcessCDR(1,14433786,1,1,2) [2025-02-09 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433786', 'tblTempUsageDetail_20' ) start [2025-02-09 01:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433786', 'tblTempUsageDetail_20' ) end [2025-02-09 01:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:47:24] Production.INFO: ==4286== Releasing lock... [2025-02-09 01:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:47:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:48:05 [end_date_ymd] => 2025-02-09 01:48:05 [RateCDR] => 1 ) [2025-02-09 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:48:05' and `end` < '2025-02-09 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:48:18] Production.INFO: count ==744 [2025-02-09 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:48:05 - End Time 2025-02-09 01:48:05 [2025-02-09 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433791', 'tblTempUsageDetail_20' ) start [2025-02-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433791', 'tblTempUsageDetail_20' ) end [2025-02-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433791', 'tblTempVendorCDR_20' ) start [2025-02-09 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433791', 'tblTempVendorCDR_20' ) end [2025-02-09 01:48:18] Production.INFO: ProcessCDR(1,14433791,1,1,2) [2025-02-09 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433791', 'tblTempUsageDetail_20' ) start [2025-02-09 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433791', 'tblTempUsageDetail_20' ) end [2025-02-09 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:48:22] Production.INFO: ==4359== Releasing lock... [2025-02-09 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:48:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:49:06 [end_date_ymd] => 2025-02-09 01:49:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:49:06' and `end` < '2025-02-09 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-02-09 01:49:19] Production.INFO: count ==744 [2025-02-09 01:49:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:49:06 - End Time 2025-02-09 01:49:06 [2025-02-09 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433796', 'tblTempUsageDetail_20' ) start [2025-02-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433796', 'tblTempUsageDetail_20' ) end [2025-02-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433796', 'tblTempVendorCDR_20' ) start [2025-02-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433796', 'tblTempVendorCDR_20' ) end [2025-02-09 01:49:19] Production.INFO: ProcessCDR(1,14433796,1,1,2) [2025-02-09 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433796', 'tblTempUsageDetail_20' ) start [2025-02-09 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433796', 'tblTempUsageDetail_20' ) end [2025-02-09 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:49:22] Production.INFO: ==4433== Releasing lock... [2025-02-09 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:49:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:50:06 [end_date_ymd] => 2025-02-09 01:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:50:06' and `end` < '2025-02-09 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-02-09 01:50:19] Production.INFO: count ==758 [2025-02-09 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:50:06 - End Time 2025-02-09 01:50:06 [2025-02-09 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433802', 'tblTempUsageDetail_20' ) start [2025-02-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433802', 'tblTempUsageDetail_20' ) end [2025-02-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433802', 'tblTempVendorCDR_20' ) start [2025-02-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433802', 'tblTempVendorCDR_20' ) end [2025-02-09 01:50:19] Production.INFO: ProcessCDR(1,14433802,1,1,2) [2025-02-09 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433802', 'tblTempUsageDetail_20' ) start [2025-02-09 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433802', 'tblTempUsageDetail_20' ) end [2025-02-09 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:50:23] Production.INFO: ==4510== Releasing lock... [2025-02-09 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:51:05 [end_date_ymd] => 2025-02-09 01:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:51:05' and `end` < '2025-02-09 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-02-09 01:51:18] Production.INFO: count ==807 [2025-02-09 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:51:05 - End Time 2025-02-09 01:51:05 [2025-02-09 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433807', 'tblTempUsageDetail_20' ) start [2025-02-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433807', 'tblTempUsageDetail_20' ) end [2025-02-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433807', 'tblTempVendorCDR_20' ) start [2025-02-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433807', 'tblTempVendorCDR_20' ) end [2025-02-09 01:51:18] Production.INFO: ProcessCDR(1,14433807,1,1,2) [2025-02-09 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433807', 'tblTempUsageDetail_20' ) start [2025-02-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433807', 'tblTempUsageDetail_20' ) end [2025-02-09 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:51:22] Production.INFO: ==4598== Releasing lock... [2025-02-09 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:52:05 [end_date_ymd] => 2025-02-09 01:52:05 [RateCDR] => 1 ) [2025-02-09 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:52:05' and `end` < '2025-02-09 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:52:18] Production.INFO: count ==807 [2025-02-09 01:52:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:52:05 - End Time 2025-02-09 01:52:05 [2025-02-09 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433812', 'tblTempUsageDetail_20' ) start [2025-02-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433812', 'tblTempUsageDetail_20' ) end [2025-02-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433812', 'tblTempVendorCDR_20' ) start [2025-02-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433812', 'tblTempVendorCDR_20' ) end [2025-02-09 01:52:18] Production.INFO: ProcessCDR(1,14433812,1,1,2) [2025-02-09 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433812', 'tblTempUsageDetail_20' ) start [2025-02-09 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433812', 'tblTempUsageDetail_20' ) end [2025-02-09 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:52:22] Production.INFO: ==4671== Releasing lock... [2025-02-09 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:53:05 [end_date_ymd] => 2025-02-09 01:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:53:05' and `end` < '2025-02-09 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-02-09 01:53:19] Production.INFO: count ==805 [2025-02-09 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:53:05 - End Time 2025-02-09 01:53:05 [2025-02-09 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433817', 'tblTempUsageDetail_20' ) start [2025-02-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433817', 'tblTempUsageDetail_20' ) end [2025-02-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433817', 'tblTempVendorCDR_20' ) start [2025-02-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433817', 'tblTempVendorCDR_20' ) end [2025-02-09 01:53:19] Production.INFO: ProcessCDR(1,14433817,1,1,2) [2025-02-09 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433817', 'tblTempUsageDetail_20' ) start [2025-02-09 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433817', 'tblTempUsageDetail_20' ) end [2025-02-09 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:53:22] Production.INFO: ==4791== Releasing lock... [2025-02-09 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:54:05 [end_date_ymd] => 2025-02-09 01:54:05 [RateCDR] => 1 ) [2025-02-09 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:54:05' and `end` < '2025-02-09 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:54:18] Production.INFO: count ==805 [2025-02-09 01:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:54:05 - End Time 2025-02-09 01:54:05 [2025-02-09 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433822', 'tblTempUsageDetail_20' ) start [2025-02-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433822', 'tblTempUsageDetail_20' ) end [2025-02-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433822', 'tblTempVendorCDR_20' ) start [2025-02-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433822', 'tblTempVendorCDR_20' ) end [2025-02-09 01:54:18] Production.INFO: ProcessCDR(1,14433822,1,1,2) [2025-02-09 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433822', 'tblTempUsageDetail_20' ) start [2025-02-09 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433822', 'tblTempUsageDetail_20' ) end [2025-02-09 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:54:21] Production.INFO: ==4862== Releasing lock... [2025-02-09 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:55:06 [end_date_ymd] => 2025-02-09 01:55:06 [RateCDR] => 1 ) [2025-02-09 01: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-02-08 22:55:06' and `end` < '2025-02-09 01: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-02-09 01:55:19] Production.INFO: count ==801 [2025-02-09 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:55:06 - End Time 2025-02-09 01:55:06 [2025-02-09 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433827', 'tblTempUsageDetail_20' ) start [2025-02-09 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433827', 'tblTempUsageDetail_20' ) end [2025-02-09 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433827', 'tblTempVendorCDR_20' ) start [2025-02-09 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433827', 'tblTempVendorCDR_20' ) end [2025-02-09 01:55:19] Production.INFO: ProcessCDR(1,14433827,1,1,2) [2025-02-09 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433827', 'tblTempUsageDetail_20' ) start [2025-02-09 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433827', 'tblTempUsageDetail_20' ) end [2025-02-09 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:55:22] Production.INFO: ==4936== Releasing lock... [2025-02-09 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:55:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:56:05 [end_date_ymd] => 2025-02-09 01:56:05 [RateCDR] => 1 ) [2025-02-09 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:56:05' and `end` < '2025-02-09 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:56:19] Production.INFO: count ==800 [2025-02-09 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 22:56:05 - End Time 2025-02-09 01:56:05 [2025-02-09 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433832', 'tblTempUsageDetail_20' ) start [2025-02-09 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433832', 'tblTempUsageDetail_20' ) end [2025-02-09 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433832', 'tblTempVendorCDR_20' ) start [2025-02-09 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433832', 'tblTempVendorCDR_20' ) end [2025-02-09 01:56:19] Production.INFO: ProcessCDR(1,14433832,1,1,2) [2025-02-09 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433832', 'tblTempUsageDetail_20' ) start [2025-02-09 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433832', 'tblTempUsageDetail_20' ) end [2025-02-09 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:56:23] Production.INFO: ==5009== Releasing lock... [2025-02-09 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:56:23] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:57:05 [end_date_ymd] => 2025-02-09 01:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:57:05' and `end` < '2025-02-09 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-02-09 01:57:18] Production.INFO: count ==800 [2025-02-09 01:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:57:05 - End Time 2025-02-09 01:57:05 [2025-02-09 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433837', 'tblTempUsageDetail_20' ) start [2025-02-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433837', 'tblTempUsageDetail_20' ) end [2025-02-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433837', 'tblTempVendorCDR_20' ) start [2025-02-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433837', 'tblTempVendorCDR_20' ) end [2025-02-09 01:57:18] Production.INFO: ProcessCDR(1,14433837,1,1,2) [2025-02-09 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433837', 'tblTempUsageDetail_20' ) start [2025-02-09 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433837', 'tblTempUsageDetail_20' ) end [2025-02-09 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:57:22] Production.INFO: ==5086== Releasing lock... [2025-02-09 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:57:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:58:05 [end_date_ymd] => 2025-02-09 01:58:05 [RateCDR] => 1 ) [2025-02-09 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 22:58:05' and `end` < '2025-02-09 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 01:58:20] Production.INFO: count ==801 [2025-02-09 01:58:20] Production.ERROR: pbx CDR StartTime 2025-02-08 22:58:05 - End Time 2025-02-09 01:58:05 [2025-02-09 01:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433842', 'tblTempUsageDetail_20' ) start [2025-02-09 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433842', 'tblTempUsageDetail_20' ) end [2025-02-09 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433842', 'tblTempVendorCDR_20' ) start [2025-02-09 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433842', 'tblTempVendorCDR_20' ) end [2025-02-09 01:58:20] Production.INFO: ProcessCDR(1,14433842,1,1,2) [2025-02-09 01:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433842', 'tblTempUsageDetail_20' ) start [2025-02-09 01:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433842', 'tblTempUsageDetail_20' ) end [2025-02-09 01:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:58:24] Production.INFO: ==5163== Releasing lock... [2025-02-09 01:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:58:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 22:59:05 [end_date_ymd] => 2025-02-09 01:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 22:59:05' and `end` < '2025-02-09 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-02-09 01:59:18] Production.INFO: count ==801 [2025-02-09 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-08 22:59:05 - End Time 2025-02-09 01:59:05 [2025-02-09 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433847', 'tblTempUsageDetail_20' ) start [2025-02-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433847', 'tblTempUsageDetail_20' ) end [2025-02-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433847', 'tblTempVendorCDR_20' ) start [2025-02-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433847', 'tblTempVendorCDR_20' ) end [2025-02-09 01:59:18] Production.INFO: ProcessCDR(1,14433847,1,1,2) [2025-02-09 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433847', 'tblTempUsageDetail_20' ) start [2025-02-09 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433847', 'tblTempUsageDetail_20' ) end [2025-02-09 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 01:59:23] Production.INFO: ==5236== Releasing lock... [2025-02-09 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 01:59:23] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:00:06 [end_date_ymd] => 2025-02-09 02:00:06 [RateCDR] => 1 ) [2025-02-09 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:00:06' and `end` < '2025-02-09 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:00:19] Production.INFO: count ==809 [2025-02-09 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:00:06 - End Time 2025-02-09 02:00:06 [2025-02-09 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433853', 'tblTempUsageDetail_20' ) start [2025-02-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433853', 'tblTempUsageDetail_20' ) end [2025-02-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433853', 'tblTempVendorCDR_20' ) start [2025-02-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433853', 'tblTempVendorCDR_20' ) end [2025-02-09 02:00:19] Production.INFO: ProcessCDR(1,14433853,1,1,2) [2025-02-09 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433853', 'tblTempUsageDetail_20' ) start [2025-02-09 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433853', 'tblTempUsageDetail_20' ) end [2025-02-09 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:00:23] Production.INFO: ==5312== Releasing lock... [2025-02-09 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:01:06 [end_date_ymd] => 2025-02-09 02:01:06 [RateCDR] => 1 ) [2025-02-09 02: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-02-08 23:01:06' and `end` < '2025-02-09 02: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-02-09 02:01:20] Production.INFO: count ==831 [2025-02-09 02:01:20] Production.ERROR: pbx CDR StartTime 2025-02-08 23:01:06 - End Time 2025-02-09 02:01:06 [2025-02-09 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433858', 'tblTempUsageDetail_20' ) start [2025-02-09 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433858', 'tblTempUsageDetail_20' ) end [2025-02-09 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433858', 'tblTempVendorCDR_20' ) start [2025-02-09 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433858', 'tblTempVendorCDR_20' ) end [2025-02-09 02:01:20] Production.INFO: ProcessCDR(1,14433858,1,1,2) [2025-02-09 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433858', 'tblTempUsageDetail_20' ) start [2025-02-09 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433858', 'tblTempUsageDetail_20' ) end [2025-02-09 02:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:01:24] Production.INFO: ==5571== Releasing lock... [2025-02-09 02:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:01:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:02:06 [end_date_ymd] => 2025-02-09 02:02:06 [RateCDR] => 1 ) [2025-02-09 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:02:06' and `end` < '2025-02-09 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:02:20] Production.INFO: count ==831 [2025-02-09 02:02:20] Production.ERROR: pbx CDR StartTime 2025-02-08 23:02:06 - End Time 2025-02-09 02:02:06 [2025-02-09 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433863', 'tblTempUsageDetail_20' ) start [2025-02-09 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433863', 'tblTempUsageDetail_20' ) end [2025-02-09 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433863', 'tblTempVendorCDR_20' ) start [2025-02-09 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433863', 'tblTempVendorCDR_20' ) end [2025-02-09 02:02:20] Production.INFO: ProcessCDR(1,14433863,1,1,2) [2025-02-09 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433863', 'tblTempUsageDetail_20' ) start [2025-02-09 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433863', 'tblTempUsageDetail_20' ) end [2025-02-09 02:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:02:24] Production.INFO: ==5642== Releasing lock... [2025-02-09 02:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:02:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:03:06 [end_date_ymd] => 2025-02-09 02:03:06 [RateCDR] => 1 ) [2025-02-09 02: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-02-08 23:03:06' and `end` < '2025-02-09 02: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-02-09 02:03:22] Production.INFO: count ==831 [2025-02-09 02:03:22] Production.ERROR: pbx CDR StartTime 2025-02-08 23:03:06 - End Time 2025-02-09 02:03:06 [2025-02-09 02:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433868', 'tblTempUsageDetail_20' ) start [2025-02-09 02:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433868', 'tblTempUsageDetail_20' ) end [2025-02-09 02:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433868', 'tblTempVendorCDR_20' ) start [2025-02-09 02:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433868', 'tblTempVendorCDR_20' ) end [2025-02-09 02:03:22] Production.INFO: ProcessCDR(1,14433868,1,1,2) [2025-02-09 02:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433868', 'tblTempUsageDetail_20' ) start [2025-02-09 02:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433868', 'tblTempUsageDetail_20' ) end [2025-02-09 02:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:03:26] Production.INFO: ==5718== Releasing lock... [2025-02-09 02:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:03:26] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:04:05 [end_date_ymd] => 2025-02-09 02:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:04:05' and `end` < '2025-02-09 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-02-09 02:04:32] Production.INFO: count ==830 [2025-02-09 02:04:32] Production.ERROR: pbx CDR StartTime 2025-02-08 23:04:05 - End Time 2025-02-09 02:04:05 [2025-02-09 02:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433873', 'tblTempUsageDetail_20' ) start [2025-02-09 02:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433873', 'tblTempUsageDetail_20' ) end [2025-02-09 02:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433873', 'tblTempVendorCDR_20' ) start [2025-02-09 02:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433873', 'tblTempVendorCDR_20' ) end [2025-02-09 02:04:32] Production.INFO: ProcessCDR(1,14433873,1,1,2) [2025-02-09 02:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433873', 'tblTempUsageDetail_20' ) start [2025-02-09 02:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433873', 'tblTempUsageDetail_20' ) end [2025-02-09 02:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:04:35] Production.INFO: ==5787== Releasing lock... [2025-02-09 02:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:04:35] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:05:05 [end_date_ymd] => 2025-02-09 02:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:05:05' and `end` < '2025-02-09 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-02-09 02:05:19] Production.INFO: count ==827 [2025-02-09 02:05:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:05:05 - End Time 2025-02-09 02:05:05 [2025-02-09 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433878', 'tblTempUsageDetail_20' ) start [2025-02-09 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433878', 'tblTempUsageDetail_20' ) end [2025-02-09 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433878', 'tblTempVendorCDR_20' ) start [2025-02-09 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433878', 'tblTempVendorCDR_20' ) end [2025-02-09 02:05:19] Production.INFO: ProcessCDR(1,14433878,1,1,2) [2025-02-09 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433878', 'tblTempUsageDetail_20' ) start [2025-02-09 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433878', 'tblTempUsageDetail_20' ) end [2025-02-09 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:05:22] Production.INFO: ==5860== Releasing lock... [2025-02-09 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:05:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:06:05 [end_date_ymd] => 2025-02-09 02:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:06:05' and `end` < '2025-02-09 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-02-09 02:06:18] Production.INFO: count ==826 [2025-02-09 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:06:05 - End Time 2025-02-09 02:06:05 [2025-02-09 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433883', 'tblTempUsageDetail_20' ) start [2025-02-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433883', 'tblTempUsageDetail_20' ) end [2025-02-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433883', 'tblTempVendorCDR_20' ) start [2025-02-09 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433883', 'tblTempVendorCDR_20' ) end [2025-02-09 02:06:18] Production.INFO: ProcessCDR(1,14433883,1,1,2) [2025-02-09 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433883', 'tblTempUsageDetail_20' ) start [2025-02-09 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433883', 'tblTempUsageDetail_20' ) end [2025-02-09 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:06:22] Production.INFO: ==5937== Releasing lock... [2025-02-09 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:06:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:07:05 [end_date_ymd] => 2025-02-09 02:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:07:05' and `end` < '2025-02-09 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-02-09 02:07:18] Production.INFO: count ==829 [2025-02-09 02:07:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:07:05 - End Time 2025-02-09 02:07:05 [2025-02-09 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433888', 'tblTempUsageDetail_20' ) start [2025-02-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433888', 'tblTempUsageDetail_20' ) end [2025-02-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433888', 'tblTempVendorCDR_20' ) start [2025-02-09 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433888', 'tblTempVendorCDR_20' ) end [2025-02-09 02:07:18] Production.INFO: ProcessCDR(1,14433888,1,1,2) [2025-02-09 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433888', 'tblTempUsageDetail_20' ) start [2025-02-09 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433888', 'tblTempUsageDetail_20' ) end [2025-02-09 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:07:22] Production.INFO: ==6015== Releasing lock... [2025-02-09 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:08:05 [end_date_ymd] => 2025-02-09 02:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:08:05' and `end` < '2025-02-09 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-02-09 02:08:18] Production.INFO: count ==830 [2025-02-09 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:08:05 - End Time 2025-02-09 02:08:05 [2025-02-09 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433893', 'tblTempUsageDetail_20' ) start [2025-02-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433893', 'tblTempUsageDetail_20' ) end [2025-02-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433893', 'tblTempVendorCDR_20' ) start [2025-02-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433893', 'tblTempVendorCDR_20' ) end [2025-02-09 02:08:18] Production.INFO: ProcessCDR(1,14433893,1,1,2) [2025-02-09 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433893', 'tblTempUsageDetail_20' ) start [2025-02-09 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433893', 'tblTempUsageDetail_20' ) end [2025-02-09 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:08:22] Production.INFO: ==6125== Releasing lock... [2025-02-09 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:09:05 [end_date_ymd] => 2025-02-09 02:09:05 [RateCDR] => 1 ) [2025-02-09 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:09:05' and `end` < '2025-02-09 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:09:19] Production.INFO: count ==830 [2025-02-09 02:09:20] Production.ERROR: pbx CDR StartTime 2025-02-08 23:09:05 - End Time 2025-02-09 02:09:05 [2025-02-09 02:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433898', 'tblTempUsageDetail_20' ) start [2025-02-09 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433898', 'tblTempUsageDetail_20' ) end [2025-02-09 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433898', 'tblTempVendorCDR_20' ) start [2025-02-09 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433898', 'tblTempVendorCDR_20' ) end [2025-02-09 02:09:20] Production.INFO: ProcessCDR(1,14433898,1,1,2) [2025-02-09 02:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433898', 'tblTempUsageDetail_20' ) start [2025-02-09 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433898', 'tblTempUsageDetail_20' ) end [2025-02-09 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:09:23] Production.INFO: ==6198== Releasing lock... [2025-02-09 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:10:06 [end_date_ymd] => 2025-02-09 02:10:06 [RateCDR] => 1 ) [2025-02-09 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:10:06' and `end` < '2025-02-09 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:10:19] Production.INFO: count ==838 [2025-02-09 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:10:06 - End Time 2025-02-09 02:10:06 [2025-02-09 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433903', 'tblTempUsageDetail_20' ) start [2025-02-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433903', 'tblTempUsageDetail_20' ) end [2025-02-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433903', 'tblTempVendorCDR_20' ) start [2025-02-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433903', 'tblTempVendorCDR_20' ) end [2025-02-09 02:10:19] Production.INFO: ProcessCDR(1,14433903,1,1,2) [2025-02-09 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433903', 'tblTempUsageDetail_20' ) start [2025-02-09 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433903', 'tblTempUsageDetail_20' ) end [2025-02-09 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:10:22] Production.INFO: ==6275== Releasing lock... [2025-02-09 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:10:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:11:05 [end_date_ymd] => 2025-02-09 02:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:11:05' and `end` < '2025-02-09 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-02-09 02:11:18] Production.INFO: count ==854 [2025-02-09 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:11:05 - End Time 2025-02-09 02:11:05 [2025-02-09 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433909', 'tblTempUsageDetail_20' ) start [2025-02-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433909', 'tblTempUsageDetail_20' ) end [2025-02-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433909', 'tblTempVendorCDR_20' ) start [2025-02-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433909', 'tblTempVendorCDR_20' ) end [2025-02-09 02:11:18] Production.INFO: ProcessCDR(1,14433909,1,1,2) [2025-02-09 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433909', 'tblTempUsageDetail_20' ) start [2025-02-09 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433909', 'tblTempUsageDetail_20' ) end [2025-02-09 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:11:21] Production.INFO: ==6348== Releasing lock... [2025-02-09 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:11:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:12:05 [end_date_ymd] => 2025-02-09 02:12:05 [RateCDR] => 1 ) [2025-02-09 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:12:05' and `end` < '2025-02-09 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:12:19] Production.INFO: count ==854 [2025-02-09 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:12:05 - End Time 2025-02-09 02:12:05 [2025-02-09 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433914', 'tblTempUsageDetail_20' ) start [2025-02-09 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433914', 'tblTempUsageDetail_20' ) end [2025-02-09 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433914', 'tblTempVendorCDR_20' ) start [2025-02-09 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433914', 'tblTempVendorCDR_20' ) end [2025-02-09 02:12:19] Production.INFO: ProcessCDR(1,14433914,1,1,2) [2025-02-09 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433914', 'tblTempUsageDetail_20' ) start [2025-02-09 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433914', 'tblTempUsageDetail_20' ) end [2025-02-09 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:12:22] Production.INFO: ==6420== Releasing lock... [2025-02-09 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:12:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:13:05 [end_date_ymd] => 2025-02-09 02:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:13:05' and `end` < '2025-02-09 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-02-09 02:13:19] Production.INFO: count ==851 [2025-02-09 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:13:05 - End Time 2025-02-09 02:13:05 [2025-02-09 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433919', 'tblTempUsageDetail_20' ) start [2025-02-09 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433919', 'tblTempUsageDetail_20' ) end [2025-02-09 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433919', 'tblTempVendorCDR_20' ) start [2025-02-09 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433919', 'tblTempVendorCDR_20' ) end [2025-02-09 02:13:19] Production.INFO: ProcessCDR(1,14433919,1,1,2) [2025-02-09 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433919', 'tblTempUsageDetail_20' ) start [2025-02-09 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433919', 'tblTempUsageDetail_20' ) end [2025-02-09 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:13:23] Production.INFO: ==6494== Releasing lock... [2025-02-09 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:14:05 [end_date_ymd] => 2025-02-09 02:14:05 [RateCDR] => 1 ) [2025-02-09 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:14:05' and `end` < '2025-02-09 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:14:19] Production.INFO: count ==854 [2025-02-09 02:14:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:14:05 - End Time 2025-02-09 02:14:05 [2025-02-09 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433924', 'tblTempUsageDetail_20' ) start [2025-02-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433924', 'tblTempUsageDetail_20' ) end [2025-02-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433924', 'tblTempVendorCDR_20' ) start [2025-02-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433924', 'tblTempVendorCDR_20' ) end [2025-02-09 02:14:19] Production.INFO: ProcessCDR(1,14433924,1,1,2) [2025-02-09 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433924', 'tblTempUsageDetail_20' ) start [2025-02-09 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433924', 'tblTempUsageDetail_20' ) end [2025-02-09 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:14:22] Production.INFO: ==6568== Releasing lock... [2025-02-09 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:14:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:15:05 [end_date_ymd] => 2025-02-09 02:15:05 [RateCDR] => 1 ) [2025-02-09 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:15:05' and `end` < '2025-02-09 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:15:18] Production.INFO: count ==853 [2025-02-09 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:15:05 - End Time 2025-02-09 02:15:05 [2025-02-09 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433929', 'tblTempUsageDetail_20' ) start [2025-02-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433929', 'tblTempUsageDetail_20' ) end [2025-02-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433929', 'tblTempVendorCDR_20' ) start [2025-02-09 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433929', 'tblTempVendorCDR_20' ) end [2025-02-09 02:15:18] Production.INFO: ProcessCDR(1,14433929,1,1,2) [2025-02-09 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433929', 'tblTempUsageDetail_20' ) start [2025-02-09 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433929', 'tblTempUsageDetail_20' ) end [2025-02-09 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:15:21] Production.INFO: ==6643== Releasing lock... [2025-02-09 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:16:05 [end_date_ymd] => 2025-02-09 02:16:05 [RateCDR] => 1 ) [2025-02-09 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:16:05' and `end` < '2025-02-09 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:16:20] Production.INFO: count ==853 [2025-02-09 02:16:20] Production.ERROR: pbx CDR StartTime 2025-02-08 23:16:05 - End Time 2025-02-09 02:16:05 [2025-02-09 02:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433934', 'tblTempUsageDetail_20' ) start [2025-02-09 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433934', 'tblTempUsageDetail_20' ) end [2025-02-09 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433934', 'tblTempVendorCDR_20' ) start [2025-02-09 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433934', 'tblTempVendorCDR_20' ) end [2025-02-09 02:16:20] Production.INFO: ProcessCDR(1,14433934,1,1,2) [2025-02-09 02:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433934', 'tblTempUsageDetail_20' ) start [2025-02-09 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433934', 'tblTempUsageDetail_20' ) end [2025-02-09 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:16:23] Production.INFO: ==6740== Releasing lock... [2025-02-09 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:16:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:17:05 [end_date_ymd] => 2025-02-09 02:17:05 [RateCDR] => 1 ) [2025-02-09 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:17:05' and `end` < '2025-02-09 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:17:19] Production.INFO: count ==853 [2025-02-09 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:17:05 - End Time 2025-02-09 02:17:05 [2025-02-09 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433939', 'tblTempUsageDetail_20' ) start [2025-02-09 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433939', 'tblTempUsageDetail_20' ) end [2025-02-09 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433939', 'tblTempVendorCDR_20' ) start [2025-02-09 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433939', 'tblTempVendorCDR_20' ) end [2025-02-09 02:17:19] Production.INFO: ProcessCDR(1,14433939,1,1,2) [2025-02-09 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433939', 'tblTempUsageDetail_20' ) start [2025-02-09 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433939', 'tblTempUsageDetail_20' ) end [2025-02-09 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:17:22] Production.INFO: ==6833== Releasing lock... [2025-02-09 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:17:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:18:05 [end_date_ymd] => 2025-02-09 02:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:18:05' and `end` < '2025-02-09 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-02-09 02:18:17] Production.INFO: count ==857 [2025-02-09 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:18:05 - End Time 2025-02-09 02:18:05 [2025-02-09 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433944', 'tblTempUsageDetail_20' ) start [2025-02-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433944', 'tblTempUsageDetail_20' ) end [2025-02-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433944', 'tblTempVendorCDR_20' ) start [2025-02-09 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433944', 'tblTempVendorCDR_20' ) end [2025-02-09 02:18:18] Production.INFO: ProcessCDR(1,14433944,1,1,2) [2025-02-09 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433944', 'tblTempUsageDetail_20' ) start [2025-02-09 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433944', 'tblTempUsageDetail_20' ) end [2025-02-09 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:18:21] Production.INFO: ==6924== Releasing lock... [2025-02-09 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:18:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:19:06 [end_date_ymd] => 2025-02-09 02:19:06 [RateCDR] => 1 ) [2025-02-09 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:19:06' and `end` < '2025-02-09 02: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-02-09 02:19:19] Production.INFO: count ==859 [2025-02-09 02:19:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:19:06 - End Time 2025-02-09 02:19:06 [2025-02-09 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433949', 'tblTempUsageDetail_20' ) start [2025-02-09 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433949', 'tblTempUsageDetail_20' ) end [2025-02-09 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433949', 'tblTempVendorCDR_20' ) start [2025-02-09 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433949', 'tblTempVendorCDR_20' ) end [2025-02-09 02:19:19] Production.INFO: ProcessCDR(1,14433949,1,1,2) [2025-02-09 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433949', 'tblTempUsageDetail_20' ) start [2025-02-09 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433949', 'tblTempUsageDetail_20' ) end [2025-02-09 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:19:22] Production.INFO: ==7022== Releasing lock... [2025-02-09 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:20:05 [end_date_ymd] => 2025-02-09 02:20:05 [RateCDR] => 1 ) [2025-02-09 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:20:05' and `end` < '2025-02-09 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:20:18] Production.INFO: count ==868 [2025-02-09 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:20:05 - End Time 2025-02-09 02:20:05 [2025-02-09 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433955', 'tblTempUsageDetail_20' ) start [2025-02-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433955', 'tblTempUsageDetail_20' ) end [2025-02-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433955', 'tblTempVendorCDR_20' ) start [2025-02-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433955', 'tblTempVendorCDR_20' ) end [2025-02-09 02:20:18] Production.INFO: ProcessCDR(1,14433955,1,1,2) [2025-02-09 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433955', 'tblTempUsageDetail_20' ) start [2025-02-09 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433955', 'tblTempUsageDetail_20' ) end [2025-02-09 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:20:23] Production.INFO: ==7118== Releasing lock... [2025-02-09 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:20:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:21:05 [end_date_ymd] => 2025-02-09 02:21:05 [RateCDR] => 1 ) [2025-02-09 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:21:05' and `end` < '2025-02-09 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:21:18] Production.INFO: count ==894 [2025-02-09 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:21:05 - End Time 2025-02-09 02:21:05 [2025-02-09 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433960', 'tblTempUsageDetail_20' ) start [2025-02-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433960', 'tblTempUsageDetail_20' ) end [2025-02-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433960', 'tblTempVendorCDR_20' ) start [2025-02-09 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433960', 'tblTempVendorCDR_20' ) end [2025-02-09 02:21:18] Production.INFO: ProcessCDR(1,14433960,1,1,2) [2025-02-09 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433960', 'tblTempUsageDetail_20' ) start [2025-02-09 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433960', 'tblTempUsageDetail_20' ) end [2025-02-09 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:21:22] Production.INFO: ==7215== Releasing lock... [2025-02-09 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:21:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:22:05 [end_date_ymd] => 2025-02-09 02:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:22:05' and `end` < '2025-02-09 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-02-09 02:22:18] Production.INFO: count ==895 [2025-02-09 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:22:05 - End Time 2025-02-09 02:22:05 [2025-02-09 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433965', 'tblTempUsageDetail_20' ) start [2025-02-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433965', 'tblTempUsageDetail_20' ) end [2025-02-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433965', 'tblTempVendorCDR_20' ) start [2025-02-09 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433965', 'tblTempVendorCDR_20' ) end [2025-02-09 02:22:18] Production.INFO: ProcessCDR(1,14433965,1,1,2) [2025-02-09 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433965', 'tblTempUsageDetail_20' ) start [2025-02-09 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433965', 'tblTempUsageDetail_20' ) end [2025-02-09 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:22:22] Production.INFO: ==7310== Releasing lock... [2025-02-09 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:22:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:23:05 [end_date_ymd] => 2025-02-09 02:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:23:05' and `end` < '2025-02-09 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-02-09 02:23:19] Production.INFO: count ==895 [2025-02-09 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:23:05 - End Time 2025-02-09 02:23:05 [2025-02-09 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433970', 'tblTempUsageDetail_20' ) start [2025-02-09 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433970', 'tblTempUsageDetail_20' ) end [2025-02-09 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433970', 'tblTempVendorCDR_20' ) start [2025-02-09 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433970', 'tblTempVendorCDR_20' ) end [2025-02-09 02:23:19] Production.INFO: ProcessCDR(1,14433970,1,1,2) [2025-02-09 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433970', 'tblTempUsageDetail_20' ) start [2025-02-09 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433970', 'tblTempUsageDetail_20' ) end [2025-02-09 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:23:22] Production.INFO: ==7411== Releasing lock... [2025-02-09 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:23:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:24:05 [end_date_ymd] => 2025-02-09 02:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:24:05' and `end` < '2025-02-09 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-02-09 02:24:18] Production.INFO: count ==895 [2025-02-09 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:24:05 - End Time 2025-02-09 02:24:05 [2025-02-09 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433975', 'tblTempUsageDetail_20' ) start [2025-02-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433975', 'tblTempUsageDetail_20' ) end [2025-02-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433975', 'tblTempVendorCDR_20' ) start [2025-02-09 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433975', 'tblTempVendorCDR_20' ) end [2025-02-09 02:24:18] Production.INFO: ProcessCDR(1,14433975,1,1,2) [2025-02-09 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433975', 'tblTempUsageDetail_20' ) start [2025-02-09 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433975', 'tblTempUsageDetail_20' ) end [2025-02-09 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:24:21] Production.INFO: ==7550== Releasing lock... [2025-02-09 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:24:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:25:05 [end_date_ymd] => 2025-02-09 02:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:25:05' and `end` < '2025-02-09 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-02-09 02:25:18] Production.INFO: count ==895 [2025-02-09 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:25:05 - End Time 2025-02-09 02:25:05 [2025-02-09 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433980', 'tblTempUsageDetail_20' ) start [2025-02-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433980', 'tblTempUsageDetail_20' ) end [2025-02-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433980', 'tblTempVendorCDR_20' ) start [2025-02-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433980', 'tblTempVendorCDR_20' ) end [2025-02-09 02:25:18] Production.INFO: ProcessCDR(1,14433980,1,1,2) [2025-02-09 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433980', 'tblTempUsageDetail_20' ) start [2025-02-09 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433980', 'tblTempUsageDetail_20' ) end [2025-02-09 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:25:21] Production.INFO: ==7642== Releasing lock... [2025-02-09 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:25:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:26:05 [end_date_ymd] => 2025-02-09 02:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:26:05' and `end` < '2025-02-09 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-02-09 02:26:19] Production.INFO: count ==894 [2025-02-09 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:26:05 - End Time 2025-02-09 02:26:05 [2025-02-09 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433985', 'tblTempUsageDetail_20' ) start [2025-02-09 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433985', 'tblTempUsageDetail_20' ) end [2025-02-09 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433985', 'tblTempVendorCDR_20' ) start [2025-02-09 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433985', 'tblTempVendorCDR_20' ) end [2025-02-09 02:26:19] Production.INFO: ProcessCDR(1,14433985,1,1,2) [2025-02-09 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433985', 'tblTempUsageDetail_20' ) start [2025-02-09 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433985', 'tblTempUsageDetail_20' ) end [2025-02-09 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:26:22] Production.INFO: ==7742== Releasing lock... [2025-02-09 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:26:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:27:04 [end_date_ymd] => 2025-02-09 02:27:04 [RateCDR] => 1 ) [2025-02-09 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:27:04' and `end` < '2025-02-09 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:27:17] Production.INFO: count ==893 [2025-02-09 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:27:04 - End Time 2025-02-09 02:27:04 [2025-02-09 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433990', 'tblTempUsageDetail_20' ) start [2025-02-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433990', 'tblTempUsageDetail_20' ) end [2025-02-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433990', 'tblTempVendorCDR_20' ) start [2025-02-09 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433990', 'tblTempVendorCDR_20' ) end [2025-02-09 02:27:18] Production.INFO: ProcessCDR(1,14433990,1,1,2) [2025-02-09 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433990', 'tblTempUsageDetail_20' ) start [2025-02-09 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433990', 'tblTempUsageDetail_20' ) end [2025-02-09 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:27:21] Production.INFO: ==7838== Releasing lock... [2025-02-09 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:27:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:28:05 [end_date_ymd] => 2025-02-09 02:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:28:05' and `end` < '2025-02-09 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-02-09 02:28:18] Production.INFO: count ==890 [2025-02-09 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:28:05 - End Time 2025-02-09 02:28:05 [2025-02-09 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433995', 'tblTempUsageDetail_20' ) start [2025-02-09 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14433995', 'tblTempUsageDetail_20' ) end [2025-02-09 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433995', 'tblTempVendorCDR_20' ) start [2025-02-09 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14433995', 'tblTempVendorCDR_20' ) end [2025-02-09 02:28:18] Production.INFO: ProcessCDR(1,14433995,1,1,2) [2025-02-09 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14433995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14433995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14433995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14433995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433995', 'tblTempUsageDetail_20' ) start [2025-02-09 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14433995', 'tblTempUsageDetail_20' ) end [2025-02-09 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:28:22] Production.INFO: ==7936== Releasing lock... [2025-02-09 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:28:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:29:05 [end_date_ymd] => 2025-02-09 02:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:29:05' and `end` < '2025-02-09 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-02-09 02:29:19] Production.INFO: count ==888 [2025-02-09 02:29:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:29:05 - End Time 2025-02-09 02:29:05 [2025-02-09 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434000', 'tblTempUsageDetail_20' ) start [2025-02-09 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434000', 'tblTempUsageDetail_20' ) end [2025-02-09 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434000', 'tblTempVendorCDR_20' ) start [2025-02-09 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434000', 'tblTempVendorCDR_20' ) end [2025-02-09 02:29:19] Production.INFO: ProcessCDR(1,14434000,1,1,2) [2025-02-09 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434000', 'tblTempUsageDetail_20' ) start [2025-02-09 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434000', 'tblTempUsageDetail_20' ) end [2025-02-09 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:29:22] Production.INFO: ==8028== Releasing lock... [2025-02-09 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:29:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:30:06 [end_date_ymd] => 2025-02-09 02:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:30:06' and `end` < '2025-02-09 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-02-09 02:30:19] Production.INFO: count ==896 [2025-02-09 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:30:06 - End Time 2025-02-09 02:30:06 [2025-02-09 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434006', 'tblTempUsageDetail_20' ) start [2025-02-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434006', 'tblTempUsageDetail_20' ) end [2025-02-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434006', 'tblTempVendorCDR_20' ) start [2025-02-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434006', 'tblTempVendorCDR_20' ) end [2025-02-09 02:30:19] Production.INFO: ProcessCDR(1,14434006,1,1,2) [2025-02-09 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434006', 'tblTempUsageDetail_20' ) start [2025-02-09 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434006', 'tblTempUsageDetail_20' ) end [2025-02-09 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:30:22] Production.INFO: ==8130== Releasing lock... [2025-02-09 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:30:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:31:05 [end_date_ymd] => 2025-02-09 02:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:31:05' and `end` < '2025-02-09 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-02-09 02:31:18] Production.INFO: count ==923 [2025-02-09 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:31:05 - End Time 2025-02-09 02:31:05 [2025-02-09 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434011', 'tblTempUsageDetail_20' ) start [2025-02-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434011', 'tblTempUsageDetail_20' ) end [2025-02-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434011', 'tblTempVendorCDR_20' ) start [2025-02-09 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434011', 'tblTempVendorCDR_20' ) end [2025-02-09 02:31:18] Production.INFO: ProcessCDR(1,14434011,1,1,2) [2025-02-09 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434011', 'tblTempUsageDetail_20' ) start [2025-02-09 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434011', 'tblTempUsageDetail_20' ) end [2025-02-09 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:31:21] Production.INFO: ==8224== Releasing lock... [2025-02-09 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:32:05 [end_date_ymd] => 2025-02-09 02:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:32:05' and `end` < '2025-02-09 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-02-09 02:32:19] Production.INFO: count ==923 [2025-02-09 02:32:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:32:05 - End Time 2025-02-09 02:32:05 [2025-02-09 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434016', 'tblTempUsageDetail_20' ) start [2025-02-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434016', 'tblTempUsageDetail_20' ) end [2025-02-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434016', 'tblTempVendorCDR_20' ) start [2025-02-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434016', 'tblTempVendorCDR_20' ) end [2025-02-09 02:32:19] Production.INFO: ProcessCDR(1,14434016,1,1,2) [2025-02-09 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434016', 'tblTempUsageDetail_20' ) start [2025-02-09 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434016', 'tblTempUsageDetail_20' ) end [2025-02-09 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:32:22] Production.INFO: ==8321== Releasing lock... [2025-02-09 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:33:05 [end_date_ymd] => 2025-02-09 02:33:05 [RateCDR] => 1 ) [2025-02-09 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:33:05' and `end` < '2025-02-09 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:33:17] Production.INFO: count ==921 [2025-02-09 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:33:05 - End Time 2025-02-09 02:33:05 [2025-02-09 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434021', 'tblTempUsageDetail_20' ) start [2025-02-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434021', 'tblTempUsageDetail_20' ) end [2025-02-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434021', 'tblTempVendorCDR_20' ) start [2025-02-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434021', 'tblTempVendorCDR_20' ) end [2025-02-09 02:33:18] Production.INFO: ProcessCDR(1,14434021,1,1,2) [2025-02-09 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434021', 'tblTempUsageDetail_20' ) start [2025-02-09 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434021', 'tblTempUsageDetail_20' ) end [2025-02-09 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:33:21] Production.INFO: ==8419== Releasing lock... [2025-02-09 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:34:05 [end_date_ymd] => 2025-02-09 02:34:05 [RateCDR] => 1 ) [2025-02-09 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:34:05' and `end` < '2025-02-09 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:34:19] Production.INFO: count ==921 [2025-02-09 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:34:05 - End Time 2025-02-09 02:34:05 [2025-02-09 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434026', 'tblTempUsageDetail_20' ) start [2025-02-09 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434026', 'tblTempUsageDetail_20' ) end [2025-02-09 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434026', 'tblTempVendorCDR_20' ) start [2025-02-09 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434026', 'tblTempVendorCDR_20' ) end [2025-02-09 02:34:19] Production.INFO: ProcessCDR(1,14434026,1,1,2) [2025-02-09 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434026', 'tblTempUsageDetail_20' ) start [2025-02-09 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434026', 'tblTempUsageDetail_20' ) end [2025-02-09 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:34:22] Production.INFO: ==8521== Releasing lock... [2025-02-09 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:34:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:35:05 [end_date_ymd] => 2025-02-09 02:35:05 [RateCDR] => 1 ) [2025-02-09 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:35:05' and `end` < '2025-02-09 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:35:18] Production.INFO: count ==920 [2025-02-09 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:35:05 - End Time 2025-02-09 02:35:05 [2025-02-09 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434031', 'tblTempUsageDetail_20' ) start [2025-02-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434031', 'tblTempUsageDetail_20' ) end [2025-02-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434031', 'tblTempVendorCDR_20' ) start [2025-02-09 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434031', 'tblTempVendorCDR_20' ) end [2025-02-09 02:35:18] Production.INFO: ProcessCDR(1,14434031,1,1,2) [2025-02-09 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434031', 'tblTempUsageDetail_20' ) start [2025-02-09 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434031', 'tblTempUsageDetail_20' ) end [2025-02-09 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:35:21] Production.INFO: ==8616== Releasing lock... [2025-02-09 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:36:05 [end_date_ymd] => 2025-02-09 02:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:36:05' and `end` < '2025-02-09 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:36:19] Production.INFO: count ==920 [2025-02-09 02:36:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:36:05 - End Time 2025-02-09 02:36:05 [2025-02-09 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434036', 'tblTempUsageDetail_20' ) start [2025-02-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434036', 'tblTempUsageDetail_20' ) end [2025-02-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434036', 'tblTempVendorCDR_20' ) start [2025-02-09 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434036', 'tblTempVendorCDR_20' ) end [2025-02-09 02:36:19] Production.INFO: ProcessCDR(1,14434036,1,1,2) [2025-02-09 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434036', 'tblTempUsageDetail_20' ) start [2025-02-09 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434036', 'tblTempUsageDetail_20' ) end [2025-02-09 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:36:22] Production.INFO: ==8718== Releasing lock... [2025-02-09 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:37:05 [end_date_ymd] => 2025-02-09 02:37:05 [RateCDR] => 1 ) [2025-02-09 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:37:05' and `end` < '2025-02-09 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:37:18] Production.INFO: count ==917 [2025-02-09 02:37:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:37:05 - End Time 2025-02-09 02:37:05 [2025-02-09 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434041', 'tblTempUsageDetail_20' ) start [2025-02-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434041', 'tblTempUsageDetail_20' ) end [2025-02-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434041', 'tblTempVendorCDR_20' ) start [2025-02-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434041', 'tblTempVendorCDR_20' ) end [2025-02-09 02:37:18] Production.INFO: ProcessCDR(1,14434041,1,1,2) [2025-02-09 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434041', 'tblTempUsageDetail_20' ) start [2025-02-09 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434041', 'tblTempUsageDetail_20' ) end [2025-02-09 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:37:22] Production.INFO: ==8812== Releasing lock... [2025-02-09 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:38:05 [end_date_ymd] => 2025-02-09 02:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:38:05' and `end` < '2025-02-09 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-02-09 02:38:18] Production.INFO: count ==916 [2025-02-09 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:38:05 - End Time 2025-02-09 02:38:05 [2025-02-09 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434046', 'tblTempUsageDetail_20' ) start [2025-02-09 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434046', 'tblTempUsageDetail_20' ) end [2025-02-09 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434046', 'tblTempVendorCDR_20' ) start [2025-02-09 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434046', 'tblTempVendorCDR_20' ) end [2025-02-09 02:38:18] Production.INFO: ProcessCDR(1,14434046,1,1,2) [2025-02-09 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434046', 'tblTempUsageDetail_20' ) start [2025-02-09 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434046', 'tblTempUsageDetail_20' ) end [2025-02-09 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:38:21] Production.INFO: ==8908== Releasing lock... [2025-02-09 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:38:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:39:05 [end_date_ymd] => 2025-02-09 02:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:39:05' and `end` < '2025-02-09 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-02-09 02:39:18] Production.INFO: count ==916 [2025-02-09 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:39:05 - End Time 2025-02-09 02:39:05 [2025-02-09 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434051', 'tblTempUsageDetail_20' ) start [2025-02-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434051', 'tblTempUsageDetail_20' ) end [2025-02-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434051', 'tblTempVendorCDR_20' ) start [2025-02-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434051', 'tblTempVendorCDR_20' ) end [2025-02-09 02:39:18] Production.INFO: ProcessCDR(1,14434051,1,1,2) [2025-02-09 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434051', 'tblTempUsageDetail_20' ) start [2025-02-09 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434051', 'tblTempUsageDetail_20' ) end [2025-02-09 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:39:21] Production.INFO: ==9046== Releasing lock... [2025-02-09 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:39:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:40:06 [end_date_ymd] => 2025-02-09 02:40:06 [RateCDR] => 1 ) [2025-02-09 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:40:06' and `end` < '2025-02-09 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:40:19] Production.INFO: count ==924 [2025-02-09 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:40:06 - End Time 2025-02-09 02:40:06 [2025-02-09 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434057', 'tblTempUsageDetail_20' ) start [2025-02-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434057', 'tblTempUsageDetail_20' ) end [2025-02-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434057', 'tblTempVendorCDR_20' ) start [2025-02-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434057', 'tblTempVendorCDR_20' ) end [2025-02-09 02:40:19] Production.INFO: ProcessCDR(1,14434057,1,1,2) [2025-02-09 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434057', 'tblTempUsageDetail_20' ) start [2025-02-09 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434057', 'tblTempUsageDetail_20' ) end [2025-02-09 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:40:22] Production.INFO: ==9137== Releasing lock... [2025-02-09 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:40:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:41:05 [end_date_ymd] => 2025-02-09 02:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:41:05' and `end` < '2025-02-09 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-02-09 02:41:18] Production.INFO: count ==939 [2025-02-09 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:41:05 - End Time 2025-02-09 02:41:05 [2025-02-09 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434062', 'tblTempUsageDetail_20' ) start [2025-02-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434062', 'tblTempUsageDetail_20' ) end [2025-02-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434062', 'tblTempVendorCDR_20' ) start [2025-02-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434062', 'tblTempVendorCDR_20' ) end [2025-02-09 02:41:19] Production.INFO: ProcessCDR(1,14434062,1,1,2) [2025-02-09 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434062', 'tblTempUsageDetail_20' ) start [2025-02-09 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434062', 'tblTempUsageDetail_20' ) end [2025-02-09 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:41:22] Production.INFO: ==9215== Releasing lock... [2025-02-09 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:42:05 [end_date_ymd] => 2025-02-09 02:42:05 [RateCDR] => 1 ) [2025-02-09 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:42:05' and `end` < '2025-02-09 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:42:18] Production.INFO: count ==939 [2025-02-09 02:42:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:42:05 - End Time 2025-02-09 02:42:05 [2025-02-09 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434067', 'tblTempUsageDetail_20' ) start [2025-02-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434067', 'tblTempUsageDetail_20' ) end [2025-02-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434067', 'tblTempVendorCDR_20' ) start [2025-02-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434067', 'tblTempVendorCDR_20' ) end [2025-02-09 02:42:18] Production.INFO: ProcessCDR(1,14434067,1,1,2) [2025-02-09 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434067', 'tblTempUsageDetail_20' ) start [2025-02-09 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434067', 'tblTempUsageDetail_20' ) end [2025-02-09 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:42:21] Production.INFO: ==9292== Releasing lock... [2025-02-09 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:43:05 [end_date_ymd] => 2025-02-09 02:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:43:05' and `end` < '2025-02-09 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-02-09 02:43:18] Production.INFO: count ==939 [2025-02-09 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:43:05 - End Time 2025-02-09 02:43:05 [2025-02-09 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434072', 'tblTempUsageDetail_20' ) start [2025-02-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434072', 'tblTempUsageDetail_20' ) end [2025-02-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434072', 'tblTempVendorCDR_20' ) start [2025-02-09 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434072', 'tblTempVendorCDR_20' ) end [2025-02-09 02:43:18] Production.INFO: ProcessCDR(1,14434072,1,1,2) [2025-02-09 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434072', 'tblTempUsageDetail_20' ) start [2025-02-09 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434072', 'tblTempUsageDetail_20' ) end [2025-02-09 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:43:22] Production.INFO: ==9366== Releasing lock... [2025-02-09 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:43:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:44:05 [end_date_ymd] => 2025-02-09 02:44:05 [RateCDR] => 1 ) [2025-02-09 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:44:05' and `end` < '2025-02-09 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:44:18] Production.INFO: count ==937 [2025-02-09 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:44:05 - End Time 2025-02-09 02:44:05 [2025-02-09 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434077', 'tblTempUsageDetail_20' ) start [2025-02-09 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434077', 'tblTempUsageDetail_20' ) end [2025-02-09 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434077', 'tblTempVendorCDR_20' ) start [2025-02-09 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434077', 'tblTempVendorCDR_20' ) end [2025-02-09 02:44:18] Production.INFO: ProcessCDR(1,14434077,1,1,2) [2025-02-09 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434077', 'tblTempUsageDetail_20' ) start [2025-02-09 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434077', 'tblTempUsageDetail_20' ) end [2025-02-09 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:44:21] Production.INFO: ==9442== Releasing lock... [2025-02-09 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:44:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:45:05 [end_date_ymd] => 2025-02-09 02:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:45:05' and `end` < '2025-02-09 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-02-09 02:45:18] Production.INFO: count ==933 [2025-02-09 02:45:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:45:05 - End Time 2025-02-09 02:45:05 [2025-02-09 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434082', 'tblTempUsageDetail_20' ) start [2025-02-09 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434082', 'tblTempUsageDetail_20' ) end [2025-02-09 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434082', 'tblTempVendorCDR_20' ) start [2025-02-09 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434082', 'tblTempVendorCDR_20' ) end [2025-02-09 02:45:19] Production.INFO: ProcessCDR(1,14434082,1,1,2) [2025-02-09 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434082', 'tblTempUsageDetail_20' ) start [2025-02-09 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434082', 'tblTempUsageDetail_20' ) end [2025-02-09 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:45:22] Production.INFO: ==9515== Releasing lock... [2025-02-09 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:46:05 [end_date_ymd] => 2025-02-09 02:46:05 [RateCDR] => 1 ) [2025-02-09 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:46:05' and `end` < '2025-02-09 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:46:18] Production.INFO: count ==929 [2025-02-09 02:46:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:46:05 - End Time 2025-02-09 02:46:05 [2025-02-09 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434087', 'tblTempUsageDetail_20' ) start [2025-02-09 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434087', 'tblTempUsageDetail_20' ) end [2025-02-09 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434087', 'tblTempVendorCDR_20' ) start [2025-02-09 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434087', 'tblTempVendorCDR_20' ) end [2025-02-09 02:46:18] Production.INFO: ProcessCDR(1,14434087,1,1,2) [2025-02-09 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434087', 'tblTempUsageDetail_20' ) start [2025-02-09 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434087', 'tblTempUsageDetail_20' ) end [2025-02-09 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:46:22] Production.INFO: ==9594== Releasing lock... [2025-02-09 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:46:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:47:05 [end_date_ymd] => 2025-02-09 02:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:47:05' and `end` < '2025-02-09 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-02-09 02:47:18] Production.INFO: count ==930 [2025-02-09 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:47:05 - End Time 2025-02-09 02:47:05 [2025-02-09 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434092', 'tblTempUsageDetail_20' ) start [2025-02-09 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434092', 'tblTempUsageDetail_20' ) end [2025-02-09 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434092', 'tblTempVendorCDR_20' ) start [2025-02-09 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434092', 'tblTempVendorCDR_20' ) end [2025-02-09 02:47:18] Production.INFO: ProcessCDR(1,14434092,1,1,2) [2025-02-09 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434092', 'tblTempUsageDetail_20' ) start [2025-02-09 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434092', 'tblTempUsageDetail_20' ) end [2025-02-09 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:47:21] Production.INFO: ==9673== Releasing lock... [2025-02-09 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:48:05 [end_date_ymd] => 2025-02-09 02:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:48:05' and `end` < '2025-02-09 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-02-09 02:48:18] Production.INFO: count ==932 [2025-02-09 02:48:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:48:05 - End Time 2025-02-09 02:48:05 [2025-02-09 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434097', 'tblTempUsageDetail_20' ) start [2025-02-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434097', 'tblTempUsageDetail_20' ) end [2025-02-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434097', 'tblTempVendorCDR_20' ) start [2025-02-09 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434097', 'tblTempVendorCDR_20' ) end [2025-02-09 02:48:18] Production.INFO: ProcessCDR(1,14434097,1,1,2) [2025-02-09 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434097', 'tblTempUsageDetail_20' ) start [2025-02-09 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434097', 'tblTempUsageDetail_20' ) end [2025-02-09 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:48:21] Production.INFO: ==9748== Releasing lock... [2025-02-09 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:48:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:49:05 [end_date_ymd] => 2025-02-09 02:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:49:05' and `end` < '2025-02-09 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-02-09 02:49:18] Production.INFO: count ==932 [2025-02-09 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:49:05 - End Time 2025-02-09 02:49:05 [2025-02-09 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434102', 'tblTempUsageDetail_20' ) start [2025-02-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434102', 'tblTempUsageDetail_20' ) end [2025-02-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434102', 'tblTempVendorCDR_20' ) start [2025-02-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434102', 'tblTempVendorCDR_20' ) end [2025-02-09 02:49:18] Production.INFO: ProcessCDR(1,14434102,1,1,2) [2025-02-09 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434102', 'tblTempUsageDetail_20' ) start [2025-02-09 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434102', 'tblTempUsageDetail_20' ) end [2025-02-09 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:49:22] Production.INFO: ==9824== Releasing lock... [2025-02-09 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:49:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:50:05 [end_date_ymd] => 2025-02-09 02:50:05 [RateCDR] => 1 ) [2025-02-09 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:50:05' and `end` < '2025-02-09 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:50:18] Production.INFO: count ==938 [2025-02-09 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:50:05 - End Time 2025-02-09 02:50:05 [2025-02-09 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434107', 'tblTempUsageDetail_20' ) start [2025-02-09 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434107', 'tblTempUsageDetail_20' ) end [2025-02-09 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434107', 'tblTempVendorCDR_20' ) start [2025-02-09 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434107', 'tblTempVendorCDR_20' ) end [2025-02-09 02:50:18] Production.INFO: ProcessCDR(1,14434107,1,1,2) [2025-02-09 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434107', 'tblTempUsageDetail_20' ) start [2025-02-09 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434107', 'tblTempUsageDetail_20' ) end [2025-02-09 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:50:22] Production.INFO: ==9900== Releasing lock... [2025-02-09 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:50:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:51:05 [end_date_ymd] => 2025-02-09 02:51:05 [RateCDR] => 1 ) [2025-02-09 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:51:05' and `end` < '2025-02-09 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:51:19] Production.INFO: count ==952 [2025-02-09 02:51:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:51:05 - End Time 2025-02-09 02:51:05 [2025-02-09 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434113', 'tblTempUsageDetail_20' ) start [2025-02-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434113', 'tblTempUsageDetail_20' ) end [2025-02-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434113', 'tblTempVendorCDR_20' ) start [2025-02-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434113', 'tblTempVendorCDR_20' ) end [2025-02-09 02:51:19] Production.INFO: ProcessCDR(1,14434113,1,1,2) [2025-02-09 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434113', 'tblTempUsageDetail_20' ) start [2025-02-09 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434113', 'tblTempUsageDetail_20' ) end [2025-02-09 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:51:22] Production.INFO: ==9979== Releasing lock... [2025-02-09 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:51:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:52:06 [end_date_ymd] => 2025-02-09 02:52:06 [RateCDR] => 1 ) [2025-02-09 02: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-02-08 23:52:06' and `end` < '2025-02-09 02: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-02-09 02:52:18] Production.INFO: count ==951 [2025-02-09 02:52:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:52:06 - End Time 2025-02-09 02:52:06 [2025-02-09 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434118', 'tblTempUsageDetail_20' ) start [2025-02-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434118', 'tblTempUsageDetail_20' ) end [2025-02-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434118', 'tblTempVendorCDR_20' ) start [2025-02-09 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434118', 'tblTempVendorCDR_20' ) end [2025-02-09 02:52:19] Production.INFO: ProcessCDR(1,14434118,1,1,2) [2025-02-09 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434118', 'tblTempUsageDetail_20' ) start [2025-02-09 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434118', 'tblTempUsageDetail_20' ) end [2025-02-09 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:52:22] Production.INFO: ==10051== Releasing lock... [2025-02-09 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:52:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:53:05 [end_date_ymd] => 2025-02-09 02:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:53:05' and `end` < '2025-02-09 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-02-09 02:53:19] Production.INFO: count ==950 [2025-02-09 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:53:05 - End Time 2025-02-09 02:53:05 [2025-02-09 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434123', 'tblTempUsageDetail_20' ) start [2025-02-09 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434123', 'tblTempUsageDetail_20' ) end [2025-02-09 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434123', 'tblTempVendorCDR_20' ) start [2025-02-09 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434123', 'tblTempVendorCDR_20' ) end [2025-02-09 02:53:19] Production.INFO: ProcessCDR(1,14434123,1,1,2) [2025-02-09 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434123', 'tblTempUsageDetail_20' ) start [2025-02-09 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434123', 'tblTempUsageDetail_20' ) end [2025-02-09 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:53:22] Production.INFO: ==10128== Releasing lock... [2025-02-09 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:53:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:54:05 [end_date_ymd] => 2025-02-09 02:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:54:05' and `end` < '2025-02-09 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-02-09 02:54:18] Production.INFO: count ==950 [2025-02-09 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:54:05 - End Time 2025-02-09 02:54:05 [2025-02-09 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434128', 'tblTempUsageDetail_20' ) start [2025-02-09 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434128', 'tblTempUsageDetail_20' ) end [2025-02-09 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434128', 'tblTempVendorCDR_20' ) start [2025-02-09 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434128', 'tblTempVendorCDR_20' ) end [2025-02-09 02:54:18] Production.INFO: ProcessCDR(1,14434128,1,1,2) [2025-02-09 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434128', 'tblTempUsageDetail_20' ) start [2025-02-09 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434128', 'tblTempUsageDetail_20' ) end [2025-02-09 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:54:22] Production.INFO: ==10201== Releasing lock... [2025-02-09 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:54:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:55:05 [end_date_ymd] => 2025-02-09 02:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:55:05' and `end` < '2025-02-09 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-02-09 02:55:18] Production.INFO: count ==949 [2025-02-09 02:55:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:55:05 - End Time 2025-02-09 02:55:05 [2025-02-09 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434133', 'tblTempUsageDetail_20' ) start [2025-02-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434133', 'tblTempUsageDetail_20' ) end [2025-02-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434133', 'tblTempVendorCDR_20' ) start [2025-02-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434133', 'tblTempVendorCDR_20' ) end [2025-02-09 02:55:18] Production.INFO: ProcessCDR(1,14434133,1,1,2) [2025-02-09 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434133', 'tblTempUsageDetail_20' ) start [2025-02-09 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434133', 'tblTempUsageDetail_20' ) end [2025-02-09 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:55:21] Production.INFO: ==10319== Releasing lock... [2025-02-09 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:55:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:56:06 [end_date_ymd] => 2025-02-09 02:56:06 [RateCDR] => 1 ) [2025-02-09 02: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-02-08 23:56:06' and `end` < '2025-02-09 02: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-02-09 02:56:18] Production.INFO: count ==949 [2025-02-09 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-08 23:56:06 - End Time 2025-02-09 02:56:06 [2025-02-09 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434138', 'tblTempUsageDetail_20' ) start [2025-02-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434138', 'tblTempUsageDetail_20' ) end [2025-02-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434138', 'tblTempVendorCDR_20' ) start [2025-02-09 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434138', 'tblTempVendorCDR_20' ) end [2025-02-09 02:56:19] Production.INFO: ProcessCDR(1,14434138,1,1,2) [2025-02-09 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434138', 'tblTempUsageDetail_20' ) start [2025-02-09 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434138', 'tblTempUsageDetail_20' ) end [2025-02-09 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:56:23] Production.INFO: ==10394== Releasing lock... [2025-02-09 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:56:23] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:57:05 [end_date_ymd] => 2025-02-09 02:57:05 [RateCDR] => 1 ) [2025-02-09 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:57:05' and `end` < '2025-02-09 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:57:18] Production.INFO: count ==950 [2025-02-09 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:57:05 - End Time 2025-02-09 02:57:05 [2025-02-09 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434143', 'tblTempUsageDetail_20' ) start [2025-02-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434143', 'tblTempUsageDetail_20' ) end [2025-02-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434143', 'tblTempVendorCDR_20' ) start [2025-02-09 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434143', 'tblTempVendorCDR_20' ) end [2025-02-09 02:57:18] Production.INFO: ProcessCDR(1,14434143,1,1,2) [2025-02-09 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434143', 'tblTempUsageDetail_20' ) start [2025-02-09 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434143', 'tblTempUsageDetail_20' ) end [2025-02-09 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:57:23] Production.INFO: ==10468== Releasing lock... [2025-02-09 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:57:23] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:58:05 [end_date_ymd] => 2025-02-09 02:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-08 23:58:05' and `end` < '2025-02-09 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-02-09 02:58:18] Production.INFO: count ==949 [2025-02-09 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-08 23:58:05 - End Time 2025-02-09 02:58:05 [2025-02-09 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434148', 'tblTempUsageDetail_20' ) start [2025-02-09 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434148', 'tblTempUsageDetail_20' ) end [2025-02-09 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434148', 'tblTempVendorCDR_20' ) start [2025-02-09 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434148', 'tblTempVendorCDR_20' ) end [2025-02-09 02:58:18] Production.INFO: ProcessCDR(1,14434148,1,1,2) [2025-02-09 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434148', 'tblTempUsageDetail_20' ) start [2025-02-09 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434148', 'tblTempUsageDetail_20' ) end [2025-02-09 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:58:21] Production.INFO: ==10548== Releasing lock... [2025-02-09 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:58:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-08 23:59:04 [end_date_ymd] => 2025-02-09 02:59:04 [RateCDR] => 1 ) [2025-02-09 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-08 23:59:04' and `end` < '2025-02-09 02:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 02:59:17] Production.INFO: count ==948 [2025-02-09 02:59:17] Production.ERROR: pbx CDR StartTime 2025-02-08 23:59:04 - End Time 2025-02-09 02:59:04 [2025-02-09 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434153', 'tblTempUsageDetail_20' ) start [2025-02-09 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434153', 'tblTempUsageDetail_20' ) end [2025-02-09 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434153', 'tblTempVendorCDR_20' ) start [2025-02-09 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434153', 'tblTempVendorCDR_20' ) end [2025-02-09 02:59:17] Production.INFO: ProcessCDR(1,14434153,1,1,2) [2025-02-09 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434153', 'tblTempUsageDetail_20' ) start [2025-02-09 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434153', 'tblTempUsageDetail_20' ) end [2025-02-09 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 02:59:20] Production.INFO: ==10624== Releasing lock... [2025-02-09 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 02:59:20] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:00:06 [end_date_ymd] => 2025-02-09 03:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:00:06' and `end` < '2025-02-09 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-02-09 03:00:19] Production.INFO: count ==957 [2025-02-09 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:00:06 - End Time 2025-02-09 03:00:06 [2025-02-09 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434159', 'tblTempUsageDetail_20' ) start [2025-02-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434159', 'tblTempUsageDetail_20' ) end [2025-02-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434159', 'tblTempVendorCDR_20' ) start [2025-02-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434159', 'tblTempVendorCDR_20' ) end [2025-02-09 03:00:19] Production.INFO: ProcessCDR(1,14434159,1,1,2) [2025-02-09 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434159', 'tblTempUsageDetail_20' ) start [2025-02-09 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434159', 'tblTempUsageDetail_20' ) end [2025-02-09 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:00:24] Production.INFO: ==10702== Releasing lock... [2025-02-09 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:00:24] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:01:06 [end_date_ymd] => 2025-02-09 03:01:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:01:06' and `end` < '2025-02-09 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-02-09 03:01:19] Production.INFO: count ==963 [2025-02-09 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:01:06 - End Time 2025-02-09 03:01:06 [2025-02-09 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434164', 'tblTempUsageDetail_20' ) start [2025-02-09 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434164', 'tblTempUsageDetail_20' ) end [2025-02-09 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434164', 'tblTempVendorCDR_20' ) start [2025-02-09 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434164', 'tblTempVendorCDR_20' ) end [2025-02-09 03:01:19] Production.INFO: ProcessCDR(1,14434164,1,1,2) [2025-02-09 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434164', 'tblTempUsageDetail_20' ) start [2025-02-09 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434164', 'tblTempUsageDetail_20' ) end [2025-02-09 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:01:22] Production.INFO: ==10792== Releasing lock... [2025-02-09 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:01:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:02:05 [end_date_ymd] => 2025-02-09 03:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:02:05' and `end` < '2025-02-09 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-02-09 03:02:18] Production.INFO: count ==963 [2025-02-09 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:02:05 - End Time 2025-02-09 03:02:05 [2025-02-09 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434169', 'tblTempUsageDetail_20' ) start [2025-02-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434169', 'tblTempUsageDetail_20' ) end [2025-02-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434169', 'tblTempVendorCDR_20' ) start [2025-02-09 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434169', 'tblTempVendorCDR_20' ) end [2025-02-09 03:02:18] Production.INFO: ProcessCDR(1,14434169,1,1,2) [2025-02-09 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434169', 'tblTempUsageDetail_20' ) start [2025-02-09 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434169', 'tblTempUsageDetail_20' ) end [2025-02-09 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:02:22] Production.INFO: ==10939== Releasing lock... [2025-02-09 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:02:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:03:05 [end_date_ymd] => 2025-02-09 03:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:03:05' and `end` < '2025-02-09 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-02-09 03:03:19] Production.INFO: count ==964 [2025-02-09 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:03:05 - End Time 2025-02-09 03:03:05 [2025-02-09 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434174', 'tblTempUsageDetail_20' ) start [2025-02-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434174', 'tblTempUsageDetail_20' ) end [2025-02-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434174', 'tblTempVendorCDR_20' ) start [2025-02-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434174', 'tblTempVendorCDR_20' ) end [2025-02-09 03:03:19] Production.INFO: ProcessCDR(1,14434174,1,1,2) [2025-02-09 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434174', 'tblTempUsageDetail_20' ) start [2025-02-09 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434174', 'tblTempUsageDetail_20' ) end [2025-02-09 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:03:22] Production.INFO: ==11010== Releasing lock... [2025-02-09 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:03:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:04:05 [end_date_ymd] => 2025-02-09 03:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:04:05' and `end` < '2025-02-09 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-02-09 03:04:18] Production.INFO: count ==965 [2025-02-09 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:04:05 - End Time 2025-02-09 03:04:05 [2025-02-09 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434179', 'tblTempUsageDetail_20' ) start [2025-02-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434179', 'tblTempUsageDetail_20' ) end [2025-02-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434179', 'tblTempVendorCDR_20' ) start [2025-02-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434179', 'tblTempVendorCDR_20' ) end [2025-02-09 03:04:18] Production.INFO: ProcessCDR(1,14434179,1,1,2) [2025-02-09 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434179', 'tblTempUsageDetail_20' ) start [2025-02-09 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434179', 'tblTempUsageDetail_20' ) end [2025-02-09 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:04:23] Production.INFO: ==11079== Releasing lock... [2025-02-09 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:04:23] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:05:05 [end_date_ymd] => 2025-02-09 03:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:05:05' and `end` < '2025-02-09 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-02-09 03:05:18] Production.INFO: count ==970 [2025-02-09 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:05:05 - End Time 2025-02-09 03:05:05 [2025-02-09 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434184', 'tblTempUsageDetail_20' ) start [2025-02-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434184', 'tblTempUsageDetail_20' ) end [2025-02-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434184', 'tblTempVendorCDR_20' ) start [2025-02-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434184', 'tblTempVendorCDR_20' ) end [2025-02-09 03:05:18] Production.INFO: ProcessCDR(1,14434184,1,1,2) [2025-02-09 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434184', 'tblTempUsageDetail_20' ) start [2025-02-09 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434184', 'tblTempUsageDetail_20' ) end [2025-02-09 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:05:21] Production.INFO: ==11149== Releasing lock... [2025-02-09 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:06:05 [end_date_ymd] => 2025-02-09 03:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:06:05' and `end` < '2025-02-09 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-02-09 03:06:18] Production.INFO: count ==977 [2025-02-09 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:06:05 - End Time 2025-02-09 03:06:05 [2025-02-09 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434189', 'tblTempUsageDetail_20' ) start [2025-02-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434189', 'tblTempUsageDetail_20' ) end [2025-02-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434189', 'tblTempVendorCDR_20' ) start [2025-02-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434189', 'tblTempVendorCDR_20' ) end [2025-02-09 03:06:18] Production.INFO: ProcessCDR(1,14434189,1,1,2) [2025-02-09 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434189', 'tblTempUsageDetail_20' ) start [2025-02-09 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434189', 'tblTempUsageDetail_20' ) end [2025-02-09 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:06:21] Production.INFO: ==11298== Releasing lock... [2025-02-09 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:06:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:07:05 [end_date_ymd] => 2025-02-09 03:07:05 [RateCDR] => 1 ) [2025-02-09 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:07:05' and `end` < '2025-02-09 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:07:19] Production.INFO: count ==977 [2025-02-09 03:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:07:05 - End Time 2025-02-09 03:07:05 [2025-02-09 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434194', 'tblTempUsageDetail_20' ) start [2025-02-09 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434194', 'tblTempUsageDetail_20' ) end [2025-02-09 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434194', 'tblTempVendorCDR_20' ) start [2025-02-09 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434194', 'tblTempVendorCDR_20' ) end [2025-02-09 03:07:19] Production.INFO: ProcessCDR(1,14434194,1,1,2) [2025-02-09 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434194', 'tblTempUsageDetail_20' ) start [2025-02-09 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434194', 'tblTempUsageDetail_20' ) end [2025-02-09 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:07:22] Production.INFO: ==11369== Releasing lock... [2025-02-09 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:07:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:08:05 [end_date_ymd] => 2025-02-09 03:08:05 [RateCDR] => 1 ) [2025-02-09 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:08:05' and `end` < '2025-02-09 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:08:18] Production.INFO: count ==968 [2025-02-09 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:08:05 - End Time 2025-02-09 03:08:05 [2025-02-09 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434199', 'tblTempUsageDetail_20' ) start [2025-02-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434199', 'tblTempUsageDetail_20' ) end [2025-02-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434199', 'tblTempVendorCDR_20' ) start [2025-02-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434199', 'tblTempVendorCDR_20' ) end [2025-02-09 03:08:18] Production.INFO: ProcessCDR(1,14434199,1,1,2) [2025-02-09 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434199', 'tblTempUsageDetail_20' ) start [2025-02-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434199', 'tblTempUsageDetail_20' ) end [2025-02-09 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:08:21] Production.INFO: ==11438== Releasing lock... [2025-02-09 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:08:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:09:05 [end_date_ymd] => 2025-02-09 03:09:05 [RateCDR] => 1 ) [2025-02-09 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:09:05' and `end` < '2025-02-09 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:09:18] Production.INFO: count ==966 [2025-02-09 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:09:05 - End Time 2025-02-09 03:09:05 [2025-02-09 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434204', 'tblTempUsageDetail_20' ) start [2025-02-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434204', 'tblTempUsageDetail_20' ) end [2025-02-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434204', 'tblTempVendorCDR_20' ) start [2025-02-09 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434204', 'tblTempVendorCDR_20' ) end [2025-02-09 03:09:18] Production.INFO: ProcessCDR(1,14434204,1,1,2) [2025-02-09 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434204', 'tblTempUsageDetail_20' ) start [2025-02-09 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434204', 'tblTempUsageDetail_20' ) end [2025-02-09 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:09:22] Production.INFO: ==11591== Releasing lock... [2025-02-09 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:09:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:10:05 [end_date_ymd] => 2025-02-09 03:10:05 [RateCDR] => 1 ) [2025-02-09 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:10:05' and `end` < '2025-02-09 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:10:18] Production.INFO: count ==962 [2025-02-09 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:10:05 - End Time 2025-02-09 03:10:05 [2025-02-09 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434210', 'tblTempUsageDetail_20' ) start [2025-02-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434210', 'tblTempUsageDetail_20' ) end [2025-02-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434210', 'tblTempVendorCDR_20' ) start [2025-02-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434210', 'tblTempVendorCDR_20' ) end [2025-02-09 03:10:18] Production.INFO: ProcessCDR(1,14434210,1,1,2) [2025-02-09 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434210', 'tblTempUsageDetail_20' ) start [2025-02-09 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434210', 'tblTempUsageDetail_20' ) end [2025-02-09 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:10:22] Production.INFO: ==11703== Releasing lock... [2025-02-09 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:10:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:11:05 [end_date_ymd] => 2025-02-09 03:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:11:05' and `end` < '2025-02-09 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-02-09 03:11:18] Production.INFO: count ==928 [2025-02-09 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:11:05 - End Time 2025-02-09 03:11:05 [2025-02-09 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434215', 'tblTempUsageDetail_20' ) start [2025-02-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434215', 'tblTempUsageDetail_20' ) end [2025-02-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434215', 'tblTempVendorCDR_20' ) start [2025-02-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434215', 'tblTempVendorCDR_20' ) end [2025-02-09 03:11:18] Production.INFO: ProcessCDR(1,14434215,1,1,2) [2025-02-09 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434215', 'tblTempUsageDetail_20' ) start [2025-02-09 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434215', 'tblTempUsageDetail_20' ) end [2025-02-09 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:11:21] Production.INFO: ==11774== Releasing lock... [2025-02-09 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:12:06 [end_date_ymd] => 2025-02-09 03:12:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:12:06' and `end` < '2025-02-09 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-02-09 03:12:19] Production.INFO: count ==928 [2025-02-09 03:12:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:12:06 - End Time 2025-02-09 03:12:06 [2025-02-09 03:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434220', 'tblTempUsageDetail_20' ) start [2025-02-09 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434220', 'tblTempUsageDetail_20' ) end [2025-02-09 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434220', 'tblTempVendorCDR_20' ) start [2025-02-09 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434220', 'tblTempVendorCDR_20' ) end [2025-02-09 03:12:20] Production.INFO: ProcessCDR(1,14434220,1,1,2) [2025-02-09 03:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434220', 'tblTempUsageDetail_20' ) start [2025-02-09 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434220', 'tblTempUsageDetail_20' ) end [2025-02-09 03:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:12:23] Production.INFO: ==11845== Releasing lock... [2025-02-09 03:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:12:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:13:05 [end_date_ymd] => 2025-02-09 03:13:05 [RateCDR] => 1 ) [2025-02-09 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:13:05' and `end` < '2025-02-09 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:13:18] Production.INFO: count ==929 [2025-02-09 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:13:05 - End Time 2025-02-09 03:13:05 [2025-02-09 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434225', 'tblTempUsageDetail_20' ) start [2025-02-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434225', 'tblTempUsageDetail_20' ) end [2025-02-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434225', 'tblTempVendorCDR_20' ) start [2025-02-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434225', 'tblTempVendorCDR_20' ) end [2025-02-09 03:13:18] Production.INFO: ProcessCDR(1,14434225,1,1,2) [2025-02-09 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434225', 'tblTempUsageDetail_20' ) start [2025-02-09 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434225', 'tblTempUsageDetail_20' ) end [2025-02-09 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:13:23] Production.INFO: ==11996== Releasing lock... [2025-02-09 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:13:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:14:05 [end_date_ymd] => 2025-02-09 03:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:14:05' and `end` < '2025-02-09 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-02-09 03:14:18] Production.INFO: count ==927 [2025-02-09 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:14:05 - End Time 2025-02-09 03:14:05 [2025-02-09 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434230', 'tblTempUsageDetail_20' ) start [2025-02-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434230', 'tblTempUsageDetail_20' ) end [2025-02-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434230', 'tblTempVendorCDR_20' ) start [2025-02-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434230', 'tblTempVendorCDR_20' ) end [2025-02-09 03:14:18] Production.INFO: ProcessCDR(1,14434230,1,1,2) [2025-02-09 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434230', 'tblTempUsageDetail_20' ) start [2025-02-09 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434230', 'tblTempUsageDetail_20' ) end [2025-02-09 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:14:21] Production.INFO: ==12076== Releasing lock... [2025-02-09 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:14:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:15:05 [end_date_ymd] => 2025-02-09 03:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:15:05' and `end` < '2025-02-09 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-02-09 03:15:18] Production.INFO: count ==917 [2025-02-09 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:15:05 - End Time 2025-02-09 03:15:05 [2025-02-09 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434235', 'tblTempUsageDetail_20' ) start [2025-02-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434235', 'tblTempUsageDetail_20' ) end [2025-02-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434235', 'tblTempVendorCDR_20' ) start [2025-02-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434235', 'tblTempVendorCDR_20' ) end [2025-02-09 03:15:18] Production.INFO: ProcessCDR(1,14434235,1,1,2) [2025-02-09 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434235', 'tblTempUsageDetail_20' ) start [2025-02-09 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434235', 'tblTempUsageDetail_20' ) end [2025-02-09 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:15:21] Production.INFO: ==12145== Releasing lock... [2025-02-09 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:16:05 [end_date_ymd] => 2025-02-09 03:16:05 [RateCDR] => 1 ) [2025-02-09 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:16:05' and `end` < '2025-02-09 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:16:18] Production.INFO: count ==913 [2025-02-09 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:16:05 - End Time 2025-02-09 03:16:05 [2025-02-09 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434240', 'tblTempUsageDetail_20' ) start [2025-02-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434240', 'tblTempUsageDetail_20' ) end [2025-02-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434240', 'tblTempVendorCDR_20' ) start [2025-02-09 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434240', 'tblTempVendorCDR_20' ) end [2025-02-09 03:16:18] Production.INFO: ProcessCDR(1,14434240,1,1,2) [2025-02-09 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434240', 'tblTempUsageDetail_20' ) start [2025-02-09 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434240', 'tblTempUsageDetail_20' ) end [2025-02-09 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:16:22] Production.INFO: ==12218== Releasing lock... [2025-02-09 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:16:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:17:05 [end_date_ymd] => 2025-02-09 03:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:17:05' and `end` < '2025-02-09 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-02-09 03:17:20] Production.INFO: count ==911 [2025-02-09 03:17:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:17:05 - End Time 2025-02-09 03:17:05 [2025-02-09 03:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434245', 'tblTempUsageDetail_20' ) start [2025-02-09 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434245', 'tblTempUsageDetail_20' ) end [2025-02-09 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434245', 'tblTempVendorCDR_20' ) start [2025-02-09 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434245', 'tblTempVendorCDR_20' ) end [2025-02-09 03:17:20] Production.INFO: ProcessCDR(1,14434245,1,1,2) [2025-02-09 03:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434245', 'tblTempUsageDetail_20' ) start [2025-02-09 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434245', 'tblTempUsageDetail_20' ) end [2025-02-09 03:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:17:23] Production.INFO: ==12366== Releasing lock... [2025-02-09 03:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:17:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:18:05 [end_date_ymd] => 2025-02-09 03:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:18:05' and `end` < '2025-02-09 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-02-09 03:18:18] Production.INFO: count ==910 [2025-02-09 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:18:05 - End Time 2025-02-09 03:18:05 [2025-02-09 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434250', 'tblTempUsageDetail_20' ) start [2025-02-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434250', 'tblTempUsageDetail_20' ) end [2025-02-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434250', 'tblTempVendorCDR_20' ) start [2025-02-09 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434250', 'tblTempVendorCDR_20' ) end [2025-02-09 03:18:18] Production.INFO: ProcessCDR(1,14434250,1,1,2) [2025-02-09 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434250', 'tblTempUsageDetail_20' ) start [2025-02-09 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434250', 'tblTempUsageDetail_20' ) end [2025-02-09 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:18:22] Production.INFO: ==12437== Releasing lock... [2025-02-09 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:18:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:19:04 [end_date_ymd] => 2025-02-09 03:19:04 [RateCDR] => 1 ) [2025-02-09 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:19:04' and `end` < '2025-02-09 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:19:18] Production.INFO: count ==914 [2025-02-09 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:19:04 - End Time 2025-02-09 03:19:04 [2025-02-09 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434255', 'tblTempUsageDetail_20' ) start [2025-02-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434255', 'tblTempUsageDetail_20' ) end [2025-02-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434255', 'tblTempVendorCDR_20' ) start [2025-02-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434255', 'tblTempVendorCDR_20' ) end [2025-02-09 03:19:18] Production.INFO: ProcessCDR(1,14434255,1,1,2) [2025-02-09 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434255', 'tblTempUsageDetail_20' ) start [2025-02-09 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434255', 'tblTempUsageDetail_20' ) end [2025-02-09 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:19:21] Production.INFO: ==12508== Releasing lock... [2025-02-09 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:19:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:20:06 [end_date_ymd] => 2025-02-09 03:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:20:06' and `end` < '2025-02-09 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-02-09 03:20:20] Production.INFO: count ==912 [2025-02-09 03:20:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:20:06 - End Time 2025-02-09 03:20:06 [2025-02-09 03:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434260', 'tblTempUsageDetail_20' ) start [2025-02-09 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434260', 'tblTempUsageDetail_20' ) end [2025-02-09 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434260', 'tblTempVendorCDR_20' ) start [2025-02-09 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434260', 'tblTempVendorCDR_20' ) end [2025-02-09 03:20:20] Production.INFO: ProcessCDR(1,14434260,1,1,2) [2025-02-09 03:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434260', 'tblTempUsageDetail_20' ) start [2025-02-09 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434260', 'tblTempUsageDetail_20' ) end [2025-02-09 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:20:23] Production.INFO: ==12579== Releasing lock... [2025-02-09 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:21:05 [end_date_ymd] => 2025-02-09 03:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:21:05' and `end` < '2025-02-09 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-02-09 03:21:22] Production.INFO: count ==897 [2025-02-09 03:21:22] Production.ERROR: pbx CDR StartTime 2025-02-09 00:21:05 - End Time 2025-02-09 03:21:05 [2025-02-09 03:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434266', 'tblTempUsageDetail_20' ) start [2025-02-09 03:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434266', 'tblTempUsageDetail_20' ) end [2025-02-09 03:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434266', 'tblTempVendorCDR_20' ) start [2025-02-09 03:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434266', 'tblTempVendorCDR_20' ) end [2025-02-09 03:21:22] Production.INFO: ProcessCDR(1,14434266,1,1,2) [2025-02-09 03:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434266', 'tblTempUsageDetail_20' ) start [2025-02-09 03:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434266', 'tblTempUsageDetail_20' ) end [2025-02-09 03:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:21:26] Production.INFO: ==12655== Releasing lock... [2025-02-09 03:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:21:26] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:22:05 [end_date_ymd] => 2025-02-09 03:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:22:05' and `end` < '2025-02-09 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-02-09 03:22:19] Production.INFO: count ==898 [2025-02-09 03:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:22:05 - End Time 2025-02-09 03:22:05 [2025-02-09 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434271', 'tblTempUsageDetail_20' ) start [2025-02-09 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434271', 'tblTempUsageDetail_20' ) end [2025-02-09 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434271', 'tblTempVendorCDR_20' ) start [2025-02-09 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434271', 'tblTempVendorCDR_20' ) end [2025-02-09 03:22:19] Production.INFO: ProcessCDR(1,14434271,1,1,2) [2025-02-09 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434271', 'tblTempUsageDetail_20' ) start [2025-02-09 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434271', 'tblTempUsageDetail_20' ) end [2025-02-09 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:22:22] Production.INFO: ==12723== Releasing lock... [2025-02-09 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:22:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:23:05 [end_date_ymd] => 2025-02-09 03:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:23:05' and `end` < '2025-02-09 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-02-09 03:23:18] Production.INFO: count ==895 [2025-02-09 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:23:05 - End Time 2025-02-09 03:23:05 [2025-02-09 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434276', 'tblTempUsageDetail_20' ) start [2025-02-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434276', 'tblTempUsageDetail_20' ) end [2025-02-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434276', 'tblTempVendorCDR_20' ) start [2025-02-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434276', 'tblTempVendorCDR_20' ) end [2025-02-09 03:23:18] Production.INFO: ProcessCDR(1,14434276,1,1,2) [2025-02-09 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434276', 'tblTempUsageDetail_20' ) start [2025-02-09 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434276', 'tblTempUsageDetail_20' ) end [2025-02-09 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:23:21] Production.INFO: ==12798== Releasing lock... [2025-02-09 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:23:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:24:05 [end_date_ymd] => 2025-02-09 03:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:24:05' and `end` < '2025-02-09 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-02-09 03:24:18] Production.INFO: count ==889 [2025-02-09 03:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:24:05 - End Time 2025-02-09 03:24:05 [2025-02-09 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434281', 'tblTempUsageDetail_20' ) start [2025-02-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434281', 'tblTempUsageDetail_20' ) end [2025-02-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434281', 'tblTempVendorCDR_20' ) start [2025-02-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434281', 'tblTempVendorCDR_20' ) end [2025-02-09 03:24:19] Production.INFO: ProcessCDR(1,14434281,1,1,2) [2025-02-09 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434281', 'tblTempUsageDetail_20' ) start [2025-02-09 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434281', 'tblTempUsageDetail_20' ) end [2025-02-09 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:24:22] Production.INFO: ==12918== Releasing lock... [2025-02-09 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:24:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:25:05 [end_date_ymd] => 2025-02-09 03:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:25:05' and `end` < '2025-02-09 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-02-09 03:25:18] Production.INFO: count ==882 [2025-02-09 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:25:05 - End Time 2025-02-09 03:25:05 [2025-02-09 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434286', 'tblTempUsageDetail_20' ) start [2025-02-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434286', 'tblTempUsageDetail_20' ) end [2025-02-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434286', 'tblTempVendorCDR_20' ) start [2025-02-09 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434286', 'tblTempVendorCDR_20' ) end [2025-02-09 03:25:18] Production.INFO: ProcessCDR(1,14434286,1,1,2) [2025-02-09 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434286', 'tblTempUsageDetail_20' ) start [2025-02-09 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434286', 'tblTempUsageDetail_20' ) end [2025-02-09 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:25:21] Production.INFO: ==12989== Releasing lock... [2025-02-09 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:25:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:26:05 [end_date_ymd] => 2025-02-09 03:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:26:05' and `end` < '2025-02-09 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-02-09 03:26:18] Production.INFO: count ==878 [2025-02-09 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:26:05 - End Time 2025-02-09 03:26:05 [2025-02-09 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434291', 'tblTempUsageDetail_20' ) start [2025-02-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434291', 'tblTempUsageDetail_20' ) end [2025-02-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434291', 'tblTempVendorCDR_20' ) start [2025-02-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434291', 'tblTempVendorCDR_20' ) end [2025-02-09 03:26:18] Production.INFO: ProcessCDR(1,14434291,1,1,2) [2025-02-09 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434291', 'tblTempUsageDetail_20' ) start [2025-02-09 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434291', 'tblTempUsageDetail_20' ) end [2025-02-09 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:26:21] Production.INFO: ==13064== Releasing lock... [2025-02-09 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:26:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:27:06 [end_date_ymd] => 2025-02-09 03:27:06 [RateCDR] => 1 ) [2025-02-09 03: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-02-09 00:27:06' and `end` < '2025-02-09 03: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-02-09 03:27:18] Production.INFO: count ==864 [2025-02-09 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:27:06 - End Time 2025-02-09 03:27:06 [2025-02-09 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434296', 'tblTempUsageDetail_20' ) start [2025-02-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434296', 'tblTempUsageDetail_20' ) end [2025-02-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434296', 'tblTempVendorCDR_20' ) start [2025-02-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434296', 'tblTempVendorCDR_20' ) end [2025-02-09 03:27:19] Production.INFO: ProcessCDR(1,14434296,1,1,2) [2025-02-09 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434296', 'tblTempUsageDetail_20' ) start [2025-02-09 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434296', 'tblTempUsageDetail_20' ) end [2025-02-09 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:27:22] Production.INFO: ==13176== Releasing lock... [2025-02-09 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:27:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:28:05 [end_date_ymd] => 2025-02-09 03:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:28:05' and `end` < '2025-02-09 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-02-09 03:28:19] Production.INFO: count ==857 [2025-02-09 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:28:05 - End Time 2025-02-09 03:28:05 [2025-02-09 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434301', 'tblTempUsageDetail_20' ) start [2025-02-09 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434301', 'tblTempUsageDetail_20' ) end [2025-02-09 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434301', 'tblTempVendorCDR_20' ) start [2025-02-09 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434301', 'tblTempVendorCDR_20' ) end [2025-02-09 03:28:19] Production.INFO: ProcessCDR(1,14434301,1,1,2) [2025-02-09 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434301', 'tblTempUsageDetail_20' ) start [2025-02-09 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434301', 'tblTempUsageDetail_20' ) end [2025-02-09 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:28:22] Production.INFO: ==13249== Releasing lock... [2025-02-09 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:28:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:29:05 [end_date_ymd] => 2025-02-09 03:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:29:05' and `end` < '2025-02-09 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-02-09 03:29:19] Production.INFO: count ==844 [2025-02-09 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:29:05 - End Time 2025-02-09 03:29:05 [2025-02-09 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434306', 'tblTempUsageDetail_20' ) start [2025-02-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434306', 'tblTempUsageDetail_20' ) end [2025-02-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434306', 'tblTempVendorCDR_20' ) start [2025-02-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434306', 'tblTempVendorCDR_20' ) end [2025-02-09 03:29:19] Production.INFO: ProcessCDR(1,14434306,1,1,2) [2025-02-09 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434306', 'tblTempUsageDetail_20' ) start [2025-02-09 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434306', 'tblTempUsageDetail_20' ) end [2025-02-09 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:29:22] Production.INFO: ==13328== Releasing lock... [2025-02-09 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:29:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:30:06 [end_date_ymd] => 2025-02-09 03:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:30:06' and `end` < '2025-02-09 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-02-09 03:30:20] Production.INFO: count ==837 [2025-02-09 03:30:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:30:06 - End Time 2025-02-09 03:30:06 [2025-02-09 03:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434312', 'tblTempUsageDetail_20' ) start [2025-02-09 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434312', 'tblTempUsageDetail_20' ) end [2025-02-09 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434312', 'tblTempVendorCDR_20' ) start [2025-02-09 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434312', 'tblTempVendorCDR_20' ) end [2025-02-09 03:30:20] Production.INFO: ProcessCDR(1,14434312,1,1,2) [2025-02-09 03:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434312', 'tblTempUsageDetail_20' ) start [2025-02-09 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434312', 'tblTempUsageDetail_20' ) end [2025-02-09 03:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:30:24] Production.INFO: ==13411== Releasing lock... [2025-02-09 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:30:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:31:06 [end_date_ymd] => 2025-02-09 03:31:06 [RateCDR] => 1 ) [2025-02-09 03: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-02-09 00:31:06' and `end` < '2025-02-09 03: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-02-09 03:31:19] Production.INFO: count ==807 [2025-02-09 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:31:06 - End Time 2025-02-09 03:31:06 [2025-02-09 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434317', 'tblTempUsageDetail_20' ) start [2025-02-09 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434317', 'tblTempUsageDetail_20' ) end [2025-02-09 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434317', 'tblTempVendorCDR_20' ) start [2025-02-09 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434317', 'tblTempVendorCDR_20' ) end [2025-02-09 03:31:19] Production.INFO: ProcessCDR(1,14434317,1,1,2) [2025-02-09 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434317', 'tblTempUsageDetail_20' ) start [2025-02-09 03:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434317', 'tblTempUsageDetail_20' ) end [2025-02-09 03:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:31:24] Production.INFO: ==13482== Releasing lock... [2025-02-09 03:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:31:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:32:05 [end_date_ymd] => 2025-02-09 03:32:05 [RateCDR] => 1 ) [2025-02-09 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:32:05' and `end` < '2025-02-09 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:32:18] Production.INFO: count ==799 [2025-02-09 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:32:05 - End Time 2025-02-09 03:32:05 [2025-02-09 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434319', 'tblTempUsageDetail_20' ) start [2025-02-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434319', 'tblTempUsageDetail_20' ) end [2025-02-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434319', 'tblTempVendorCDR_20' ) start [2025-02-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434319', 'tblTempVendorCDR_20' ) end [2025-02-09 03:32:18] Production.INFO: ProcessCDR(1,14434319,1,1,2) [2025-02-09 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434319', 'tblTempUsageDetail_20' ) start [2025-02-09 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434319', 'tblTempUsageDetail_20' ) end [2025-02-09 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:32:21] Production.INFO: ==13553== Releasing lock... [2025-02-09 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:33:06 [end_date_ymd] => 2025-02-09 03:33:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:33:06' and `end` < '2025-02-09 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-02-09 03:33:19] Production.INFO: count ==784 [2025-02-09 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:33:06 - End Time 2025-02-09 03:33:06 [2025-02-09 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434327', 'tblTempUsageDetail_20' ) start [2025-02-09 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434327', 'tblTempUsageDetail_20' ) end [2025-02-09 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434327', 'tblTempVendorCDR_20' ) start [2025-02-09 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434327', 'tblTempVendorCDR_20' ) end [2025-02-09 03:33:19] Production.INFO: ProcessCDR(1,14434327,1,1,2) [2025-02-09 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434327', 'tblTempUsageDetail_20' ) start [2025-02-09 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434327', 'tblTempUsageDetail_20' ) end [2025-02-09 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:33:23] Production.INFO: ==13629== Releasing lock... [2025-02-09 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:33:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:34:06 [end_date_ymd] => 2025-02-09 03:34:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:34:06' and `end` < '2025-02-09 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-02-09 03:34:20] Production.INFO: count ==770 [2025-02-09 03:34:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:34:06 - End Time 2025-02-09 03:34:06 [2025-02-09 03:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434332', 'tblTempUsageDetail_20' ) start [2025-02-09 03:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434332', 'tblTempUsageDetail_20' ) end [2025-02-09 03:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434332', 'tblTempVendorCDR_20' ) start [2025-02-09 03:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434332', 'tblTempVendorCDR_20' ) end [2025-02-09 03:34:20] Production.INFO: ProcessCDR(1,14434332,1,1,2) [2025-02-09 03:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434332', 'tblTempUsageDetail_20' ) start [2025-02-09 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434332', 'tblTempUsageDetail_20' ) end [2025-02-09 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:34:23] Production.INFO: ==13705== Releasing lock... [2025-02-09 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:34:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:35:05 [end_date_ymd] => 2025-02-09 03:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:35:05' and `end` < '2025-02-09 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-02-09 03:35:18] Production.INFO: count ==762 [2025-02-09 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:35:05 - End Time 2025-02-09 03:35:05 [2025-02-09 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434337', 'tblTempUsageDetail_20' ) start [2025-02-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434337', 'tblTempUsageDetail_20' ) end [2025-02-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434337', 'tblTempVendorCDR_20' ) start [2025-02-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434337', 'tblTempVendorCDR_20' ) end [2025-02-09 03:35:18] Production.INFO: ProcessCDR(1,14434337,1,1,2) [2025-02-09 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434337', 'tblTempUsageDetail_20' ) start [2025-02-09 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434337', 'tblTempUsageDetail_20' ) end [2025-02-09 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:35:23] Production.INFO: ==13781== Releasing lock... [2025-02-09 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:35:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:36:05 [end_date_ymd] => 2025-02-09 03:36:05 [RateCDR] => 1 ) [2025-02-09 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:36:05' and `end` < '2025-02-09 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:36:18] Production.INFO: count ==752 [2025-02-09 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:36:05 - End Time 2025-02-09 03:36:05 [2025-02-09 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434342', 'tblTempUsageDetail_20' ) start [2025-02-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434342', 'tblTempUsageDetail_20' ) end [2025-02-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434342', 'tblTempVendorCDR_20' ) start [2025-02-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434342', 'tblTempVendorCDR_20' ) end [2025-02-09 03:36:18] Production.INFO: ProcessCDR(1,14434342,1,1,2) [2025-02-09 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434342', 'tblTempUsageDetail_20' ) start [2025-02-09 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434342', 'tblTempUsageDetail_20' ) end [2025-02-09 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:36:23] Production.INFO: ==13853== Releasing lock... [2025-02-09 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:36:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:37:05 [end_date_ymd] => 2025-02-09 03:37:05 [RateCDR] => 1 ) [2025-02-09 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:37:05' and `end` < '2025-02-09 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:37:19] Production.INFO: count ==743 [2025-02-09 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:37:05 - End Time 2025-02-09 03:37:05 [2025-02-09 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434347', 'tblTempUsageDetail_20' ) start [2025-02-09 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434347', 'tblTempUsageDetail_20' ) end [2025-02-09 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434347', 'tblTempVendorCDR_20' ) start [2025-02-09 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434347', 'tblTempVendorCDR_20' ) end [2025-02-09 03:37:19] Production.INFO: ProcessCDR(1,14434347,1,1,2) [2025-02-09 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434347', 'tblTempUsageDetail_20' ) start [2025-02-09 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434347', 'tblTempUsageDetail_20' ) end [2025-02-09 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:37:22] Production.INFO: ==13928== Releasing lock... [2025-02-09 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:38:05 [end_date_ymd] => 2025-02-09 03:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:38:05' and `end` < '2025-02-09 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-02-09 03:38:19] Production.INFO: count ==734 [2025-02-09 03:38:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:38:05 - End Time 2025-02-09 03:38:05 [2025-02-09 03:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434352', 'tblTempUsageDetail_20' ) start [2025-02-09 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434352', 'tblTempUsageDetail_20' ) end [2025-02-09 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434352', 'tblTempVendorCDR_20' ) start [2025-02-09 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434352', 'tblTempVendorCDR_20' ) end [2025-02-09 03:38:20] Production.INFO: ProcessCDR(1,14434352,1,1,2) [2025-02-09 03:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434352', 'tblTempUsageDetail_20' ) start [2025-02-09 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434352', 'tblTempUsageDetail_20' ) end [2025-02-09 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:38:23] Production.INFO: ==14000== Releasing lock... [2025-02-09 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:38:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:39:05 [end_date_ymd] => 2025-02-09 03:39:05 [RateCDR] => 1 ) [2025-02-09 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:39:05' and `end` < '2025-02-09 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:39:19] Production.INFO: count ==725 [2025-02-09 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:39:05 - End Time 2025-02-09 03:39:05 [2025-02-09 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434357', 'tblTempUsageDetail_20' ) start [2025-02-09 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434357', 'tblTempUsageDetail_20' ) end [2025-02-09 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434357', 'tblTempVendorCDR_20' ) start [2025-02-09 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434357', 'tblTempVendorCDR_20' ) end [2025-02-09 03:39:19] Production.INFO: ProcessCDR(1,14434357,1,1,2) [2025-02-09 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434357', 'tblTempUsageDetail_20' ) start [2025-02-09 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434357', 'tblTempUsageDetail_20' ) end [2025-02-09 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:39:23] Production.INFO: ==14073== Releasing lock... [2025-02-09 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:39:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:40:05 [end_date_ymd] => 2025-02-09 03:40:05 [RateCDR] => 1 ) [2025-02-09 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:40:05' and `end` < '2025-02-09 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:40:18] Production.INFO: count ==715 [2025-02-09 03:40:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:40:05 - End Time 2025-02-09 03:40:05 [2025-02-09 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434362', 'tblTempUsageDetail_20' ) start [2025-02-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434362', 'tblTempUsageDetail_20' ) end [2025-02-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434362', 'tblTempVendorCDR_20' ) start [2025-02-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434362', 'tblTempVendorCDR_20' ) end [2025-02-09 03:40:18] Production.INFO: ProcessCDR(1,14434362,1,1,2) [2025-02-09 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434362', 'tblTempUsageDetail_20' ) start [2025-02-09 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434362', 'tblTempUsageDetail_20' ) end [2025-02-09 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:40:22] Production.INFO: ==14154== Releasing lock... [2025-02-09 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:41:05 [end_date_ymd] => 2025-02-09 03:41:05 [RateCDR] => 1 ) [2025-02-09 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:41:05' and `end` < '2025-02-09 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:41:19] Production.INFO: count ==693 [2025-02-09 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:41:05 - End Time 2025-02-09 03:41:05 [2025-02-09 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434368', 'tblTempUsageDetail_20' ) start [2025-02-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434368', 'tblTempUsageDetail_20' ) end [2025-02-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434368', 'tblTempVendorCDR_20' ) start [2025-02-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434368', 'tblTempVendorCDR_20' ) end [2025-02-09 03:41:19] Production.INFO: ProcessCDR(1,14434368,1,1,2) [2025-02-09 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434368', 'tblTempUsageDetail_20' ) start [2025-02-09 03:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434368', 'tblTempUsageDetail_20' ) end [2025-02-09 03:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:41:24] Production.INFO: ==14237== Releasing lock... [2025-02-09 03:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:41:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:42:05 [end_date_ymd] => 2025-02-09 03:42:05 [RateCDR] => 1 ) [2025-02-09 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:42:05' and `end` < '2025-02-09 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:42:18] Production.INFO: count ==693 [2025-02-09 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:42:05 - End Time 2025-02-09 03:42:05 [2025-02-09 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434373', 'tblTempUsageDetail_20' ) start [2025-02-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434373', 'tblTempUsageDetail_20' ) end [2025-02-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434373', 'tblTempVendorCDR_20' ) start [2025-02-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434373', 'tblTempVendorCDR_20' ) end [2025-02-09 03:42:18] Production.INFO: ProcessCDR(1,14434373,1,1,2) [2025-02-09 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434373', 'tblTempUsageDetail_20' ) start [2025-02-09 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434373', 'tblTempUsageDetail_20' ) end [2025-02-09 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:42:21] Production.INFO: ==14309== Releasing lock... [2025-02-09 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:43:05 [end_date_ymd] => 2025-02-09 03:43:05 [RateCDR] => 1 ) [2025-02-09 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:43:05' and `end` < '2025-02-09 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:43:19] Production.INFO: count ==693 [2025-02-09 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:43:05 - End Time 2025-02-09 03:43:05 [2025-02-09 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434378', 'tblTempUsageDetail_20' ) start [2025-02-09 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434378', 'tblTempUsageDetail_20' ) end [2025-02-09 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434378', 'tblTempVendorCDR_20' ) start [2025-02-09 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434378', 'tblTempVendorCDR_20' ) end [2025-02-09 03:43:19] Production.INFO: ProcessCDR(1,14434378,1,1,2) [2025-02-09 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434378', 'tblTempUsageDetail_20' ) start [2025-02-09 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434378', 'tblTempUsageDetail_20' ) end [2025-02-09 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:43:22] Production.INFO: ==14425== Releasing lock... [2025-02-09 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:44:05 [end_date_ymd] => 2025-02-09 03:44:05 [RateCDR] => 1 ) [2025-02-09 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:44:05' and `end` < '2025-02-09 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:44:18] Production.INFO: count ==690 [2025-02-09 03:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:44:05 - End Time 2025-02-09 03:44:05 [2025-02-09 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434383', 'tblTempUsageDetail_20' ) start [2025-02-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434383', 'tblTempUsageDetail_20' ) end [2025-02-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434383', 'tblTempVendorCDR_20' ) start [2025-02-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434383', 'tblTempVendorCDR_20' ) end [2025-02-09 03:44:18] Production.INFO: ProcessCDR(1,14434383,1,1,2) [2025-02-09 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434383', 'tblTempUsageDetail_20' ) start [2025-02-09 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434383', 'tblTempUsageDetail_20' ) end [2025-02-09 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:44:22] Production.INFO: ==14501== Releasing lock... [2025-02-09 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:45:05 [end_date_ymd] => 2025-02-09 03:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:45:05' and `end` < '2025-02-09 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-02-09 03:45:20] Production.INFO: count ==685 [2025-02-09 03:45:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:45:05 - End Time 2025-02-09 03:45:05 [2025-02-09 03:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434388', 'tblTempUsageDetail_20' ) start [2025-02-09 03:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434388', 'tblTempUsageDetail_20' ) end [2025-02-09 03:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434388', 'tblTempVendorCDR_20' ) start [2025-02-09 03:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434388', 'tblTempVendorCDR_20' ) end [2025-02-09 03:45:20] Production.INFO: ProcessCDR(1,14434388,1,1,2) [2025-02-09 03:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434388', 'tblTempUsageDetail_20' ) start [2025-02-09 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434388', 'tblTempUsageDetail_20' ) end [2025-02-09 03:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:45:23] Production.INFO: ==14572== Releasing lock... [2025-02-09 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:45:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:46:05 [end_date_ymd] => 2025-02-09 03:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:46:05' and `end` < '2025-02-09 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-02-09 03:46:17] Production.INFO: count ==687 [2025-02-09 03:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:46:05 - End Time 2025-02-09 03:46:05 [2025-02-09 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434393', 'tblTempUsageDetail_20' ) start [2025-02-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434393', 'tblTempUsageDetail_20' ) end [2025-02-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434393', 'tblTempVendorCDR_20' ) start [2025-02-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434393', 'tblTempVendorCDR_20' ) end [2025-02-09 03:46:18] Production.INFO: ProcessCDR(1,14434393,1,1,2) [2025-02-09 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434393', 'tblTempUsageDetail_20' ) start [2025-02-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434393', 'tblTempUsageDetail_20' ) end [2025-02-09 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:46:21] Production.INFO: ==14644== Releasing lock... [2025-02-09 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:47:05 [end_date_ymd] => 2025-02-09 03:47:05 [RateCDR] => 1 ) [2025-02-09 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:47:05' and `end` < '2025-02-09 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:47:19] Production.INFO: count ==684 [2025-02-09 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:47:05 - End Time 2025-02-09 03:47:05 [2025-02-09 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434398', 'tblTempUsageDetail_20' ) start [2025-02-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434398', 'tblTempUsageDetail_20' ) end [2025-02-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434398', 'tblTempVendorCDR_20' ) start [2025-02-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434398', 'tblTempVendorCDR_20' ) end [2025-02-09 03:47:19] Production.INFO: ProcessCDR(1,14434398,1,1,2) [2025-02-09 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434398', 'tblTempUsageDetail_20' ) start [2025-02-09 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434398', 'tblTempUsageDetail_20' ) end [2025-02-09 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:47:23] Production.INFO: ==14715== Releasing lock... [2025-02-09 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:48:05 [end_date_ymd] => 2025-02-09 03:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:48:05' and `end` < '2025-02-09 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-02-09 03:48:19] Production.INFO: count ==681 [2025-02-09 03:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:48:05 - End Time 2025-02-09 03:48:05 [2025-02-09 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434403', 'tblTempUsageDetail_20' ) start [2025-02-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434403', 'tblTempUsageDetail_20' ) end [2025-02-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434403', 'tblTempVendorCDR_20' ) start [2025-02-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434403', 'tblTempVendorCDR_20' ) end [2025-02-09 03:48:19] Production.INFO: ProcessCDR(1,14434403,1,1,2) [2025-02-09 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434403', 'tblTempUsageDetail_20' ) start [2025-02-09 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434403', 'tblTempUsageDetail_20' ) end [2025-02-09 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:48:23] Production.INFO: ==14790== Releasing lock... [2025-02-09 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:48:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:49:05 [end_date_ymd] => 2025-02-09 03:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:49:05' and `end` < '2025-02-09 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-02-09 03:49:18] Production.INFO: count ==677 [2025-02-09 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:49:05 - End Time 2025-02-09 03:49:05 [2025-02-09 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434408', 'tblTempUsageDetail_20' ) start [2025-02-09 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434408', 'tblTempUsageDetail_20' ) end [2025-02-09 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434408', 'tblTempVendorCDR_20' ) start [2025-02-09 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434408', 'tblTempVendorCDR_20' ) end [2025-02-09 03:49:18] Production.INFO: ProcessCDR(1,14434408,1,1,2) [2025-02-09 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434408', 'tblTempUsageDetail_20' ) start [2025-02-09 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434408', 'tblTempUsageDetail_20' ) end [2025-02-09 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:49:22] Production.INFO: ==14865== Releasing lock... [2025-02-09 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:50:07 [end_date_ymd] => 2025-02-09 03:50:07 [RateCDR] => 1 ) [2025-02-09 03: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-02-09 00:50:07' and `end` < '2025-02-09 03: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-02-09 03:50:20] Production.INFO: count ==673 [2025-02-09 03:50:20] Production.ERROR: pbx CDR StartTime 2025-02-09 00:50:07 - End Time 2025-02-09 03:50:07 [2025-02-09 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434414', 'tblTempUsageDetail_20' ) start [2025-02-09 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434414', 'tblTempUsageDetail_20' ) end [2025-02-09 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434414', 'tblTempVendorCDR_20' ) start [2025-02-09 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434414', 'tblTempVendorCDR_20' ) end [2025-02-09 03:50:20] Production.INFO: ProcessCDR(1,14434414,1,1,2) [2025-02-09 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434414', 'tblTempUsageDetail_20' ) start [2025-02-09 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434414', 'tblTempUsageDetail_20' ) end [2025-02-09 03:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:50:25] Production.INFO: ==14941== Releasing lock... [2025-02-09 03:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:50:25] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:51:06 [end_date_ymd] => 2025-02-09 03:51:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:51:06' and `end` < '2025-02-09 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-02-09 03:51:18] Production.INFO: count ==660 [2025-02-09 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:51:06 - End Time 2025-02-09 03:51:06 [2025-02-09 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434419', 'tblTempUsageDetail_20' ) start [2025-02-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434419', 'tblTempUsageDetail_20' ) end [2025-02-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434419', 'tblTempVendorCDR_20' ) start [2025-02-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434419', 'tblTempVendorCDR_20' ) end [2025-02-09 03:51:19] Production.INFO: ProcessCDR(1,14434419,1,1,2) [2025-02-09 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434419', 'tblTempUsageDetail_20' ) start [2025-02-09 03:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434419', 'tblTempUsageDetail_20' ) end [2025-02-09 03:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:51:24] Production.INFO: ==15015== Releasing lock... [2025-02-09 03:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:51:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:52:05 [end_date_ymd] => 2025-02-09 03:52:05 [RateCDR] => 1 ) [2025-02-09 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:52:05' and `end` < '2025-02-09 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:52:18] Production.INFO: count ==660 [2025-02-09 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:52:05 - End Time 2025-02-09 03:52:05 [2025-02-09 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434424', 'tblTempUsageDetail_20' ) start [2025-02-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434424', 'tblTempUsageDetail_20' ) end [2025-02-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434424', 'tblTempVendorCDR_20' ) start [2025-02-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434424', 'tblTempVendorCDR_20' ) end [2025-02-09 03:52:18] Production.INFO: ProcessCDR(1,14434424,1,1,2) [2025-02-09 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434424', 'tblTempUsageDetail_20' ) start [2025-02-09 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434424', 'tblTempUsageDetail_20' ) end [2025-02-09 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:52:22] Production.INFO: ==15089== Releasing lock... [2025-02-09 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:53:06 [end_date_ymd] => 2025-02-09 03:53:06 [RateCDR] => 1 ) [2025-02-09 03: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-02-09 00:53:06' and `end` < '2025-02-09 03: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-02-09 03:53:19] Production.INFO: count ==658 [2025-02-09 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:53:06 - End Time 2025-02-09 03:53:06 [2025-02-09 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434429', 'tblTempUsageDetail_20' ) start [2025-02-09 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434429', 'tblTempUsageDetail_20' ) end [2025-02-09 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434429', 'tblTempVendorCDR_20' ) start [2025-02-09 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434429', 'tblTempVendorCDR_20' ) end [2025-02-09 03:53:19] Production.INFO: ProcessCDR(1,14434429,1,1,2) [2025-02-09 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434429', 'tblTempUsageDetail_20' ) start [2025-02-09 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434429', 'tblTempUsageDetail_20' ) end [2025-02-09 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:53:22] Production.INFO: ==15170== Releasing lock... [2025-02-09 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:54:05 [end_date_ymd] => 2025-02-09 03:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:54:05' and `end` < '2025-02-09 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-02-09 03:54:18] Production.INFO: count ==658 [2025-02-09 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:54:05 - End Time 2025-02-09 03:54:05 [2025-02-09 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434434', 'tblTempUsageDetail_20' ) start [2025-02-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434434', 'tblTempUsageDetail_20' ) end [2025-02-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434434', 'tblTempVendorCDR_20' ) start [2025-02-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434434', 'tblTempVendorCDR_20' ) end [2025-02-09 03:54:18] Production.INFO: ProcessCDR(1,14434434,1,1,2) [2025-02-09 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434434', 'tblTempUsageDetail_20' ) start [2025-02-09 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434434', 'tblTempUsageDetail_20' ) end [2025-02-09 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:54:21] Production.INFO: ==15243== Releasing lock... [2025-02-09 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:55:06 [end_date_ymd] => 2025-02-09 03:55:06 [RateCDR] => 1 ) [2025-02-09 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 00:55:06' and `end` < '2025-02-09 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 03:55:19] Production.INFO: count ==651 [2025-02-09 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:55:06 - End Time 2025-02-09 03:55:06 [2025-02-09 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434439', 'tblTempUsageDetail_20' ) start [2025-02-09 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434439', 'tblTempUsageDetail_20' ) end [2025-02-09 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434439', 'tblTempVendorCDR_20' ) start [2025-02-09 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434439', 'tblTempVendorCDR_20' ) end [2025-02-09 03:55:19] Production.INFO: ProcessCDR(1,14434439,1,1,2) [2025-02-09 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434439', 'tblTempUsageDetail_20' ) start [2025-02-09 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434439', 'tblTempUsageDetail_20' ) end [2025-02-09 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:55:22] Production.INFO: ==15316== Releasing lock... [2025-02-09 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:56:05 [end_date_ymd] => 2025-02-09 03:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:56:05' and `end` < '2025-02-09 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-02-09 03:56:19] Production.INFO: count ==649 [2025-02-09 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 00:56:05 - End Time 2025-02-09 03:56:05 [2025-02-09 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434444', 'tblTempUsageDetail_20' ) start [2025-02-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434444', 'tblTempUsageDetail_20' ) end [2025-02-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434444', 'tblTempVendorCDR_20' ) start [2025-02-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434444', 'tblTempVendorCDR_20' ) end [2025-02-09 03:56:19] Production.INFO: ProcessCDR(1,14434444,1,1,2) [2025-02-09 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434444', 'tblTempUsageDetail_20' ) start [2025-02-09 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434444', 'tblTempUsageDetail_20' ) end [2025-02-09 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:56:22] Production.INFO: ==15390== Releasing lock... [2025-02-09 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:57:05 [end_date_ymd] => 2025-02-09 03:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:57:05' and `end` < '2025-02-09 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-02-09 03:57:18] Production.INFO: count ==646 [2025-02-09 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:57:05 - End Time 2025-02-09 03:57:05 [2025-02-09 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434449', 'tblTempUsageDetail_20' ) start [2025-02-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434449', 'tblTempUsageDetail_20' ) end [2025-02-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434449', 'tblTempVendorCDR_20' ) start [2025-02-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434449', 'tblTempVendorCDR_20' ) end [2025-02-09 03:57:18] Production.INFO: ProcessCDR(1,14434449,1,1,2) [2025-02-09 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434449', 'tblTempUsageDetail_20' ) start [2025-02-09 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434449', 'tblTempUsageDetail_20' ) end [2025-02-09 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:57:22] Production.INFO: ==15466== Releasing lock... [2025-02-09 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:57:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:58:05 [end_date_ymd] => 2025-02-09 03:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:58:05' and `end` < '2025-02-09 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-02-09 03:58:18] Production.INFO: count ==641 [2025-02-09 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:58:05 - End Time 2025-02-09 03:58:05 [2025-02-09 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434454', 'tblTempUsageDetail_20' ) start [2025-02-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434454', 'tblTempUsageDetail_20' ) end [2025-02-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434454', 'tblTempVendorCDR_20' ) start [2025-02-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434454', 'tblTempVendorCDR_20' ) end [2025-02-09 03:58:18] Production.INFO: ProcessCDR(1,14434454,1,1,2) [2025-02-09 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434454', 'tblTempUsageDetail_20' ) start [2025-02-09 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434454', 'tblTempUsageDetail_20' ) end [2025-02-09 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:58:22] Production.INFO: ==15574== Releasing lock... [2025-02-09 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 00:59:05 [end_date_ymd] => 2025-02-09 03:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 00:59:05' and `end` < '2025-02-09 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-02-09 03:59:18] Production.INFO: count ==641 [2025-02-09 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 00:59:05 - End Time 2025-02-09 03:59:05 [2025-02-09 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434459', 'tblTempUsageDetail_20' ) start [2025-02-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434459', 'tblTempUsageDetail_20' ) end [2025-02-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434459', 'tblTempVendorCDR_20' ) start [2025-02-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434459', 'tblTempVendorCDR_20' ) end [2025-02-09 03:59:18] Production.INFO: ProcessCDR(1,14434459,1,1,2) [2025-02-09 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434459', 'tblTempUsageDetail_20' ) start [2025-02-09 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434459', 'tblTempUsageDetail_20' ) end [2025-02-09 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 03:59:21] Production.INFO: ==15647== Releasing lock... [2025-02-09 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 03:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:00:06 [end_date_ymd] => 2025-02-09 04:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:00:06' and `end` < '2025-02-09 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-02-09 04:00:19] Production.INFO: count ==633 [2025-02-09 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:00:06 - End Time 2025-02-09 04:00:06 [2025-02-09 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434464', 'tblTempUsageDetail_20' ) start [2025-02-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434464', 'tblTempUsageDetail_20' ) end [2025-02-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434464', 'tblTempVendorCDR_20' ) start [2025-02-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434464', 'tblTempVendorCDR_20' ) end [2025-02-09 04:00:19] Production.INFO: ProcessCDR(1,14434464,1,1,2) [2025-02-09 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434464', 'tblTempUsageDetail_20' ) start [2025-02-09 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434464', 'tblTempUsageDetail_20' ) end [2025-02-09 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:00:23] Production.INFO: ==15722== Releasing lock... [2025-02-09 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:00:23] Production.INFO: 32 MB #Memory Used# [2025-02-09 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:01:05 [end_date_ymd] => 2025-02-09 04:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:01:05' and `end` < '2025-02-09 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-02-09 04:01:18] Production.INFO: count ==600 [2025-02-09 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:01:05 - End Time 2025-02-09 04:01:05 [2025-02-09 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434471', 'tblTempUsageDetail_20' ) start [2025-02-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434471', 'tblTempUsageDetail_20' ) end [2025-02-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434471', 'tblTempVendorCDR_20' ) start [2025-02-09 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434471', 'tblTempVendorCDR_20' ) end [2025-02-09 04:01:18] Production.INFO: ProcessCDR(1,14434471,1,1,2) [2025-02-09 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434471', 'tblTempUsageDetail_20' ) start [2025-02-09 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434471', 'tblTempUsageDetail_20' ) end [2025-02-09 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:01:21] Production.INFO: ==15807== Releasing lock... [2025-02-09 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:02:05 [end_date_ymd] => 2025-02-09 04:02:05 [RateCDR] => 1 ) [2025-02-09 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:02:05' and `end` < '2025-02-09 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:02:18] Production.INFO: count ==599 [2025-02-09 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:02:05 - End Time 2025-02-09 04:02:05 [2025-02-09 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434476', 'tblTempUsageDetail_20' ) start [2025-02-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434476', 'tblTempUsageDetail_20' ) end [2025-02-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434476', 'tblTempVendorCDR_20' ) start [2025-02-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434476', 'tblTempVendorCDR_20' ) end [2025-02-09 04:02:18] Production.INFO: ProcessCDR(1,14434476,1,1,2) [2025-02-09 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434476', 'tblTempUsageDetail_20' ) start [2025-02-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434476', 'tblTempUsageDetail_20' ) end [2025-02-09 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:02:21] Production.INFO: ==15879== Releasing lock... [2025-02-09 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:03:05 [end_date_ymd] => 2025-02-09 04:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:03:05' and `end` < '2025-02-09 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-02-09 04:03:18] Production.INFO: count ==594 [2025-02-09 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:03:05 - End Time 2025-02-09 04:03:05 [2025-02-09 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434481', 'tblTempUsageDetail_20' ) start [2025-02-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434481', 'tblTempUsageDetail_20' ) end [2025-02-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434481', 'tblTempVendorCDR_20' ) start [2025-02-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434481', 'tblTempVendorCDR_20' ) end [2025-02-09 04:03:18] Production.INFO: ProcessCDR(1,14434481,1,1,2) [2025-02-09 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434481', 'tblTempUsageDetail_20' ) start [2025-02-09 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434481', 'tblTempUsageDetail_20' ) end [2025-02-09 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:03:21] Production.INFO: ==15951== Releasing lock... [2025-02-09 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:03:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:04:05 [end_date_ymd] => 2025-02-09 04:04:05 [RateCDR] => 1 ) [2025-02-09 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:04:05' and `end` < '2025-02-09 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:04:18] Production.INFO: count ==593 [2025-02-09 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:04:05 - End Time 2025-02-09 04:04:05 [2025-02-09 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434486', 'tblTempUsageDetail_20' ) start [2025-02-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434486', 'tblTempUsageDetail_20' ) end [2025-02-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434486', 'tblTempVendorCDR_20' ) start [2025-02-09 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434486', 'tblTempVendorCDR_20' ) end [2025-02-09 04:04:18] Production.INFO: ProcessCDR(1,14434486,1,1,2) [2025-02-09 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434486', 'tblTempUsageDetail_20' ) start [2025-02-09 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434486', 'tblTempUsageDetail_20' ) end [2025-02-09 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:04:21] Production.INFO: ==16025== Releasing lock... [2025-02-09 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:05:06 [end_date_ymd] => 2025-02-09 04:05:06 [RateCDR] => 1 ) [2025-02-09 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:05:06' and `end` < '2025-02-09 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:05:18] Production.INFO: count ==596 [2025-02-09 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:05:06 - End Time 2025-02-09 04:05:06 [2025-02-09 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434491', 'tblTempUsageDetail_20' ) start [2025-02-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434491', 'tblTempUsageDetail_20' ) end [2025-02-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434491', 'tblTempVendorCDR_20' ) start [2025-02-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434491', 'tblTempVendorCDR_20' ) end [2025-02-09 04:05:18] Production.INFO: ProcessCDR(1,14434491,1,1,2) [2025-02-09 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434491', 'tblTempUsageDetail_20' ) start [2025-02-09 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434491', 'tblTempUsageDetail_20' ) end [2025-02-09 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:05:22] Production.INFO: ==16098== Releasing lock... [2025-02-09 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:06:05 [end_date_ymd] => 2025-02-09 04:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:06:05' and `end` < '2025-02-09 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-02-09 04:06:18] Production.INFO: count ==596 [2025-02-09 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:06:05 - End Time 2025-02-09 04:06:05 [2025-02-09 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434496', 'tblTempUsageDetail_20' ) start [2025-02-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434496', 'tblTempUsageDetail_20' ) end [2025-02-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434496', 'tblTempVendorCDR_20' ) start [2025-02-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434496', 'tblTempVendorCDR_20' ) end [2025-02-09 04:06:18] Production.INFO: ProcessCDR(1,14434496,1,1,2) [2025-02-09 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434496', 'tblTempUsageDetail_20' ) start [2025-02-09 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434496', 'tblTempUsageDetail_20' ) end [2025-02-09 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:06:21] Production.INFO: ==16171== Releasing lock... [2025-02-09 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:07:05 [end_date_ymd] => 2025-02-09 04:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:07:05' and `end` < '2025-02-09 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-02-09 04:07:18] Production.INFO: count ==596 [2025-02-09 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:07:05 - End Time 2025-02-09 04:07:05 [2025-02-09 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434501', 'tblTempUsageDetail_20' ) start [2025-02-09 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434501', 'tblTempUsageDetail_20' ) end [2025-02-09 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434501', 'tblTempVendorCDR_20' ) start [2025-02-09 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434501', 'tblTempVendorCDR_20' ) end [2025-02-09 04:07:19] Production.INFO: ProcessCDR(1,14434501,1,1,2) [2025-02-09 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434501', 'tblTempUsageDetail_20' ) start [2025-02-09 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434501', 'tblTempUsageDetail_20' ) end [2025-02-09 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:07:22] Production.INFO: ==16245== Releasing lock... [2025-02-09 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:08:05 [end_date_ymd] => 2025-02-09 04:08:05 [RateCDR] => 1 ) [2025-02-09 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:08:05' and `end` < '2025-02-09 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:08:18] Production.INFO: count ==596 [2025-02-09 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:08:05 - End Time 2025-02-09 04:08:05 [2025-02-09 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434506', 'tblTempUsageDetail_20' ) start [2025-02-09 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434506', 'tblTempUsageDetail_20' ) end [2025-02-09 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434506', 'tblTempVendorCDR_20' ) start [2025-02-09 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434506', 'tblTempVendorCDR_20' ) end [2025-02-09 04:08:18] Production.INFO: ProcessCDR(1,14434506,1,1,2) [2025-02-09 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434506', 'tblTempUsageDetail_20' ) start [2025-02-09 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434506', 'tblTempUsageDetail_20' ) end [2025-02-09 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:08:21] Production.INFO: ==16323== Releasing lock... [2025-02-09 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:09:05 [end_date_ymd] => 2025-02-09 04:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:09:05' and `end` < '2025-02-09 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-02-09 04:09:18] Production.INFO: count ==596 [2025-02-09 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:09:05 - End Time 2025-02-09 04:09:05 [2025-02-09 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434511', 'tblTempUsageDetail_20' ) start [2025-02-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434511', 'tblTempUsageDetail_20' ) end [2025-02-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434511', 'tblTempVendorCDR_20' ) start [2025-02-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434511', 'tblTempVendorCDR_20' ) end [2025-02-09 04:09:18] Production.INFO: ProcessCDR(1,14434511,1,1,2) [2025-02-09 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434511', 'tblTempUsageDetail_20' ) start [2025-02-09 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434511', 'tblTempUsageDetail_20' ) end [2025-02-09 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:09:22] Production.INFO: ==16394== Releasing lock... [2025-02-09 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:09:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:10:05 [end_date_ymd] => 2025-02-09 04:10:05 [RateCDR] => 1 ) [2025-02-09 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:10:05' and `end` < '2025-02-09 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:10:18] Production.INFO: count ==592 [2025-02-09 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:10:05 - End Time 2025-02-09 04:10:05 [2025-02-09 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434516', 'tblTempUsageDetail_20' ) start [2025-02-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434516', 'tblTempUsageDetail_20' ) end [2025-02-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434516', 'tblTempVendorCDR_20' ) start [2025-02-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434516', 'tblTempVendorCDR_20' ) end [2025-02-09 04:10:18] Production.INFO: ProcessCDR(1,14434516,1,1,2) [2025-02-09 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434516', 'tblTempUsageDetail_20' ) start [2025-02-09 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434516', 'tblTempUsageDetail_20' ) end [2025-02-09 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:10:22] Production.INFO: ==16468== Releasing lock... [2025-02-09 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:11:05 [end_date_ymd] => 2025-02-09 04:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:11:05' and `end` < '2025-02-09 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-02-09 04:11:19] Production.INFO: count ==582 [2025-02-09 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:11:05 - End Time 2025-02-09 04:11:05 [2025-02-09 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434522', 'tblTempUsageDetail_20' ) start [2025-02-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434522', 'tblTempUsageDetail_20' ) end [2025-02-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434522', 'tblTempVendorCDR_20' ) start [2025-02-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434522', 'tblTempVendorCDR_20' ) end [2025-02-09 04:11:19] Production.INFO: ProcessCDR(1,14434522,1,1,2) [2025-02-09 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434522', 'tblTempUsageDetail_20' ) start [2025-02-09 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434522', 'tblTempUsageDetail_20' ) end [2025-02-09 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:11:22] Production.INFO: ==16540== Releasing lock... [2025-02-09 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:11:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:12:05 [end_date_ymd] => 2025-02-09 04:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:12:05' and `end` < '2025-02-09 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-02-09 04:12:18] Production.INFO: count ==582 [2025-02-09 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:12:05 - End Time 2025-02-09 04:12:05 [2025-02-09 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434527', 'tblTempUsageDetail_20' ) start [2025-02-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434527', 'tblTempUsageDetail_20' ) end [2025-02-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434527', 'tblTempVendorCDR_20' ) start [2025-02-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434527', 'tblTempVendorCDR_20' ) end [2025-02-09 04:12:18] Production.INFO: ProcessCDR(1,14434527,1,1,2) [2025-02-09 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434527', 'tblTempUsageDetail_20' ) start [2025-02-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434527', 'tblTempUsageDetail_20' ) end [2025-02-09 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:12:21] Production.INFO: ==16616== Releasing lock... [2025-02-09 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:13:05 [end_date_ymd] => 2025-02-09 04:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:13:05' and `end` < '2025-02-09 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-02-09 04:13:18] Production.INFO: count ==581 [2025-02-09 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:13:05 - End Time 2025-02-09 04:13:05 [2025-02-09 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434532', 'tblTempUsageDetail_20' ) start [2025-02-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434532', 'tblTempUsageDetail_20' ) end [2025-02-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434532', 'tblTempVendorCDR_20' ) start [2025-02-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434532', 'tblTempVendorCDR_20' ) end [2025-02-09 04:13:18] Production.INFO: ProcessCDR(1,14434532,1,1,2) [2025-02-09 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434532', 'tblTempUsageDetail_20' ) start [2025-02-09 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434532', 'tblTempUsageDetail_20' ) end [2025-02-09 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:13:22] Production.INFO: ==16692== Releasing lock... [2025-02-09 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:14:04 [end_date_ymd] => 2025-02-09 04:14:04 [RateCDR] => 1 ) [2025-02-09 04:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:14:04' and `end` < '2025-02-09 04:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:14:17] Production.INFO: count ==579 [2025-02-09 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-09 01:14:04 - End Time 2025-02-09 04:14:04 [2025-02-09 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434537', 'tblTempUsageDetail_20' ) start [2025-02-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434537', 'tblTempUsageDetail_20' ) end [2025-02-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434537', 'tblTempVendorCDR_20' ) start [2025-02-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434537', 'tblTempVendorCDR_20' ) end [2025-02-09 04:14:17] Production.INFO: ProcessCDR(1,14434537,1,1,2) [2025-02-09 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434537', 'tblTempUsageDetail_20' ) start [2025-02-09 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434537', 'tblTempUsageDetail_20' ) end [2025-02-09 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:14:20] Production.INFO: ==16805== Releasing lock... [2025-02-09 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:14:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:15:05 [end_date_ymd] => 2025-02-09 04:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:15:05' and `end` < '2025-02-09 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-02-09 04:15:18] Production.INFO: count ==579 [2025-02-09 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:15:05 - End Time 2025-02-09 04:15:05 [2025-02-09 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434542', 'tblTempUsageDetail_20' ) start [2025-02-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434542', 'tblTempUsageDetail_20' ) end [2025-02-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434542', 'tblTempVendorCDR_20' ) start [2025-02-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434542', 'tblTempVendorCDR_20' ) end [2025-02-09 04:15:18] Production.INFO: ProcessCDR(1,14434542,1,1,2) [2025-02-09 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434542', 'tblTempUsageDetail_20' ) start [2025-02-09 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434542', 'tblTempUsageDetail_20' ) end [2025-02-09 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:15:21] Production.INFO: ==16888== Releasing lock... [2025-02-09 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:16:04 [end_date_ymd] => 2025-02-09 04:16:04 [RateCDR] => 1 ) [2025-02-09 04:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:16:04' and `end` < '2025-02-09 04:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:16:17] Production.INFO: count ==579 [2025-02-09 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-09 01:16:04 - End Time 2025-02-09 04:16:04 [2025-02-09 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434547', 'tblTempUsageDetail_20' ) start [2025-02-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434547', 'tblTempUsageDetail_20' ) end [2025-02-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434547', 'tblTempVendorCDR_20' ) start [2025-02-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434547', 'tblTempVendorCDR_20' ) end [2025-02-09 04:16:17] Production.INFO: ProcessCDR(1,14434547,1,1,2) [2025-02-09 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434547', 'tblTempUsageDetail_20' ) start [2025-02-09 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434547', 'tblTempUsageDetail_20' ) end [2025-02-09 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:16:20] Production.INFO: ==16958== Releasing lock... [2025-02-09 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:16:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:17:05 [end_date_ymd] => 2025-02-09 04:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:17:05' and `end` < '2025-02-09 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-02-09 04:17:17] Production.INFO: count ==579 [2025-02-09 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:17:05 - End Time 2025-02-09 04:17:05 [2025-02-09 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434552', 'tblTempUsageDetail_20' ) start [2025-02-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434552', 'tblTempUsageDetail_20' ) end [2025-02-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434552', 'tblTempVendorCDR_20' ) start [2025-02-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434552', 'tblTempVendorCDR_20' ) end [2025-02-09 04:17:18] Production.INFO: ProcessCDR(1,14434552,1,1,2) [2025-02-09 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434552', 'tblTempUsageDetail_20' ) start [2025-02-09 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434552', 'tblTempUsageDetail_20' ) end [2025-02-09 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:17:21] Production.INFO: ==17032== Releasing lock... [2025-02-09 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:18:05 [end_date_ymd] => 2025-02-09 04:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:18:05' and `end` < '2025-02-09 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-02-09 04:18:18] Production.INFO: count ==572 [2025-02-09 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:18:05 - End Time 2025-02-09 04:18:05 [2025-02-09 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434557', 'tblTempUsageDetail_20' ) start [2025-02-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434557', 'tblTempUsageDetail_20' ) end [2025-02-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434557', 'tblTempVendorCDR_20' ) start [2025-02-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434557', 'tblTempVendorCDR_20' ) end [2025-02-09 04:18:18] Production.INFO: ProcessCDR(1,14434557,1,1,2) [2025-02-09 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434557', 'tblTempUsageDetail_20' ) start [2025-02-09 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434557', 'tblTempUsageDetail_20' ) end [2025-02-09 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:18:22] Production.INFO: ==17115== Releasing lock... [2025-02-09 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:19:05 [end_date_ymd] => 2025-02-09 04:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:19:05' and `end` < '2025-02-09 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-02-09 04:19:18] Production.INFO: count ==572 [2025-02-09 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:19:05 - End Time 2025-02-09 04:19:05 [2025-02-09 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434562', 'tblTempUsageDetail_20' ) start [2025-02-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434562', 'tblTempUsageDetail_20' ) end [2025-02-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434562', 'tblTempVendorCDR_20' ) start [2025-02-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434562', 'tblTempVendorCDR_20' ) end [2025-02-09 04:19:18] Production.INFO: ProcessCDR(1,14434562,1,1,2) [2025-02-09 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434562', 'tblTempUsageDetail_20' ) start [2025-02-09 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434562', 'tblTempUsageDetail_20' ) end [2025-02-09 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:19:21] Production.INFO: ==17189== Releasing lock... [2025-02-09 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:20:06 [end_date_ymd] => 2025-02-09 04:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:20:06' and `end` < '2025-02-09 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-02-09 04:20:18] Production.INFO: count ==566 [2025-02-09 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:20:06 - End Time 2025-02-09 04:20:06 [2025-02-09 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434568', 'tblTempUsageDetail_20' ) start [2025-02-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434568', 'tblTempUsageDetail_20' ) end [2025-02-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434568', 'tblTempVendorCDR_20' ) start [2025-02-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434568', 'tblTempVendorCDR_20' ) end [2025-02-09 04:20:18] Production.INFO: ProcessCDR(1,14434568,1,1,2) [2025-02-09 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434568', 'tblTempUsageDetail_20' ) start [2025-02-09 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434568', 'tblTempUsageDetail_20' ) end [2025-02-09 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:20:21] Production.INFO: ==17266== Releasing lock... [2025-02-09 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:21:04 [end_date_ymd] => 2025-02-09 04:21:04 [RateCDR] => 1 ) [2025-02-09 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:21:04' and `end` < '2025-02-09 04:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:21:17] Production.INFO: count ==530 [2025-02-09 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-09 01:21:04 - End Time 2025-02-09 04:21:04 [2025-02-09 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434573', 'tblTempUsageDetail_20' ) start [2025-02-09 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434573', 'tblTempUsageDetail_20' ) end [2025-02-09 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434573', 'tblTempVendorCDR_20' ) start [2025-02-09 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434573', 'tblTempVendorCDR_20' ) end [2025-02-09 04:21:17] Production.INFO: ProcessCDR(1,14434573,1,1,2) [2025-02-09 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434573', 'tblTempUsageDetail_20' ) start [2025-02-09 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434573', 'tblTempUsageDetail_20' ) end [2025-02-09 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:21:20] Production.INFO: ==17340== Releasing lock... [2025-02-09 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:22:05 [end_date_ymd] => 2025-02-09 04:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:22:05' and `end` < '2025-02-09 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-02-09 04:22:18] Production.INFO: count ==531 [2025-02-09 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:22:05 - End Time 2025-02-09 04:22:05 [2025-02-09 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434578', 'tblTempUsageDetail_20' ) start [2025-02-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434578', 'tblTempUsageDetail_20' ) end [2025-02-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434578', 'tblTempVendorCDR_20' ) start [2025-02-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434578', 'tblTempVendorCDR_20' ) end [2025-02-09 04:22:18] Production.INFO: ProcessCDR(1,14434578,1,1,2) [2025-02-09 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434578', 'tblTempUsageDetail_20' ) start [2025-02-09 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434578', 'tblTempUsageDetail_20' ) end [2025-02-09 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:22:22] Production.INFO: ==17413== Releasing lock... [2025-02-09 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:23:05 [end_date_ymd] => 2025-02-09 04:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:23:05' and `end` < '2025-02-09 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-02-09 04:23:18] Production.INFO: count ==529 [2025-02-09 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:23:05 - End Time 2025-02-09 04:23:05 [2025-02-09 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434583', 'tblTempUsageDetail_20' ) start [2025-02-09 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434583', 'tblTempUsageDetail_20' ) end [2025-02-09 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434583', 'tblTempVendorCDR_20' ) start [2025-02-09 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434583', 'tblTempVendorCDR_20' ) end [2025-02-09 04:23:18] Production.INFO: ProcessCDR(1,14434583,1,1,2) [2025-02-09 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434583', 'tblTempUsageDetail_20' ) start [2025-02-09 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434583', 'tblTempUsageDetail_20' ) end [2025-02-09 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:23:21] Production.INFO: ==17488== Releasing lock... [2025-02-09 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:24:05 [end_date_ymd] => 2025-02-09 04:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:24:05' and `end` < '2025-02-09 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-02-09 04:24:19] Production.INFO: count ==527 [2025-02-09 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:24:05 - End Time 2025-02-09 04:24:05 [2025-02-09 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434588', 'tblTempUsageDetail_20' ) start [2025-02-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434588', 'tblTempUsageDetail_20' ) end [2025-02-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434588', 'tblTempVendorCDR_20' ) start [2025-02-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434588', 'tblTempVendorCDR_20' ) end [2025-02-09 04:24:19] Production.INFO: ProcessCDR(1,14434588,1,1,2) [2025-02-09 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434588', 'tblTempUsageDetail_20' ) start [2025-02-09 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434588', 'tblTempUsageDetail_20' ) end [2025-02-09 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:24:22] Production.INFO: ==17557== Releasing lock... [2025-02-09 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:25:05 [end_date_ymd] => 2025-02-09 04:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:25:05' and `end` < '2025-02-09 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-02-09 04:25:17] Production.INFO: count ==526 [2025-02-09 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:25:05 - End Time 2025-02-09 04:25:05 [2025-02-09 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434593', 'tblTempUsageDetail_20' ) start [2025-02-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434593', 'tblTempUsageDetail_20' ) end [2025-02-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434593', 'tblTempVendorCDR_20' ) start [2025-02-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434593', 'tblTempVendorCDR_20' ) end [2025-02-09 04:25:18] Production.INFO: ProcessCDR(1,14434593,1,1,2) [2025-02-09 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434593', 'tblTempUsageDetail_20' ) start [2025-02-09 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434593', 'tblTempUsageDetail_20' ) end [2025-02-09 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:25:22] Production.INFO: ==17632== Releasing lock... [2025-02-09 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:26:05 [end_date_ymd] => 2025-02-09 04:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:26:05' and `end` < '2025-02-09 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-02-09 04:26:19] Production.INFO: count ==526 [2025-02-09 04:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:26:05 - End Time 2025-02-09 04:26:05 [2025-02-09 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434598', 'tblTempUsageDetail_20' ) start [2025-02-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434598', 'tblTempUsageDetail_20' ) end [2025-02-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434598', 'tblTempVendorCDR_20' ) start [2025-02-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434598', 'tblTempVendorCDR_20' ) end [2025-02-09 04:26:19] Production.INFO: ProcessCDR(1,14434598,1,1,2) [2025-02-09 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434598', 'tblTempUsageDetail_20' ) start [2025-02-09 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434598', 'tblTempUsageDetail_20' ) end [2025-02-09 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:26:22] Production.INFO: ==17704== Releasing lock... [2025-02-09 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:27:05 [end_date_ymd] => 2025-02-09 04:27:05 [RateCDR] => 1 ) [2025-02-09 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:27:05' and `end` < '2025-02-09 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:27:18] Production.INFO: count ==526 [2025-02-09 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:27:05 - End Time 2025-02-09 04:27:05 [2025-02-09 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434603', 'tblTempUsageDetail_20' ) start [2025-02-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434603', 'tblTempUsageDetail_20' ) end [2025-02-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434603', 'tblTempVendorCDR_20' ) start [2025-02-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434603', 'tblTempVendorCDR_20' ) end [2025-02-09 04:27:18] Production.INFO: ProcessCDR(1,14434603,1,1,2) [2025-02-09 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434603', 'tblTempUsageDetail_20' ) start [2025-02-09 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434603', 'tblTempUsageDetail_20' ) end [2025-02-09 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:27:21] Production.INFO: ==17775== Releasing lock... [2025-02-09 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:28:05 [end_date_ymd] => 2025-02-09 04:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:28:05' and `end` < '2025-02-09 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-02-09 04:28:19] Production.INFO: count ==526 [2025-02-09 04:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:28:05 - End Time 2025-02-09 04:28:05 [2025-02-09 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434608', 'tblTempUsageDetail_20' ) start [2025-02-09 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434608', 'tblTempUsageDetail_20' ) end [2025-02-09 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434608', 'tblTempVendorCDR_20' ) start [2025-02-09 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434608', 'tblTempVendorCDR_20' ) end [2025-02-09 04:28:19] Production.INFO: ProcessCDR(1,14434608,1,1,2) [2025-02-09 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434608', 'tblTempUsageDetail_20' ) start [2025-02-09 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434608', 'tblTempUsageDetail_20' ) end [2025-02-09 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:28:22] Production.INFO: ==17850== Releasing lock... [2025-02-09 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:29:05 [end_date_ymd] => 2025-02-09 04:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:29:05' and `end` < '2025-02-09 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-02-09 04:29:19] Production.INFO: count ==523 [2025-02-09 04:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:29:05 - End Time 2025-02-09 04:29:05 [2025-02-09 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434612', 'tblTempUsageDetail_20' ) start [2025-02-09 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434612', 'tblTempUsageDetail_20' ) end [2025-02-09 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434612', 'tblTempVendorCDR_20' ) start [2025-02-09 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434612', 'tblTempVendorCDR_20' ) end [2025-02-09 04:29:19] Production.INFO: ProcessCDR(1,14434612,1,1,2) [2025-02-09 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434612', 'tblTempUsageDetail_20' ) start [2025-02-09 04:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434612', 'tblTempUsageDetail_20' ) end [2025-02-09 04:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:29:24] Production.INFO: ==17960== Releasing lock... [2025-02-09 04:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:29:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:30:06 [end_date_ymd] => 2025-02-09 04:30:06 [RateCDR] => 1 ) [2025-02-09 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:30:06' and `end` < '2025-02-09 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:30:19] Production.INFO: count ==520 [2025-02-09 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:30:06 - End Time 2025-02-09 04:30:06 [2025-02-09 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434619', 'tblTempUsageDetail_20' ) start [2025-02-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434619', 'tblTempUsageDetail_20' ) end [2025-02-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434619', 'tblTempVendorCDR_20' ) start [2025-02-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434619', 'tblTempVendorCDR_20' ) end [2025-02-09 04:30:19] Production.INFO: ProcessCDR(1,14434619,1,1,2) [2025-02-09 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434619', 'tblTempUsageDetail_20' ) start [2025-02-09 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434619', 'tblTempUsageDetail_20' ) end [2025-02-09 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:30:22] Production.INFO: ==18036== Releasing lock... [2025-02-09 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:31:06 [end_date_ymd] => 2025-02-09 04:31:06 [RateCDR] => 1 ) [2025-02-09 04: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-02-09 01:31:06' and `end` < '2025-02-09 04: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-02-09 04:31:19] Production.INFO: count ==511 [2025-02-09 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:31:06 - End Time 2025-02-09 04:31:06 [2025-02-09 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434625', 'tblTempUsageDetail_20' ) start [2025-02-09 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434625', 'tblTempUsageDetail_20' ) end [2025-02-09 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434625', 'tblTempVendorCDR_20' ) start [2025-02-09 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434625', 'tblTempVendorCDR_20' ) end [2025-02-09 04:31:19] Production.INFO: ProcessCDR(1,14434625,1,1,2) [2025-02-09 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434625', 'tblTempUsageDetail_20' ) start [2025-02-09 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434625', 'tblTempUsageDetail_20' ) end [2025-02-09 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:31:22] Production.INFO: ==18113== Releasing lock... [2025-02-09 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:31:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:32:05 [end_date_ymd] => 2025-02-09 04:32:05 [RateCDR] => 1 ) [2025-02-09 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:32:05' and `end` < '2025-02-09 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:32:18] Production.INFO: count ==511 [2025-02-09 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:32:05 - End Time 2025-02-09 04:32:05 [2025-02-09 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434630', 'tblTempUsageDetail_20' ) start [2025-02-09 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434630', 'tblTempUsageDetail_20' ) end [2025-02-09 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434630', 'tblTempVendorCDR_20' ) start [2025-02-09 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434630', 'tblTempVendorCDR_20' ) end [2025-02-09 04:32:18] Production.INFO: ProcessCDR(1,14434630,1,1,2) [2025-02-09 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434630', 'tblTempUsageDetail_20' ) start [2025-02-09 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434630', 'tblTempUsageDetail_20' ) end [2025-02-09 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:32:21] Production.INFO: ==18205== Releasing lock... [2025-02-09 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:33:05 [end_date_ymd] => 2025-02-09 04:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:33:05' and `end` < '2025-02-09 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-02-09 04:33:18] Production.INFO: count ==511 [2025-02-09 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:33:05 - End Time 2025-02-09 04:33:05 [2025-02-09 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434635', 'tblTempUsageDetail_20' ) start [2025-02-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434635', 'tblTempUsageDetail_20' ) end [2025-02-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434635', 'tblTempVendorCDR_20' ) start [2025-02-09 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434635', 'tblTempVendorCDR_20' ) end [2025-02-09 04:33:18] Production.INFO: ProcessCDR(1,14434635,1,1,2) [2025-02-09 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434635', 'tblTempUsageDetail_20' ) start [2025-02-09 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434635', 'tblTempUsageDetail_20' ) end [2025-02-09 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:33:21] Production.INFO: ==18278== Releasing lock... [2025-02-09 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:34:05 [end_date_ymd] => 2025-02-09 04:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:34:05' and `end` < '2025-02-09 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-02-09 04:34:18] Production.INFO: count ==511 [2025-02-09 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:34:05 - End Time 2025-02-09 04:34:05 [2025-02-09 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434640', 'tblTempUsageDetail_20' ) start [2025-02-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434640', 'tblTempUsageDetail_20' ) end [2025-02-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434640', 'tblTempVendorCDR_20' ) start [2025-02-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434640', 'tblTempVendorCDR_20' ) end [2025-02-09 04:34:18] Production.INFO: ProcessCDR(1,14434640,1,1,2) [2025-02-09 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434640', 'tblTempUsageDetail_20' ) start [2025-02-09 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434640', 'tblTempUsageDetail_20' ) end [2025-02-09 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:34:22] Production.INFO: ==18354== Releasing lock... [2025-02-09 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:35:05 [end_date_ymd] => 2025-02-09 04:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:35:05' and `end` < '2025-02-09 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-02-09 04:35:17] Production.INFO: count ==511 [2025-02-09 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:35:05 - End Time 2025-02-09 04:35:05 [2025-02-09 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434645', 'tblTempUsageDetail_20' ) start [2025-02-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434645', 'tblTempUsageDetail_20' ) end [2025-02-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434645', 'tblTempVendorCDR_20' ) start [2025-02-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434645', 'tblTempVendorCDR_20' ) end [2025-02-09 04:35:18] Production.INFO: ProcessCDR(1,14434645,1,1,2) [2025-02-09 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434645', 'tblTempUsageDetail_20' ) start [2025-02-09 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434645', 'tblTempUsageDetail_20' ) end [2025-02-09 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:35:21] Production.INFO: ==18425== Releasing lock... [2025-02-09 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:36:05 [end_date_ymd] => 2025-02-09 04:36:05 [RateCDR] => 1 ) [2025-02-09 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:36:05' and `end` < '2025-02-09 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:36:18] Production.INFO: count ==511 [2025-02-09 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:36:05 - End Time 2025-02-09 04:36:05 [2025-02-09 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434650', 'tblTempUsageDetail_20' ) start [2025-02-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434650', 'tblTempUsageDetail_20' ) end [2025-02-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434650', 'tblTempVendorCDR_20' ) start [2025-02-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434650', 'tblTempVendorCDR_20' ) end [2025-02-09 04:36:18] Production.INFO: ProcessCDR(1,14434650,1,1,2) [2025-02-09 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434650', 'tblTempUsageDetail_20' ) start [2025-02-09 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434650', 'tblTempUsageDetail_20' ) end [2025-02-09 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:36:21] Production.INFO: ==18498== Releasing lock... [2025-02-09 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:37:05 [end_date_ymd] => 2025-02-09 04:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:37:05' and `end` < '2025-02-09 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-02-09 04:37:18] Production.INFO: count ==511 [2025-02-09 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:37:05 - End Time 2025-02-09 04:37:05 [2025-02-09 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434655', 'tblTempUsageDetail_20' ) start [2025-02-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434655', 'tblTempUsageDetail_20' ) end [2025-02-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434655', 'tblTempVendorCDR_20' ) start [2025-02-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434655', 'tblTempVendorCDR_20' ) end [2025-02-09 04:37:18] Production.INFO: ProcessCDR(1,14434655,1,1,2) [2025-02-09 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434655', 'tblTempUsageDetail_20' ) start [2025-02-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434655', 'tblTempUsageDetail_20' ) end [2025-02-09 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:37:21] Production.INFO: ==18575== Releasing lock... [2025-02-09 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:38:06 [end_date_ymd] => 2025-02-09 04:38:06 [RateCDR] => 1 ) [2025-02-09 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:38:06' and `end` < '2025-02-09 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:38:19] Production.INFO: count ==511 [2025-02-09 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:38:06 - End Time 2025-02-09 04:38:06 [2025-02-09 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434660', 'tblTempUsageDetail_20' ) start [2025-02-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434660', 'tblTempUsageDetail_20' ) end [2025-02-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434660', 'tblTempVendorCDR_20' ) start [2025-02-09 04:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434660', 'tblTempVendorCDR_20' ) end [2025-02-09 04:38:20] Production.INFO: ProcessCDR(1,14434660,1,1,2) [2025-02-09 04:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434660', 'tblTempUsageDetail_20' ) start [2025-02-09 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434660', 'tblTempUsageDetail_20' ) end [2025-02-09 04:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:38:23] Production.INFO: ==18648== Releasing lock... [2025-02-09 04:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:38:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:39:05 [end_date_ymd] => 2025-02-09 04:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:39:05' and `end` < '2025-02-09 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-02-09 04:39:18] Production.INFO: count ==510 [2025-02-09 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:39:05 - End Time 2025-02-09 04:39:05 [2025-02-09 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434665', 'tblTempUsageDetail_20' ) start [2025-02-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434665', 'tblTempUsageDetail_20' ) end [2025-02-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434665', 'tblTempVendorCDR_20' ) start [2025-02-09 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434665', 'tblTempVendorCDR_20' ) end [2025-02-09 04:39:18] Production.INFO: ProcessCDR(1,14434665,1,1,2) [2025-02-09 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434665', 'tblTempUsageDetail_20' ) start [2025-02-09 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434665', 'tblTempUsageDetail_20' ) end [2025-02-09 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:39:21] Production.INFO: ==18728== Releasing lock... [2025-02-09 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:40:06 [end_date_ymd] => 2025-02-09 04:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:40:06' and `end` < '2025-02-09 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-02-09 04:40:19] Production.INFO: count ==503 [2025-02-09 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:40:06 - End Time 2025-02-09 04:40:06 [2025-02-09 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434671', 'tblTempUsageDetail_20' ) start [2025-02-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434671', 'tblTempUsageDetail_20' ) end [2025-02-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434671', 'tblTempVendorCDR_20' ) start [2025-02-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434671', 'tblTempVendorCDR_20' ) end [2025-02-09 04:40:19] Production.INFO: ProcessCDR(1,14434671,1,1,2) [2025-02-09 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434671', 'tblTempUsageDetail_20' ) start [2025-02-09 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434671', 'tblTempUsageDetail_20' ) end [2025-02-09 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:40:22] Production.INFO: ==18827== Releasing lock... [2025-02-09 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:40:22] Production.INFO: 31 MB #Memory Used# [2025-02-09 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:41:05 [end_date_ymd] => 2025-02-09 04:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:41:05' and `end` < '2025-02-09 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-02-09 04:41:18] Production.INFO: count ==449 [2025-02-09 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:41:05 - End Time 2025-02-09 04:41:05 [2025-02-09 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434676', 'tblTempUsageDetail_20' ) start [2025-02-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434676', 'tblTempUsageDetail_20' ) end [2025-02-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434676', 'tblTempVendorCDR_20' ) start [2025-02-09 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434676', 'tblTempVendorCDR_20' ) end [2025-02-09 04:41:18] Production.INFO: ProcessCDR(1,14434676,1,1,2) [2025-02-09 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434676', 'tblTempUsageDetail_20' ) start [2025-02-09 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434676', 'tblTempUsageDetail_20' ) end [2025-02-09 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:41:21] Production.INFO: ==18906== Releasing lock... [2025-02-09 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:42:05 [end_date_ymd] => 2025-02-09 04:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:42:05' and `end` < '2025-02-09 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-02-09 04:42:18] Production.INFO: count ==449 [2025-02-09 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:42:05 - End Time 2025-02-09 04:42:05 [2025-02-09 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434681', 'tblTempUsageDetail_20' ) start [2025-02-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434681', 'tblTempUsageDetail_20' ) end [2025-02-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434681', 'tblTempVendorCDR_20' ) start [2025-02-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434681', 'tblTempVendorCDR_20' ) end [2025-02-09 04:42:18] Production.INFO: ProcessCDR(1,14434681,1,1,2) [2025-02-09 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434681', 'tblTempUsageDetail_20' ) start [2025-02-09 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434681', 'tblTempUsageDetail_20' ) end [2025-02-09 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:42:21] Production.INFO: ==18983== Releasing lock... [2025-02-09 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:43:04 [end_date_ymd] => 2025-02-09 04:43:04 [RateCDR] => 1 ) [2025-02-09 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:43:04' and `end` < '2025-02-09 04:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:43:18] Production.INFO: count ==449 [2025-02-09 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:43:04 - End Time 2025-02-09 04:43:04 [2025-02-09 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434686', 'tblTempUsageDetail_20' ) start [2025-02-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434686', 'tblTempUsageDetail_20' ) end [2025-02-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434686', 'tblTempVendorCDR_20' ) start [2025-02-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434686', 'tblTempVendorCDR_20' ) end [2025-02-09 04:43:18] Production.INFO: ProcessCDR(1,14434686,1,1,2) [2025-02-09 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434686', 'tblTempUsageDetail_20' ) start [2025-02-09 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434686', 'tblTempUsageDetail_20' ) end [2025-02-09 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:43:21] Production.INFO: ==19063== Releasing lock... [2025-02-09 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:44:05 [end_date_ymd] => 2025-02-09 04:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:44:05' and `end` < '2025-02-09 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-02-09 04:44:18] Production.INFO: count ==447 [2025-02-09 04:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:44:05 - End Time 2025-02-09 04:44:05 [2025-02-09 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434691', 'tblTempUsageDetail_20' ) start [2025-02-09 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434691', 'tblTempUsageDetail_20' ) end [2025-02-09 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434691', 'tblTempVendorCDR_20' ) start [2025-02-09 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434691', 'tblTempVendorCDR_20' ) end [2025-02-09 04:44:19] Production.INFO: ProcessCDR(1,14434691,1,1,2) [2025-02-09 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434691', 'tblTempUsageDetail_20' ) start [2025-02-09 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434691', 'tblTempUsageDetail_20' ) end [2025-02-09 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:44:22] Production.INFO: ==19145== Releasing lock... [2025-02-09 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:45:05 [end_date_ymd] => 2025-02-09 04:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:45:05' and `end` < '2025-02-09 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-02-09 04:45:18] Production.INFO: count ==447 [2025-02-09 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:45:05 - End Time 2025-02-09 04:45:05 [2025-02-09 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434696', 'tblTempUsageDetail_20' ) start [2025-02-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434696', 'tblTempUsageDetail_20' ) end [2025-02-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434696', 'tblTempVendorCDR_20' ) start [2025-02-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434696', 'tblTempVendorCDR_20' ) end [2025-02-09 04:45:18] Production.INFO: ProcessCDR(1,14434696,1,1,2) [2025-02-09 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434696', 'tblTempUsageDetail_20' ) start [2025-02-09 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434696', 'tblTempUsageDetail_20' ) end [2025-02-09 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:45:21] Production.INFO: ==19262== Releasing lock... [2025-02-09 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:46:05 [end_date_ymd] => 2025-02-09 04:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:46:05' and `end` < '2025-02-09 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-02-09 04:46:23] Production.INFO: count ==447 [2025-02-09 04:46:23] Production.ERROR: pbx CDR StartTime 2025-02-09 01:46:05 - End Time 2025-02-09 04:46:05 [2025-02-09 04:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434701', 'tblTempUsageDetail_20' ) start [2025-02-09 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434701', 'tblTempUsageDetail_20' ) end [2025-02-09 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434701', 'tblTempVendorCDR_20' ) start [2025-02-09 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434701', 'tblTempVendorCDR_20' ) end [2025-02-09 04:46:23] Production.INFO: ProcessCDR(1,14434701,1,1,2) [2025-02-09 04:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434701', 'tblTempUsageDetail_20' ) start [2025-02-09 04:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434701', 'tblTempUsageDetail_20' ) end [2025-02-09 04:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:46:26] Production.INFO: ==19340== Releasing lock... [2025-02-09 04:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:46:26] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:47:05 [end_date_ymd] => 2025-02-09 04:47:05 [RateCDR] => 1 ) [2025-02-09 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:47:05' and `end` < '2025-02-09 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:47:20] Production.INFO: count ==446 [2025-02-09 04:47:20] Production.ERROR: pbx CDR StartTime 2025-02-09 01:47:05 - End Time 2025-02-09 04:47:05 [2025-02-09 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434706', 'tblTempUsageDetail_20' ) start [2025-02-09 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434706', 'tblTempUsageDetail_20' ) end [2025-02-09 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434706', 'tblTempVendorCDR_20' ) start [2025-02-09 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434706', 'tblTempVendorCDR_20' ) end [2025-02-09 04:47:20] Production.INFO: ProcessCDR(1,14434706,1,1,2) [2025-02-09 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434706', 'tblTempUsageDetail_20' ) start [2025-02-09 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434706', 'tblTempUsageDetail_20' ) end [2025-02-09 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:47:24] Production.INFO: ==19417== Releasing lock... [2025-02-09 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:47:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:48:04 [end_date_ymd] => 2025-02-09 04:48:04 [RateCDR] => 1 ) [2025-02-09 04:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:48:04' and `end` < '2025-02-09 04:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:48:18] Production.INFO: count ==446 [2025-02-09 04:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:48:04 - End Time 2025-02-09 04:48:04 [2025-02-09 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434711', 'tblTempUsageDetail_20' ) start [2025-02-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434711', 'tblTempUsageDetail_20' ) end [2025-02-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434711', 'tblTempVendorCDR_20' ) start [2025-02-09 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434711', 'tblTempVendorCDR_20' ) end [2025-02-09 04:48:19] Production.INFO: ProcessCDR(1,14434711,1,1,2) [2025-02-09 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434711', 'tblTempUsageDetail_20' ) start [2025-02-09 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434711', 'tblTempUsageDetail_20' ) end [2025-02-09 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:48:22] Production.INFO: ==19493== Releasing lock... [2025-02-09 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:49:05 [end_date_ymd] => 2025-02-09 04:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:49:05' and `end` < '2025-02-09 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-02-09 04:49:20] Production.INFO: count ==446 [2025-02-09 04:49:20] Production.ERROR: pbx CDR StartTime 2025-02-09 01:49:05 - End Time 2025-02-09 04:49:05 [2025-02-09 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434716', 'tblTempUsageDetail_20' ) start [2025-02-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434716', 'tblTempUsageDetail_20' ) end [2025-02-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434716', 'tblTempVendorCDR_20' ) start [2025-02-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434716', 'tblTempVendorCDR_20' ) end [2025-02-09 04:49:20] Production.INFO: ProcessCDR(1,14434716,1,1,2) [2025-02-09 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434716', 'tblTempUsageDetail_20' ) start [2025-02-09 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434716', 'tblTempUsageDetail_20' ) end [2025-02-09 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:49:24] Production.INFO: ==19572== Releasing lock... [2025-02-09 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:49:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:50:05 [end_date_ymd] => 2025-02-09 04:50:05 [RateCDR] => 1 ) [2025-02-09 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:50:05' and `end` < '2025-02-09 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:50:19] Production.INFO: count ==434 [2025-02-09 04:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:50:05 - End Time 2025-02-09 04:50:05 [2025-02-09 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434722', 'tblTempUsageDetail_20' ) start [2025-02-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434722', 'tblTempUsageDetail_20' ) end [2025-02-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434722', 'tblTempVendorCDR_20' ) start [2025-02-09 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434722', 'tblTempVendorCDR_20' ) end [2025-02-09 04:50:19] Production.INFO: ProcessCDR(1,14434722,1,1,2) [2025-02-09 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434722', 'tblTempUsageDetail_20' ) start [2025-02-09 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434722', 'tblTempUsageDetail_20' ) end [2025-02-09 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:50:23] Production.INFO: ==19653== Releasing lock... [2025-02-09 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-09 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:51:05 [end_date_ymd] => 2025-02-09 04:51:05 [RateCDR] => 1 ) [2025-02-09 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:51:05' and `end` < '2025-02-09 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:51:20] Production.INFO: count ==395 [2025-02-09 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-09 01:51:05 - End Time 2025-02-09 04:51:05 [2025-02-09 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434727', 'tblTempUsageDetail_20' ) start [2025-02-09 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434727', 'tblTempUsageDetail_20' ) end [2025-02-09 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434727', 'tblTempVendorCDR_20' ) start [2025-02-09 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434727', 'tblTempVendorCDR_20' ) end [2025-02-09 04:51:20] Production.INFO: ProcessCDR(1,14434727,1,1,2) [2025-02-09 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434727', 'tblTempUsageDetail_20' ) start [2025-02-09 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434727', 'tblTempUsageDetail_20' ) end [2025-02-09 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:51:24] Production.INFO: ==19738== Releasing lock... [2025-02-09 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:51:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:52:05 [end_date_ymd] => 2025-02-09 04:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:52:05' and `end` < '2025-02-09 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-02-09 04:52:20] Production.INFO: count ==395 [2025-02-09 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-09 01:52:05 - End Time 2025-02-09 04:52:05 [2025-02-09 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434732', 'tblTempUsageDetail_20' ) start [2025-02-09 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434732', 'tblTempUsageDetail_20' ) end [2025-02-09 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434732', 'tblTempVendorCDR_20' ) start [2025-02-09 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434732', 'tblTempVendorCDR_20' ) end [2025-02-09 04:52:20] Production.INFO: ProcessCDR(1,14434732,1,1,2) [2025-02-09 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434732', 'tblTempUsageDetail_20' ) start [2025-02-09 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434732', 'tblTempUsageDetail_20' ) end [2025-02-09 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:52:23] Production.INFO: ==19815== Releasing lock... [2025-02-09 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:52:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:53:05 [end_date_ymd] => 2025-02-09 04:53:05 [RateCDR] => 1 ) [2025-02-09 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:53:05' and `end` < '2025-02-09 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:53:19] Production.INFO: count ==394 [2025-02-09 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:53:05 - End Time 2025-02-09 04:53:05 [2025-02-09 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434737', 'tblTempUsageDetail_20' ) start [2025-02-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434737', 'tblTempUsageDetail_20' ) end [2025-02-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434737', 'tblTempVendorCDR_20' ) start [2025-02-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434737', 'tblTempVendorCDR_20' ) end [2025-02-09 04:53:19] Production.INFO: ProcessCDR(1,14434737,1,1,2) [2025-02-09 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434737', 'tblTempUsageDetail_20' ) start [2025-02-09 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434737', 'tblTempUsageDetail_20' ) end [2025-02-09 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:53:22] Production.INFO: ==19889== Releasing lock... [2025-02-09 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:54:05 [end_date_ymd] => 2025-02-09 04:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:54:05' and `end` < '2025-02-09 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-02-09 04:54:19] Production.INFO: count ==394 [2025-02-09 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:54:05 - End Time 2025-02-09 04:54:05 [2025-02-09 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434742', 'tblTempUsageDetail_20' ) start [2025-02-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434742', 'tblTempUsageDetail_20' ) end [2025-02-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434742', 'tblTempVendorCDR_20' ) start [2025-02-09 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434742', 'tblTempVendorCDR_20' ) end [2025-02-09 04:54:19] Production.INFO: ProcessCDR(1,14434742,1,1,2) [2025-02-09 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434742', 'tblTempUsageDetail_20' ) start [2025-02-09 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434742', 'tblTempUsageDetail_20' ) end [2025-02-09 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:54:22] Production.INFO: ==19964== Releasing lock... [2025-02-09 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:55:05 [end_date_ymd] => 2025-02-09 04:55:05 [RateCDR] => 1 ) [2025-02-09 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 01:55:05' and `end` < '2025-02-09 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 04:55:18] Production.INFO: count ==394 [2025-02-09 04:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:55:05 - End Time 2025-02-09 04:55:05 [2025-02-09 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434747', 'tblTempUsageDetail_20' ) start [2025-02-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434747', 'tblTempUsageDetail_20' ) end [2025-02-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434747', 'tblTempVendorCDR_20' ) start [2025-02-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434747', 'tblTempVendorCDR_20' ) end [2025-02-09 04:55:18] Production.INFO: ProcessCDR(1,14434747,1,1,2) [2025-02-09 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434747', 'tblTempUsageDetail_20' ) start [2025-02-09 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434747', 'tblTempUsageDetail_20' ) end [2025-02-09 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:55:22] Production.INFO: ==20044== Releasing lock... [2025-02-09 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:56:05 [end_date_ymd] => 2025-02-09 04:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:56:05' and `end` < '2025-02-09 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-02-09 04:56:20] Production.INFO: count ==394 [2025-02-09 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-09 01:56:05 - End Time 2025-02-09 04:56:05 [2025-02-09 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434752', 'tblTempUsageDetail_20' ) start [2025-02-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434752', 'tblTempUsageDetail_20' ) end [2025-02-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434752', 'tblTempVendorCDR_20' ) start [2025-02-09 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434752', 'tblTempVendorCDR_20' ) end [2025-02-09 04:56:20] Production.INFO: ProcessCDR(1,14434752,1,1,2) [2025-02-09 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434752', 'tblTempUsageDetail_20' ) start [2025-02-09 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434752', 'tblTempUsageDetail_20' ) end [2025-02-09 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:56:23] Production.INFO: ==20125== Releasing lock... [2025-02-09 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:57:05 [end_date_ymd] => 2025-02-09 04:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:57:05' and `end` < '2025-02-09 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-02-09 04:57:18] Production.INFO: count ==391 [2025-02-09 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 01:57:05 - End Time 2025-02-09 04:57:05 [2025-02-09 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434757', 'tblTempUsageDetail_20' ) start [2025-02-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434757', 'tblTempUsageDetail_20' ) end [2025-02-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434757', 'tblTempVendorCDR_20' ) start [2025-02-09 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434757', 'tblTempVendorCDR_20' ) end [2025-02-09 04:57:18] Production.INFO: ProcessCDR(1,14434757,1,1,2) [2025-02-09 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434757', 'tblTempUsageDetail_20' ) start [2025-02-09 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434757', 'tblTempUsageDetail_20' ) end [2025-02-09 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:57:21] Production.INFO: ==20199== Releasing lock... [2025-02-09 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:58:05 [end_date_ymd] => 2025-02-09 04:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:58:05' and `end` < '2025-02-09 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-02-09 04:58:20] Production.INFO: count ==390 [2025-02-09 04:58:20] Production.ERROR: pbx CDR StartTime 2025-02-09 01:58:05 - End Time 2025-02-09 04:58:05 [2025-02-09 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434762', 'tblTempUsageDetail_20' ) start [2025-02-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434762', 'tblTempUsageDetail_20' ) end [2025-02-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434762', 'tblTempVendorCDR_20' ) start [2025-02-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434762', 'tblTempVendorCDR_20' ) end [2025-02-09 04:58:20] Production.INFO: ProcessCDR(1,14434762,1,1,2) [2025-02-09 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434762', 'tblTempUsageDetail_20' ) start [2025-02-09 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434762', 'tblTempUsageDetail_20' ) end [2025-02-09 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:58:23] Production.INFO: ==20276== Releasing lock... [2025-02-09 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:58:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 01:59:05 [end_date_ymd] => 2025-02-09 04:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 01:59:05' and `end` < '2025-02-09 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-02-09 04:59:19] Production.INFO: count ==389 [2025-02-09 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 01:59:05 - End Time 2025-02-09 04:59:05 [2025-02-09 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434767', 'tblTempUsageDetail_20' ) start [2025-02-09 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434767', 'tblTempUsageDetail_20' ) end [2025-02-09 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434767', 'tblTempVendorCDR_20' ) start [2025-02-09 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434767', 'tblTempVendorCDR_20' ) end [2025-02-09 04:59:19] Production.INFO: ProcessCDR(1,14434767,1,1,2) [2025-02-09 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434767', 'tblTempUsageDetail_20' ) start [2025-02-09 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434767', 'tblTempUsageDetail_20' ) end [2025-02-09 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 04:59:22] Production.INFO: ==20348== Releasing lock... [2025-02-09 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 04:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:00:06 [end_date_ymd] => 2025-02-09 05:00:06 [RateCDR] => 1 ) [2025-02-09 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:00:06' and `end` < '2025-02-09 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:00:21] Production.INFO: count ==380 [2025-02-09 05:00:21] Production.ERROR: pbx CDR StartTime 2025-02-09 02:00:06 - End Time 2025-02-09 05:00:06 [2025-02-09 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434773', 'tblTempUsageDetail_20' ) start [2025-02-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434773', 'tblTempUsageDetail_20' ) end [2025-02-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434773', 'tblTempVendorCDR_20' ) start [2025-02-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434773', 'tblTempVendorCDR_20' ) end [2025-02-09 05:00:21] Production.INFO: ProcessCDR(1,14434773,1,1,2) [2025-02-09 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434773', 'tblTempUsageDetail_20' ) start [2025-02-09 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434773', 'tblTempUsageDetail_20' ) end [2025-02-09 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:00:24] Production.INFO: ==20472== Releasing lock... [2025-02-09 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:00:24] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:01:05 [end_date_ymd] => 2025-02-09 05:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:01:05' and `end` < '2025-02-09 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-02-09 05:01:20] Production.INFO: count ==364 [2025-02-09 05:01:20] Production.ERROR: pbx CDR StartTime 2025-02-09 02:01:05 - End Time 2025-02-09 05:01:05 [2025-02-09 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434778', 'tblTempUsageDetail_20' ) start [2025-02-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434778', 'tblTempUsageDetail_20' ) end [2025-02-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434778', 'tblTempVendorCDR_20' ) start [2025-02-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434778', 'tblTempVendorCDR_20' ) end [2025-02-09 05:01:20] Production.INFO: ProcessCDR(1,14434778,1,1,2) [2025-02-09 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434778', 'tblTempUsageDetail_20' ) start [2025-02-09 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434778', 'tblTempUsageDetail_20' ) end [2025-02-09 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:01:23] Production.INFO: ==20564== Releasing lock... [2025-02-09 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:01:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:02:06 [end_date_ymd] => 2025-02-09 05:02:06 [RateCDR] => 1 ) [2025-02-09 05: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-02-09 02:02:06' and `end` < '2025-02-09 05: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-02-09 05:02:20] Production.INFO: count ==364 [2025-02-09 05:02:20] Production.ERROR: pbx CDR StartTime 2025-02-09 02:02:06 - End Time 2025-02-09 05:02:06 [2025-02-09 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434783', 'tblTempUsageDetail_20' ) start [2025-02-09 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434783', 'tblTempUsageDetail_20' ) end [2025-02-09 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434783', 'tblTempVendorCDR_20' ) start [2025-02-09 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434783', 'tblTempVendorCDR_20' ) end [2025-02-09 05:02:20] Production.INFO: ProcessCDR(1,14434783,1,1,2) [2025-02-09 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434783', 'tblTempUsageDetail_20' ) start [2025-02-09 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434783', 'tblTempUsageDetail_20' ) end [2025-02-09 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:02:23] Production.INFO: ==20647== Releasing lock... [2025-02-09 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:02:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:03:05 [end_date_ymd] => 2025-02-09 05:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:03:05' and `end` < '2025-02-09 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-02-09 05:03:18] Production.INFO: count ==364 [2025-02-09 05:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:03:05 - End Time 2025-02-09 05:03:05 [2025-02-09 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434788', 'tblTempUsageDetail_20' ) start [2025-02-09 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434788', 'tblTempUsageDetail_20' ) end [2025-02-09 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434788', 'tblTempVendorCDR_20' ) start [2025-02-09 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434788', 'tblTempVendorCDR_20' ) end [2025-02-09 05:03:18] Production.INFO: ProcessCDR(1,14434788,1,1,2) [2025-02-09 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434788', 'tblTempUsageDetail_20' ) start [2025-02-09 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434788', 'tblTempUsageDetail_20' ) end [2025-02-09 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:03:21] Production.INFO: ==20755== Releasing lock... [2025-02-09 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:04:06 [end_date_ymd] => 2025-02-09 05:04:06 [RateCDR] => 1 ) [2025-02-09 05: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-02-09 02:04:06' and `end` < '2025-02-09 05: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-02-09 05:04:18] Production.INFO: count ==364 [2025-02-09 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:04:06 - End Time 2025-02-09 05:04:06 [2025-02-09 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434793', 'tblTempUsageDetail_20' ) start [2025-02-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434793', 'tblTempUsageDetail_20' ) end [2025-02-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434793', 'tblTempVendorCDR_20' ) start [2025-02-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434793', 'tblTempVendorCDR_20' ) end [2025-02-09 05:04:18] Production.INFO: ProcessCDR(1,14434793,1,1,2) [2025-02-09 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434793', 'tblTempUsageDetail_20' ) start [2025-02-09 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434793', 'tblTempUsageDetail_20' ) end [2025-02-09 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:04:22] Production.INFO: ==20857== Releasing lock... [2025-02-09 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:05:05 [end_date_ymd] => 2025-02-09 05:05:05 [RateCDR] => 1 ) [2025-02-09 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:05:05' and `end` < '2025-02-09 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:05:17] Production.INFO: count ==365 [2025-02-09 05:05:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:05:05 - End Time 2025-02-09 05:05:05 [2025-02-09 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434798', 'tblTempUsageDetail_20' ) start [2025-02-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434798', 'tblTempUsageDetail_20' ) end [2025-02-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434798', 'tblTempVendorCDR_20' ) start [2025-02-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434798', 'tblTempVendorCDR_20' ) end [2025-02-09 05:05:17] Production.INFO: ProcessCDR(1,14434798,1,1,2) [2025-02-09 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434798', 'tblTempUsageDetail_20' ) start [2025-02-09 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434798', 'tblTempUsageDetail_20' ) end [2025-02-09 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:05:22] Production.INFO: ==20955== Releasing lock... [2025-02-09 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:06:05 [end_date_ymd] => 2025-02-09 05:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:06:05' and `end` < '2025-02-09 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-02-09 05:06:19] Production.INFO: count ==365 [2025-02-09 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:06:05 - End Time 2025-02-09 05:06:05 [2025-02-09 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434803', 'tblTempUsageDetail_20' ) start [2025-02-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434803', 'tblTempUsageDetail_20' ) end [2025-02-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434803', 'tblTempVendorCDR_20' ) start [2025-02-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434803', 'tblTempVendorCDR_20' ) end [2025-02-09 05:06:19] Production.INFO: ProcessCDR(1,14434803,1,1,2) [2025-02-09 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434803', 'tblTempUsageDetail_20' ) start [2025-02-09 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434803', 'tblTempUsageDetail_20' ) end [2025-02-09 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:06:22] Production.INFO: ==21032== Releasing lock... [2025-02-09 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:07:04 [end_date_ymd] => 2025-02-09 05:07:04 [RateCDR] => 1 ) [2025-02-09 05: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-02-09 02:07:04' and `end` < '2025-02-09 05: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-02-09 05:07:17] Production.INFO: count ==365 [2025-02-09 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:07:04 - End Time 2025-02-09 05:07:04 [2025-02-09 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434808', 'tblTempUsageDetail_20' ) start [2025-02-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434808', 'tblTempUsageDetail_20' ) end [2025-02-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434808', 'tblTempVendorCDR_20' ) start [2025-02-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434808', 'tblTempVendorCDR_20' ) end [2025-02-09 05:07:17] Production.INFO: ProcessCDR(1,14434808,1,1,2) [2025-02-09 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434808', 'tblTempUsageDetail_20' ) start [2025-02-09 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434808', 'tblTempUsageDetail_20' ) end [2025-02-09 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:07:20] Production.INFO: ==21110== Releasing lock... [2025-02-09 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:08:05 [end_date_ymd] => 2025-02-09 05:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:08:05' and `end` < '2025-02-09 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-02-09 05:08:18] Production.INFO: count ==367 [2025-02-09 05:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:08:05 - End Time 2025-02-09 05:08:05 [2025-02-09 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434813', 'tblTempUsageDetail_20' ) start [2025-02-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434813', 'tblTempUsageDetail_20' ) end [2025-02-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434813', 'tblTempVendorCDR_20' ) start [2025-02-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434813', 'tblTempVendorCDR_20' ) end [2025-02-09 05:08:18] Production.INFO: ProcessCDR(1,14434813,1,1,2) [2025-02-09 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434813', 'tblTempUsageDetail_20' ) start [2025-02-09 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434813', 'tblTempUsageDetail_20' ) end [2025-02-09 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:08:21] Production.INFO: ==21190== Releasing lock... [2025-02-09 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:09:06 [end_date_ymd] => 2025-02-09 05:09:06 [RateCDR] => 1 ) [2025-02-09 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:09:06' and `end` < '2025-02-09 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:09:19] Production.INFO: count ==367 [2025-02-09 05:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:09:06 - End Time 2025-02-09 05:09:06 [2025-02-09 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434818', 'tblTempUsageDetail_20' ) start [2025-02-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434818', 'tblTempUsageDetail_20' ) end [2025-02-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434818', 'tblTempVendorCDR_20' ) start [2025-02-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434818', 'tblTempVendorCDR_20' ) end [2025-02-09 05:09:19] Production.INFO: ProcessCDR(1,14434818,1,1,2) [2025-02-09 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434818', 'tblTempUsageDetail_20' ) start [2025-02-09 05:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434818', 'tblTempUsageDetail_20' ) end [2025-02-09 05:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:09:23] Production.INFO: ==21269== Releasing lock... [2025-02-09 05:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:09:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:10:06 [end_date_ymd] => 2025-02-09 05:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:10:06' and `end` < '2025-02-09 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-02-09 05:10:19] Production.INFO: count ==363 [2025-02-09 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:10:06 - End Time 2025-02-09 05:10:06 [2025-02-09 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434824', 'tblTempUsageDetail_20' ) start [2025-02-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434824', 'tblTempUsageDetail_20' ) end [2025-02-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434824', 'tblTempVendorCDR_20' ) start [2025-02-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434824', 'tblTempVendorCDR_20' ) end [2025-02-09 05:10:19] Production.INFO: ProcessCDR(1,14434824,1,1,2) [2025-02-09 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434824', 'tblTempUsageDetail_20' ) start [2025-02-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434824', 'tblTempUsageDetail_20' ) end [2025-02-09 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:10:22] Production.INFO: ==21344== Releasing lock... [2025-02-09 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:11:05 [end_date_ymd] => 2025-02-09 05:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:11:05' and `end` < '2025-02-09 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-02-09 05:11:18] Production.INFO: count ==347 [2025-02-09 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:11:05 - End Time 2025-02-09 05:11:05 [2025-02-09 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434829', 'tblTempUsageDetail_20' ) start [2025-02-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434829', 'tblTempUsageDetail_20' ) end [2025-02-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434829', 'tblTempVendorCDR_20' ) start [2025-02-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434829', 'tblTempVendorCDR_20' ) end [2025-02-09 05:11:18] Production.INFO: ProcessCDR(1,14434829,1,1,2) [2025-02-09 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434829', 'tblTempUsageDetail_20' ) start [2025-02-09 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434829', 'tblTempUsageDetail_20' ) end [2025-02-09 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:11:21] Production.INFO: ==21431== Releasing lock... [2025-02-09 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:11:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:12:05 [end_date_ymd] => 2025-02-09 05:12:05 [RateCDR] => 1 ) [2025-02-09 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:12:05' and `end` < '2025-02-09 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:12:17] Production.INFO: count ==347 [2025-02-09 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:12:05 - End Time 2025-02-09 05:12:05 [2025-02-09 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434834', 'tblTempUsageDetail_20' ) start [2025-02-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434834', 'tblTempUsageDetail_20' ) end [2025-02-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434834', 'tblTempVendorCDR_20' ) start [2025-02-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434834', 'tblTempVendorCDR_20' ) end [2025-02-09 05:12:18] Production.INFO: ProcessCDR(1,14434834,1,1,2) [2025-02-09 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434834', 'tblTempUsageDetail_20' ) start [2025-02-09 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434834', 'tblTempUsageDetail_20' ) end [2025-02-09 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:12:21] Production.INFO: ==21508== Releasing lock... [2025-02-09 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:12:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:13:05 [end_date_ymd] => 2025-02-09 05:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:13:05' and `end` < '2025-02-09 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-02-09 05:13:18] Production.INFO: count ==345 [2025-02-09 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:13:05 - End Time 2025-02-09 05:13:05 [2025-02-09 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434839', 'tblTempUsageDetail_20' ) start [2025-02-09 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434839', 'tblTempUsageDetail_20' ) end [2025-02-09 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434839', 'tblTempVendorCDR_20' ) start [2025-02-09 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434839', 'tblTempVendorCDR_20' ) end [2025-02-09 05:13:18] Production.INFO: ProcessCDR(1,14434839,1,1,2) [2025-02-09 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434839', 'tblTempUsageDetail_20' ) start [2025-02-09 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434839', 'tblTempUsageDetail_20' ) end [2025-02-09 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:13:21] Production.INFO: ==21587== Releasing lock... [2025-02-09 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:13:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:14:05 [end_date_ymd] => 2025-02-09 05:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:14:05' and `end` < '2025-02-09 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-02-09 05:14:18] Production.INFO: count ==344 [2025-02-09 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:14:05 - End Time 2025-02-09 05:14:05 [2025-02-09 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434844', 'tblTempUsageDetail_20' ) start [2025-02-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434844', 'tblTempUsageDetail_20' ) end [2025-02-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434844', 'tblTempVendorCDR_20' ) start [2025-02-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434844', 'tblTempVendorCDR_20' ) end [2025-02-09 05:14:18] Production.INFO: ProcessCDR(1,14434844,1,1,2) [2025-02-09 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434844', 'tblTempUsageDetail_20' ) start [2025-02-09 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434844', 'tblTempUsageDetail_20' ) end [2025-02-09 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:14:21] Production.INFO: ==21661== Releasing lock... [2025-02-09 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:14:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:15:05 [end_date_ymd] => 2025-02-09 05:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:15:05' and `end` < '2025-02-09 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-02-09 05:15:18] Production.INFO: count ==344 [2025-02-09 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:15:05 - End Time 2025-02-09 05:15:05 [2025-02-09 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434849', 'tblTempUsageDetail_20' ) start [2025-02-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434849', 'tblTempUsageDetail_20' ) end [2025-02-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434849', 'tblTempVendorCDR_20' ) start [2025-02-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434849', 'tblTempVendorCDR_20' ) end [2025-02-09 05:15:18] Production.INFO: ProcessCDR(1,14434849,1,1,2) [2025-02-09 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434849', 'tblTempUsageDetail_20' ) start [2025-02-09 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434849', 'tblTempUsageDetail_20' ) end [2025-02-09 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:15:21] Production.INFO: ==21773== Releasing lock... [2025-02-09 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:16:04 [end_date_ymd] => 2025-02-09 05:16:04 [RateCDR] => 1 ) [2025-02-09 05:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:16:04' and `end` < '2025-02-09 05:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:16:18] Production.INFO: count ==340 [2025-02-09 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:16:04 - End Time 2025-02-09 05:16:04 [2025-02-09 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434854', 'tblTempUsageDetail_20' ) start [2025-02-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434854', 'tblTempUsageDetail_20' ) end [2025-02-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434854', 'tblTempVendorCDR_20' ) start [2025-02-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434854', 'tblTempVendorCDR_20' ) end [2025-02-09 05:16:18] Production.INFO: ProcessCDR(1,14434854,1,1,2) [2025-02-09 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434854', 'tblTempUsageDetail_20' ) start [2025-02-09 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434854', 'tblTempUsageDetail_20' ) end [2025-02-09 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:16:21] Production.INFO: ==21845== Releasing lock... [2025-02-09 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:16:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:17:05 [end_date_ymd] => 2025-02-09 05:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:17:05' and `end` < '2025-02-09 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-02-09 05:17:18] Production.INFO: count ==340 [2025-02-09 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:17:05 - End Time 2025-02-09 05:17:05 [2025-02-09 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434859', 'tblTempUsageDetail_20' ) start [2025-02-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434859', 'tblTempUsageDetail_20' ) end [2025-02-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434859', 'tblTempVendorCDR_20' ) start [2025-02-09 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434859', 'tblTempVendorCDR_20' ) end [2025-02-09 05:17:18] Production.INFO: ProcessCDR(1,14434859,1,1,2) [2025-02-09 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434859', 'tblTempUsageDetail_20' ) start [2025-02-09 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434859', 'tblTempUsageDetail_20' ) end [2025-02-09 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:17:21] Production.INFO: ==21917== Releasing lock... [2025-02-09 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:17:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:18:05 [end_date_ymd] => 2025-02-09 05:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:18:05' and `end` < '2025-02-09 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-02-09 05:18:18] Production.INFO: count ==338 [2025-02-09 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:18:05 - End Time 2025-02-09 05:18:05 [2025-02-09 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434864', 'tblTempUsageDetail_20' ) start [2025-02-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434864', 'tblTempUsageDetail_20' ) end [2025-02-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434864', 'tblTempVendorCDR_20' ) start [2025-02-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434864', 'tblTempVendorCDR_20' ) end [2025-02-09 05:18:18] Production.INFO: ProcessCDR(1,14434864,1,1,2) [2025-02-09 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434864', 'tblTempUsageDetail_20' ) start [2025-02-09 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434864', 'tblTempUsageDetail_20' ) end [2025-02-09 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:18:21] Production.INFO: ==21991== Releasing lock... [2025-02-09 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:18:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:19:05 [end_date_ymd] => 2025-02-09 05:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:19:05' and `end` < '2025-02-09 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-02-09 05:19:18] Production.INFO: count ==334 [2025-02-09 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:19:05 - End Time 2025-02-09 05:19:05 [2025-02-09 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434869', 'tblTempUsageDetail_20' ) start [2025-02-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434869', 'tblTempUsageDetail_20' ) end [2025-02-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434869', 'tblTempVendorCDR_20' ) start [2025-02-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434869', 'tblTempVendorCDR_20' ) end [2025-02-09 05:19:18] Production.INFO: ProcessCDR(1,14434869,1,1,2) [2025-02-09 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434869', 'tblTempUsageDetail_20' ) start [2025-02-09 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434869', 'tblTempUsageDetail_20' ) end [2025-02-09 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:19:21] Production.INFO: ==22063== Releasing lock... [2025-02-09 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:20:06 [end_date_ymd] => 2025-02-09 05:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:20:06' and `end` < '2025-02-09 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-02-09 05:20:19] Production.INFO: count ==330 [2025-02-09 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:20:06 - End Time 2025-02-09 05:20:06 [2025-02-09 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434875', 'tblTempUsageDetail_20' ) start [2025-02-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434875', 'tblTempUsageDetail_20' ) end [2025-02-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434875', 'tblTempVendorCDR_20' ) start [2025-02-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434875', 'tblTempVendorCDR_20' ) end [2025-02-09 05:20:19] Production.INFO: ProcessCDR(1,14434875,1,1,2) [2025-02-09 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434875', 'tblTempUsageDetail_20' ) start [2025-02-09 05:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434875', 'tblTempUsageDetail_20' ) end [2025-02-09 05:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:20:24] Production.INFO: ==22139== Releasing lock... [2025-02-09 05:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:20:24] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:21:05 [end_date_ymd] => 2025-02-09 05:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:21:05' and `end` < '2025-02-09 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-02-09 05:21:18] Production.INFO: count ==310 [2025-02-09 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:21:05 - End Time 2025-02-09 05:21:05 [2025-02-09 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434880', 'tblTempUsageDetail_20' ) start [2025-02-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434880', 'tblTempUsageDetail_20' ) end [2025-02-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434880', 'tblTempVendorCDR_20' ) start [2025-02-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434880', 'tblTempVendorCDR_20' ) end [2025-02-09 05:21:18] Production.INFO: ProcessCDR(1,14434880,1,1,2) [2025-02-09 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434880', 'tblTempUsageDetail_20' ) start [2025-02-09 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434880', 'tblTempUsageDetail_20' ) end [2025-02-09 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:21:21] Production.INFO: ==22214== Releasing lock... [2025-02-09 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:22:05 [end_date_ymd] => 2025-02-09 05:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:22:05' and `end` < '2025-02-09 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-02-09 05:22:18] Production.INFO: count ==309 [2025-02-09 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:22:05 - End Time 2025-02-09 05:22:05 [2025-02-09 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434885', 'tblTempUsageDetail_20' ) start [2025-02-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434885', 'tblTempUsageDetail_20' ) end [2025-02-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434885', 'tblTempVendorCDR_20' ) start [2025-02-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434885', 'tblTempVendorCDR_20' ) end [2025-02-09 05:22:18] Production.INFO: ProcessCDR(1,14434885,1,1,2) [2025-02-09 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434885', 'tblTempUsageDetail_20' ) start [2025-02-09 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434885', 'tblTempUsageDetail_20' ) end [2025-02-09 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:22:22] Production.INFO: ==22287== Releasing lock... [2025-02-09 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:22:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:23:05 [end_date_ymd] => 2025-02-09 05:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:23:05' and `end` < '2025-02-09 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-02-09 05:23:17] Production.INFO: count ==309 [2025-02-09 05:23:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:23:05 - End Time 2025-02-09 05:23:05 [2025-02-09 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434890', 'tblTempUsageDetail_20' ) start [2025-02-09 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434890', 'tblTempUsageDetail_20' ) end [2025-02-09 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434890', 'tblTempVendorCDR_20' ) start [2025-02-09 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434890', 'tblTempVendorCDR_20' ) end [2025-02-09 05:23:17] Production.INFO: ProcessCDR(1,14434890,1,1,2) [2025-02-09 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434890', 'tblTempUsageDetail_20' ) start [2025-02-09 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434890', 'tblTempUsageDetail_20' ) end [2025-02-09 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:23:21] Production.INFO: ==22361== Releasing lock... [2025-02-09 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:24:05 [end_date_ymd] => 2025-02-09 05:24:05 [RateCDR] => 1 ) [2025-02-09 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:24:05' and `end` < '2025-02-09 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:24:19] Production.INFO: count ==309 [2025-02-09 05:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:24:05 - End Time 2025-02-09 05:24:05 [2025-02-09 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434895', 'tblTempUsageDetail_20' ) start [2025-02-09 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434895', 'tblTempUsageDetail_20' ) end [2025-02-09 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434895', 'tblTempVendorCDR_20' ) start [2025-02-09 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434895', 'tblTempVendorCDR_20' ) end [2025-02-09 05:24:19] Production.INFO: ProcessCDR(1,14434895,1,1,2) [2025-02-09 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434895', 'tblTempUsageDetail_20' ) start [2025-02-09 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434895', 'tblTempUsageDetail_20' ) end [2025-02-09 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:24:22] Production.INFO: ==22435== Releasing lock... [2025-02-09 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:25:05 [end_date_ymd] => 2025-02-09 05:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:25:05' and `end` < '2025-02-09 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-02-09 05:25:17] Production.INFO: count ==309 [2025-02-09 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:25:05 - End Time 2025-02-09 05:25:05 [2025-02-09 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434900', 'tblTempUsageDetail_20' ) start [2025-02-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434900', 'tblTempUsageDetail_20' ) end [2025-02-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434900', 'tblTempVendorCDR_20' ) start [2025-02-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434900', 'tblTempVendorCDR_20' ) end [2025-02-09 05:25:18] Production.INFO: ProcessCDR(1,14434900,1,1,2) [2025-02-09 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434900', 'tblTempUsageDetail_20' ) start [2025-02-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434900', 'tblTempUsageDetail_20' ) end [2025-02-09 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:25:21] Production.INFO: ==22510== Releasing lock... [2025-02-09 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:26:05 [end_date_ymd] => 2025-02-09 05:26:05 [RateCDR] => 1 ) [2025-02-09 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:26:05' and `end` < '2025-02-09 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:26:18] Production.INFO: count ==309 [2025-02-09 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:26:05 - End Time 2025-02-09 05:26:05 [2025-02-09 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434905', 'tblTempUsageDetail_20' ) start [2025-02-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434905', 'tblTempUsageDetail_20' ) end [2025-02-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434905', 'tblTempVendorCDR_20' ) start [2025-02-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434905', 'tblTempVendorCDR_20' ) end [2025-02-09 05:26:18] Production.INFO: ProcessCDR(1,14434905,1,1,2) [2025-02-09 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434905', 'tblTempUsageDetail_20' ) start [2025-02-09 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434905', 'tblTempUsageDetail_20' ) end [2025-02-09 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:26:21] Production.INFO: ==22586== Releasing lock... [2025-02-09 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:27:04 [end_date_ymd] => 2025-02-09 05:27:04 [RateCDR] => 1 ) [2025-02-09 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:27:04' and `end` < '2025-02-09 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:27:17] Production.INFO: count ==308 [2025-02-09 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:27:04 - End Time 2025-02-09 05:27:04 [2025-02-09 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434910', 'tblTempUsageDetail_20' ) start [2025-02-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434910', 'tblTempUsageDetail_20' ) end [2025-02-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434910', 'tblTempVendorCDR_20' ) start [2025-02-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434910', 'tblTempVendorCDR_20' ) end [2025-02-09 05:27:17] Production.INFO: ProcessCDR(1,14434910,1,1,2) [2025-02-09 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434910', 'tblTempUsageDetail_20' ) start [2025-02-09 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434910', 'tblTempUsageDetail_20' ) end [2025-02-09 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:27:20] Production.INFO: ==22659== Releasing lock... [2025-02-09 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:27:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:28:05 [end_date_ymd] => 2025-02-09 05:28:05 [RateCDR] => 1 ) [2025-02-09 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:28:05' and `end` < '2025-02-09 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:28:18] Production.INFO: count ==308 [2025-02-09 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:28:05 - End Time 2025-02-09 05:28:05 [2025-02-09 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434915', 'tblTempUsageDetail_20' ) start [2025-02-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434915', 'tblTempUsageDetail_20' ) end [2025-02-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434915', 'tblTempVendorCDR_20' ) start [2025-02-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434915', 'tblTempVendorCDR_20' ) end [2025-02-09 05:28:18] Production.INFO: ProcessCDR(1,14434915,1,1,2) [2025-02-09 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434915', 'tblTempUsageDetail_20' ) start [2025-02-09 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434915', 'tblTempUsageDetail_20' ) end [2025-02-09 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:28:21] Production.INFO: ==22733== Releasing lock... [2025-02-09 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:28:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:29:05 [end_date_ymd] => 2025-02-09 05:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:29:05' and `end` < '2025-02-09 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-02-09 05:29:18] Production.INFO: count ==308 [2025-02-09 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:29:05 - End Time 2025-02-09 05:29:05 [2025-02-09 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434920', 'tblTempUsageDetail_20' ) start [2025-02-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434920', 'tblTempUsageDetail_20' ) end [2025-02-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434920', 'tblTempVendorCDR_20' ) start [2025-02-09 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434920', 'tblTempVendorCDR_20' ) end [2025-02-09 05:29:18] Production.INFO: ProcessCDR(1,14434920,1,1,2) [2025-02-09 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434920', 'tblTempUsageDetail_20' ) start [2025-02-09 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434920', 'tblTempUsageDetail_20' ) end [2025-02-09 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:29:21] Production.INFO: ==22810== Releasing lock... [2025-02-09 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:30:06 [end_date_ymd] => 2025-02-09 05:30:06 [RateCDR] => 1 ) [2025-02-09 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:30:06' and `end` < '2025-02-09 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:30:20] Production.INFO: count ==302 [2025-02-09 05:30:20] Production.ERROR: pbx CDR StartTime 2025-02-09 02:30:06 - End Time 2025-02-09 05:30:06 [2025-02-09 05:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434926', 'tblTempUsageDetail_20' ) start [2025-02-09 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434926', 'tblTempUsageDetail_20' ) end [2025-02-09 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434926', 'tblTempVendorCDR_20' ) start [2025-02-09 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434926', 'tblTempVendorCDR_20' ) end [2025-02-09 05:30:20] Production.INFO: ProcessCDR(1,14434926,1,1,2) [2025-02-09 05:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434926', 'tblTempUsageDetail_20' ) start [2025-02-09 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434926', 'tblTempUsageDetail_20' ) end [2025-02-09 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:30:23] Production.INFO: ==22888== Releasing lock... [2025-02-09 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:31:05 [end_date_ymd] => 2025-02-09 05:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:31:05' and `end` < '2025-02-09 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-02-09 05:31:18] Production.INFO: count ==272 [2025-02-09 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:31:05 - End Time 2025-02-09 05:31:05 [2025-02-09 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434931', 'tblTempUsageDetail_20' ) start [2025-02-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434931', 'tblTempUsageDetail_20' ) end [2025-02-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434931', 'tblTempVendorCDR_20' ) start [2025-02-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434931', 'tblTempVendorCDR_20' ) end [2025-02-09 05:31:18] Production.INFO: ProcessCDR(1,14434931,1,1,2) [2025-02-09 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434931', 'tblTempUsageDetail_20' ) start [2025-02-09 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434931', 'tblTempUsageDetail_20' ) end [2025-02-09 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:31:21] Production.INFO: ==23005== Releasing lock... [2025-02-09 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:32:05 [end_date_ymd] => 2025-02-09 05:32:05 [RateCDR] => 1 ) [2025-02-09 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:32:05' and `end` < '2025-02-09 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:32:19] Production.INFO: count ==272 [2025-02-09 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:32:05 - End Time 2025-02-09 05:32:05 [2025-02-09 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434936', 'tblTempUsageDetail_20' ) start [2025-02-09 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434936', 'tblTempUsageDetail_20' ) end [2025-02-09 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434936', 'tblTempVendorCDR_20' ) start [2025-02-09 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434936', 'tblTempVendorCDR_20' ) end [2025-02-09 05:32:19] Production.INFO: ProcessCDR(1,14434936,1,1,2) [2025-02-09 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434936', 'tblTempUsageDetail_20' ) start [2025-02-09 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434936', 'tblTempUsageDetail_20' ) end [2025-02-09 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:32:22] Production.INFO: ==23079== Releasing lock... [2025-02-09 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:33:05 [end_date_ymd] => 2025-02-09 05:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:33:05' and `end` < '2025-02-09 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-02-09 05:33:18] Production.INFO: count ==272 [2025-02-09 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:33:05 - End Time 2025-02-09 05:33:05 [2025-02-09 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434941', 'tblTempUsageDetail_20' ) start [2025-02-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434941', 'tblTempUsageDetail_20' ) end [2025-02-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434941', 'tblTempVendorCDR_20' ) start [2025-02-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434941', 'tblTempVendorCDR_20' ) end [2025-02-09 05:33:18] Production.INFO: ProcessCDR(1,14434941,1,1,2) [2025-02-09 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434941', 'tblTempUsageDetail_20' ) start [2025-02-09 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434941', 'tblTempUsageDetail_20' ) end [2025-02-09 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:33:21] Production.INFO: ==23156== Releasing lock... [2025-02-09 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:34:04 [end_date_ymd] => 2025-02-09 05:34:04 [RateCDR] => 1 ) [2025-02-09 05:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:34:04' and `end` < '2025-02-09 05:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:34:18] Production.INFO: count ==272 [2025-02-09 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:34:04 - End Time 2025-02-09 05:34:04 [2025-02-09 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434946', 'tblTempUsageDetail_20' ) start [2025-02-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434946', 'tblTempUsageDetail_20' ) end [2025-02-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434946', 'tblTempVendorCDR_20' ) start [2025-02-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434946', 'tblTempVendorCDR_20' ) end [2025-02-09 05:34:18] Production.INFO: ProcessCDR(1,14434946,1,1,2) [2025-02-09 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434946', 'tblTempUsageDetail_20' ) start [2025-02-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434946', 'tblTempUsageDetail_20' ) end [2025-02-09 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:34:21] Production.INFO: ==23227== Releasing lock... [2025-02-09 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:35:05 [end_date_ymd] => 2025-02-09 05:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:35:05' and `end` < '2025-02-09 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-02-09 05:35:18] Production.INFO: count ==272 [2025-02-09 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:35:05 - End Time 2025-02-09 05:35:05 [2025-02-09 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434951', 'tblTempUsageDetail_20' ) start [2025-02-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434951', 'tblTempUsageDetail_20' ) end [2025-02-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434951', 'tblTempVendorCDR_20' ) start [2025-02-09 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434951', 'tblTempVendorCDR_20' ) end [2025-02-09 05:35:18] Production.INFO: ProcessCDR(1,14434951,1,1,2) [2025-02-09 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434951', 'tblTempUsageDetail_20' ) start [2025-02-09 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434951', 'tblTempUsageDetail_20' ) end [2025-02-09 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:35:21] Production.INFO: ==23305== Releasing lock... [2025-02-09 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:36:05 [end_date_ymd] => 2025-02-09 05:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:36:05' and `end` < '2025-02-09 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-02-09 05:36:17] Production.INFO: count ==272 [2025-02-09 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:36:05 - End Time 2025-02-09 05:36:05 [2025-02-09 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434956', 'tblTempUsageDetail_20' ) start [2025-02-09 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434956', 'tblTempUsageDetail_20' ) end [2025-02-09 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434956', 'tblTempVendorCDR_20' ) start [2025-02-09 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434956', 'tblTempVendorCDR_20' ) end [2025-02-09 05:36:17] Production.INFO: ProcessCDR(1,14434956,1,1,2) [2025-02-09 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434956', 'tblTempUsageDetail_20' ) start [2025-02-09 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434956', 'tblTempUsageDetail_20' ) end [2025-02-09 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:36:20] Production.INFO: ==23379== Releasing lock... [2025-02-09 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:37:05 [end_date_ymd] => 2025-02-09 05:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:37:05' and `end` < '2025-02-09 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-02-09 05:37:18] Production.INFO: count ==272 [2025-02-09 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:37:05 - End Time 2025-02-09 05:37:05 [2025-02-09 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434961', 'tblTempUsageDetail_20' ) start [2025-02-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434961', 'tblTempUsageDetail_20' ) end [2025-02-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434961', 'tblTempVendorCDR_20' ) start [2025-02-09 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434961', 'tblTempVendorCDR_20' ) end [2025-02-09 05:37:18] Production.INFO: ProcessCDR(1,14434961,1,1,2) [2025-02-09 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434961', 'tblTempUsageDetail_20' ) start [2025-02-09 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434961', 'tblTempUsageDetail_20' ) end [2025-02-09 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:37:21] Production.INFO: ==23455== Releasing lock... [2025-02-09 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:38:05 [end_date_ymd] => 2025-02-09 05:38:05 [RateCDR] => 1 ) [2025-02-09 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:38:05' and `end` < '2025-02-09 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:38:19] Production.INFO: count ==272 [2025-02-09 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:38:05 - End Time 2025-02-09 05:38:05 [2025-02-09 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434966', 'tblTempUsageDetail_20' ) start [2025-02-09 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434966', 'tblTempUsageDetail_20' ) end [2025-02-09 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434966', 'tblTempVendorCDR_20' ) start [2025-02-09 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434966', 'tblTempVendorCDR_20' ) end [2025-02-09 05:38:19] Production.INFO: ProcessCDR(1,14434966,1,1,2) [2025-02-09 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434966', 'tblTempUsageDetail_20' ) start [2025-02-09 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434966', 'tblTempUsageDetail_20' ) end [2025-02-09 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:38:22] Production.INFO: ==23529== Releasing lock... [2025-02-09 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:39:05 [end_date_ymd] => 2025-02-09 05:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:39:05' and `end` < '2025-02-09 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-02-09 05:39:19] Production.INFO: count ==272 [2025-02-09 05:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:39:05 - End Time 2025-02-09 05:39:05 [2025-02-09 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434971', 'tblTempUsageDetail_20' ) start [2025-02-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434971', 'tblTempUsageDetail_20' ) end [2025-02-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434971', 'tblTempVendorCDR_20' ) start [2025-02-09 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434971', 'tblTempVendorCDR_20' ) end [2025-02-09 05:39:19] Production.INFO: ProcessCDR(1,14434971,1,1,2) [2025-02-09 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434971', 'tblTempUsageDetail_20' ) start [2025-02-09 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434971', 'tblTempUsageDetail_20' ) end [2025-02-09 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:39:22] Production.INFO: ==23607== Releasing lock... [2025-02-09 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:40:06 [end_date_ymd] => 2025-02-09 05:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:40:06' and `end` < '2025-02-09 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-02-09 05:40:20] Production.INFO: count ==272 [2025-02-09 05:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 02:40:06 - End Time 2025-02-09 05:40:06 [2025-02-09 05:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434977', 'tblTempUsageDetail_20' ) start [2025-02-09 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434977', 'tblTempUsageDetail_20' ) end [2025-02-09 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434977', 'tblTempVendorCDR_20' ) start [2025-02-09 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434977', 'tblTempVendorCDR_20' ) end [2025-02-09 05:40:20] Production.INFO: ProcessCDR(1,14434977,1,1,2) [2025-02-09 05:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434977', 'tblTempUsageDetail_20' ) start [2025-02-09 05:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434977', 'tblTempUsageDetail_20' ) end [2025-02-09 05:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:40:24] Production.INFO: ==23687== Releasing lock... [2025-02-09 05:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:40:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:41:05 [end_date_ymd] => 2025-02-09 05:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:41:05' and `end` < '2025-02-09 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-02-09 05:41:19] Production.INFO: count ==254 [2025-02-09 05:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:41:05 - End Time 2025-02-09 05:41:05 [2025-02-09 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434982', 'tblTempUsageDetail_20' ) start [2025-02-09 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434982', 'tblTempUsageDetail_20' ) end [2025-02-09 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434982', 'tblTempVendorCDR_20' ) start [2025-02-09 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434982', 'tblTempVendorCDR_20' ) end [2025-02-09 05:41:19] Production.INFO: ProcessCDR(1,14434982,1,1,2) [2025-02-09 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434982', 'tblTempUsageDetail_20' ) start [2025-02-09 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434982', 'tblTempUsageDetail_20' ) end [2025-02-09 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:41:22] Production.INFO: ==23766== Releasing lock... [2025-02-09 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:42:05 [end_date_ymd] => 2025-02-09 05:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:42:05' and `end` < '2025-02-09 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-02-09 05:42:19] Production.INFO: count ==253 [2025-02-09 05:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:42:05 - End Time 2025-02-09 05:42:05 [2025-02-09 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434987', 'tblTempUsageDetail_20' ) start [2025-02-09 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434987', 'tblTempUsageDetail_20' ) end [2025-02-09 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434987', 'tblTempVendorCDR_20' ) start [2025-02-09 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434987', 'tblTempVendorCDR_20' ) end [2025-02-09 05:42:19] Production.INFO: ProcessCDR(1,14434987,1,1,2) [2025-02-09 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434987', 'tblTempUsageDetail_20' ) start [2025-02-09 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434987', 'tblTempUsageDetail_20' ) end [2025-02-09 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:42:22] Production.INFO: ==23844== Releasing lock... [2025-02-09 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:43:05 [end_date_ymd] => 2025-02-09 05:43:05 [RateCDR] => 1 ) [2025-02-09 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:43:05' and `end` < '2025-02-09 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:43:18] Production.INFO: count ==251 [2025-02-09 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:43:05 - End Time 2025-02-09 05:43:05 [2025-02-09 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434992', 'tblTempUsageDetail_20' ) start [2025-02-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434992', 'tblTempUsageDetail_20' ) end [2025-02-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434992', 'tblTempVendorCDR_20' ) start [2025-02-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434992', 'tblTempVendorCDR_20' ) end [2025-02-09 05:43:18] Production.INFO: ProcessCDR(1,14434992,1,1,2) [2025-02-09 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434992', 'tblTempUsageDetail_20' ) start [2025-02-09 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434992', 'tblTempUsageDetail_20' ) end [2025-02-09 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:43:21] Production.INFO: ==23917== Releasing lock... [2025-02-09 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:44:05 [end_date_ymd] => 2025-02-09 05:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:44:05' and `end` < '2025-02-09 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-02-09 05:44:18] Production.INFO: count ==251 [2025-02-09 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:44:05 - End Time 2025-02-09 05:44:05 [2025-02-09 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434997', 'tblTempUsageDetail_20' ) start [2025-02-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14434997', 'tblTempUsageDetail_20' ) end [2025-02-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434997', 'tblTempVendorCDR_20' ) start [2025-02-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14434997', 'tblTempVendorCDR_20' ) end [2025-02-09 05:44:18] Production.INFO: ProcessCDR(1,14434997,1,1,2) [2025-02-09 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14434997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14434997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14434997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14434997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434997', 'tblTempUsageDetail_20' ) start [2025-02-09 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14434997', 'tblTempUsageDetail_20' ) end [2025-02-09 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:44:21] Production.INFO: ==23990== Releasing lock... [2025-02-09 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:45:05 [end_date_ymd] => 2025-02-09 05:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:45:05' and `end` < '2025-02-09 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-02-09 05:45:18] Production.INFO: count ==251 [2025-02-09 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:45:05 - End Time 2025-02-09 05:45:05 [2025-02-09 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435002', 'tblTempUsageDetail_20' ) start [2025-02-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435002', 'tblTempUsageDetail_20' ) end [2025-02-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435002', 'tblTempVendorCDR_20' ) start [2025-02-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435002', 'tblTempVendorCDR_20' ) end [2025-02-09 05:45:18] Production.INFO: ProcessCDR(1,14435002,1,1,2) [2025-02-09 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435002', 'tblTempUsageDetail_20' ) start [2025-02-09 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435002', 'tblTempUsageDetail_20' ) end [2025-02-09 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:45:21] Production.INFO: ==24064== Releasing lock... [2025-02-09 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:46:05 [end_date_ymd] => 2025-02-09 05:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:46:05' and `end` < '2025-02-09 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-02-09 05:46:18] Production.INFO: count ==250 [2025-02-09 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:46:05 - End Time 2025-02-09 05:46:05 [2025-02-09 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435007', 'tblTempUsageDetail_20' ) start [2025-02-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435007', 'tblTempUsageDetail_20' ) end [2025-02-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435007', 'tblTempVendorCDR_20' ) start [2025-02-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435007', 'tblTempVendorCDR_20' ) end [2025-02-09 05:46:18] Production.INFO: ProcessCDR(1,14435007,1,1,2) [2025-02-09 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435007', 'tblTempUsageDetail_20' ) start [2025-02-09 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435007', 'tblTempUsageDetail_20' ) end [2025-02-09 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:46:21] Production.INFO: ==24176== Releasing lock... [2025-02-09 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:47:05 [end_date_ymd] => 2025-02-09 05:47:05 [RateCDR] => 1 ) [2025-02-09 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:47:05' and `end` < '2025-02-09 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:47:18] Production.INFO: count ==248 [2025-02-09 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:47:05 - End Time 2025-02-09 05:47:05 [2025-02-09 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435012', 'tblTempUsageDetail_20' ) start [2025-02-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435012', 'tblTempUsageDetail_20' ) end [2025-02-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435012', 'tblTempVendorCDR_20' ) start [2025-02-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435012', 'tblTempVendorCDR_20' ) end [2025-02-09 05:47:18] Production.INFO: ProcessCDR(1,14435012,1,1,2) [2025-02-09 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435012', 'tblTempUsageDetail_20' ) start [2025-02-09 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435012', 'tblTempUsageDetail_20' ) end [2025-02-09 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:47:21] Production.INFO: ==24251== Releasing lock... [2025-02-09 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:48:05 [end_date_ymd] => 2025-02-09 05:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:48:05' and `end` < '2025-02-09 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-02-09 05:48:18] Production.INFO: count ==247 [2025-02-09 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:48:05 - End Time 2025-02-09 05:48:05 [2025-02-09 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435017', 'tblTempUsageDetail_20' ) start [2025-02-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435017', 'tblTempUsageDetail_20' ) end [2025-02-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435017', 'tblTempVendorCDR_20' ) start [2025-02-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435017', 'tblTempVendorCDR_20' ) end [2025-02-09 05:48:18] Production.INFO: ProcessCDR(1,14435017,1,1,2) [2025-02-09 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435017', 'tblTempUsageDetail_20' ) start [2025-02-09 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435017', 'tblTempUsageDetail_20' ) end [2025-02-09 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:48:21] Production.INFO: ==24327== Releasing lock... [2025-02-09 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:49:05 [end_date_ymd] => 2025-02-09 05:49:05 [RateCDR] => 1 ) [2025-02-09 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:49:05' and `end` < '2025-02-09 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:49:18] Production.INFO: count ==247 [2025-02-09 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:49:05 - End Time 2025-02-09 05:49:05 [2025-02-09 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435022', 'tblTempUsageDetail_20' ) start [2025-02-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435022', 'tblTempUsageDetail_20' ) end [2025-02-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435022', 'tblTempVendorCDR_20' ) start [2025-02-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435022', 'tblTempVendorCDR_20' ) end [2025-02-09 05:49:18] Production.INFO: ProcessCDR(1,14435022,1,1,2) [2025-02-09 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435022', 'tblTempUsageDetail_20' ) start [2025-02-09 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435022', 'tblTempUsageDetail_20' ) end [2025-02-09 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:49:21] Production.INFO: ==24405== Releasing lock... [2025-02-09 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:50:05 [end_date_ymd] => 2025-02-09 05:50:05 [RateCDR] => 1 ) [2025-02-09 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:50:05' and `end` < '2025-02-09 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:50:18] Production.INFO: count ==245 [2025-02-09 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:50:05 - End Time 2025-02-09 05:50:05 [2025-02-09 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435027', 'tblTempUsageDetail_20' ) start [2025-02-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435027', 'tblTempUsageDetail_20' ) end [2025-02-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435027', 'tblTempVendorCDR_20' ) start [2025-02-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435027', 'tblTempVendorCDR_20' ) end [2025-02-09 05:50:18] Production.INFO: ProcessCDR(1,14435027,1,1,2) [2025-02-09 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435027', 'tblTempUsageDetail_20' ) start [2025-02-09 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435027', 'tblTempUsageDetail_20' ) end [2025-02-09 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:50:21] Production.INFO: ==24482== Releasing lock... [2025-02-09 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:51:05 [end_date_ymd] => 2025-02-09 05:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:51:05' and `end` < '2025-02-09 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-02-09 05:51:18] Production.INFO: count ==231 [2025-02-09 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:51:05 - End Time 2025-02-09 05:51:05 [2025-02-09 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435033', 'tblTempUsageDetail_20' ) start [2025-02-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435033', 'tblTempUsageDetail_20' ) end [2025-02-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435033', 'tblTempVendorCDR_20' ) start [2025-02-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435033', 'tblTempVendorCDR_20' ) end [2025-02-09 05:51:18] Production.INFO: ProcessCDR(1,14435033,1,1,2) [2025-02-09 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435033', 'tblTempUsageDetail_20' ) start [2025-02-09 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435033', 'tblTempUsageDetail_20' ) end [2025-02-09 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:51:21] Production.INFO: ==24557== Releasing lock... [2025-02-09 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:52:04 [end_date_ymd] => 2025-02-09 05:52:04 [RateCDR] => 1 ) [2025-02-09 05: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-02-09 02:52:04' and `end` < '2025-02-09 05: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-02-09 05:52:17] Production.INFO: count ==231 [2025-02-09 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:52:04 - End Time 2025-02-09 05:52:04 [2025-02-09 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435038', 'tblTempUsageDetail_20' ) start [2025-02-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435038', 'tblTempUsageDetail_20' ) end [2025-02-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435038', 'tblTempVendorCDR_20' ) start [2025-02-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435038', 'tblTempVendorCDR_20' ) end [2025-02-09 05:52:17] Production.INFO: ProcessCDR(1,14435038,1,1,2) [2025-02-09 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435038', 'tblTempUsageDetail_20' ) start [2025-02-09 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435038', 'tblTempUsageDetail_20' ) end [2025-02-09 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:52:20] Production.INFO: ==24635== Releasing lock... [2025-02-09 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:53:05 [end_date_ymd] => 2025-02-09 05:53:05 [RateCDR] => 1 ) [2025-02-09 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:53:05' and `end` < '2025-02-09 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:53:18] Production.INFO: count ==231 [2025-02-09 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:53:05 - End Time 2025-02-09 05:53:05 [2025-02-09 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435043', 'tblTempUsageDetail_20' ) start [2025-02-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435043', 'tblTempUsageDetail_20' ) end [2025-02-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435043', 'tblTempVendorCDR_20' ) start [2025-02-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435043', 'tblTempVendorCDR_20' ) end [2025-02-09 05:53:18] Production.INFO: ProcessCDR(1,14435043,1,1,2) [2025-02-09 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435043', 'tblTempUsageDetail_20' ) start [2025-02-09 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435043', 'tblTempUsageDetail_20' ) end [2025-02-09 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:53:21] Production.INFO: ==24725== Releasing lock... [2025-02-09 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:54:05 [end_date_ymd] => 2025-02-09 05:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:54:05' and `end` < '2025-02-09 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-02-09 05:54:18] Production.INFO: count ==231 [2025-02-09 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:54:05 - End Time 2025-02-09 05:54:05 [2025-02-09 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435048', 'tblTempUsageDetail_20' ) start [2025-02-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435048', 'tblTempUsageDetail_20' ) end [2025-02-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435048', 'tblTempVendorCDR_20' ) start [2025-02-09 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435048', 'tblTempVendorCDR_20' ) end [2025-02-09 05:54:18] Production.INFO: ProcessCDR(1,14435048,1,1,2) [2025-02-09 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435048', 'tblTempUsageDetail_20' ) start [2025-02-09 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435048', 'tblTempUsageDetail_20' ) end [2025-02-09 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:54:21] Production.INFO: ==24801== Releasing lock... [2025-02-09 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:55:05 [end_date_ymd] => 2025-02-09 05:55:05 [RateCDR] => 1 ) [2025-02-09 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:55:05' and `end` < '2025-02-09 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:55:18] Production.INFO: count ==230 [2025-02-09 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:55:05 - End Time 2025-02-09 05:55:05 [2025-02-09 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435053', 'tblTempUsageDetail_20' ) start [2025-02-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435053', 'tblTempUsageDetail_20' ) end [2025-02-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435053', 'tblTempVendorCDR_20' ) start [2025-02-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435053', 'tblTempVendorCDR_20' ) end [2025-02-09 05:55:18] Production.INFO: ProcessCDR(1,14435053,1,1,2) [2025-02-09 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435053', 'tblTempUsageDetail_20' ) start [2025-02-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435053', 'tblTempUsageDetail_20' ) end [2025-02-09 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:55:21] Production.INFO: ==24874== Releasing lock... [2025-02-09 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:56:05 [end_date_ymd] => 2025-02-09 05:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:56:05' and `end` < '2025-02-09 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-02-09 05:56:19] Production.INFO: count ==230 [2025-02-09 05:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 02:56:05 - End Time 2025-02-09 05:56:05 [2025-02-09 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435058', 'tblTempUsageDetail_20' ) start [2025-02-09 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435058', 'tblTempUsageDetail_20' ) end [2025-02-09 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435058', 'tblTempVendorCDR_20' ) start [2025-02-09 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435058', 'tblTempVendorCDR_20' ) end [2025-02-09 05:56:19] Production.INFO: ProcessCDR(1,14435058,1,1,2) [2025-02-09 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435058', 'tblTempUsageDetail_20' ) start [2025-02-09 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435058', 'tblTempUsageDetail_20' ) end [2025-02-09 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:56:21] Production.INFO: ==24945== Releasing lock... [2025-02-09 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:57:05 [end_date_ymd] => 2025-02-09 05:57:05 [RateCDR] => 1 ) [2025-02-09 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:57:05' and `end` < '2025-02-09 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:57:18] Production.INFO: count ==228 [2025-02-09 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:57:05 - End Time 2025-02-09 05:57:05 [2025-02-09 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435063', 'tblTempUsageDetail_20' ) start [2025-02-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435063', 'tblTempUsageDetail_20' ) end [2025-02-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435063', 'tblTempVendorCDR_20' ) start [2025-02-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435063', 'tblTempVendorCDR_20' ) end [2025-02-09 05:57:18] Production.INFO: ProcessCDR(1,14435063,1,1,2) [2025-02-09 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435063', 'tblTempUsageDetail_20' ) start [2025-02-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435063', 'tblTempUsageDetail_20' ) end [2025-02-09 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:57:21] Production.INFO: ==25019== Releasing lock... [2025-02-09 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:58:05 [end_date_ymd] => 2025-02-09 05:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 02:58:05' and `end` < '2025-02-09 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-02-09 05:58:18] Production.INFO: count ==228 [2025-02-09 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 02:58:05 - End Time 2025-02-09 05:58:05 [2025-02-09 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435068', 'tblTempUsageDetail_20' ) start [2025-02-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435068', 'tblTempUsageDetail_20' ) end [2025-02-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435068', 'tblTempVendorCDR_20' ) start [2025-02-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435068', 'tblTempVendorCDR_20' ) end [2025-02-09 05:58:18] Production.INFO: ProcessCDR(1,14435068,1,1,2) [2025-02-09 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435068', 'tblTempUsageDetail_20' ) start [2025-02-09 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435068', 'tblTempUsageDetail_20' ) end [2025-02-09 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:58:21] Production.INFO: ==25093== Releasing lock... [2025-02-09 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 02:59:04 [end_date_ymd] => 2025-02-09 05:59:04 [RateCDR] => 1 ) [2025-02-09 05:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 02:59:04' and `end` < '2025-02-09 05:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 05:59:17] Production.INFO: count ==228 [2025-02-09 05:59:17] Production.ERROR: pbx CDR StartTime 2025-02-09 02:59:04 - End Time 2025-02-09 05:59:04 [2025-02-09 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435073', 'tblTempUsageDetail_20' ) start [2025-02-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435073', 'tblTempUsageDetail_20' ) end [2025-02-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435073', 'tblTempVendorCDR_20' ) start [2025-02-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435073', 'tblTempVendorCDR_20' ) end [2025-02-09 05:59:17] Production.INFO: ProcessCDR(1,14435073,1,1,2) [2025-02-09 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435073', 'tblTempUsageDetail_20' ) start [2025-02-09 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435073', 'tblTempUsageDetail_20' ) end [2025-02-09 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 05:59:20] Production.INFO: ==25167== Releasing lock... [2025-02-09 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 05:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:00:06 [end_date_ymd] => 2025-02-09 06:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:00:06' and `end` < '2025-02-09 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-02-09 06:00:19] Production.INFO: count ==222 [2025-02-09 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:00:06 - End Time 2025-02-09 06:00:06 [2025-02-09 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435079', 'tblTempUsageDetail_20' ) start [2025-02-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435079', 'tblTempUsageDetail_20' ) end [2025-02-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435079', 'tblTempVendorCDR_20' ) start [2025-02-09 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435079', 'tblTempVendorCDR_20' ) end [2025-02-09 06:00:19] Production.INFO: ProcessCDR(1,14435079,1,1,2) [2025-02-09 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435079', 'tblTempUsageDetail_20' ) start [2025-02-09 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435079', 'tblTempUsageDetail_20' ) end [2025-02-09 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:00:22] Production.INFO: ==25241== Releasing lock... [2025-02-09 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:00:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:01:06 [end_date_ymd] => 2025-02-09 06:01:06 [RateCDR] => 1 ) [2025-02-09 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:01:06' and `end` < '2025-02-09 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:01:20] Production.INFO: count ==216 [2025-02-09 06:01:20] Production.ERROR: pbx CDR StartTime 2025-02-09 03:01:06 - End Time 2025-02-09 06:01:06 [2025-02-09 06:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435084', 'tblTempUsageDetail_20' ) start [2025-02-09 06:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435084', 'tblTempUsageDetail_20' ) end [2025-02-09 06:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435084', 'tblTempVendorCDR_20' ) start [2025-02-09 06:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435084', 'tblTempVendorCDR_20' ) end [2025-02-09 06:01:20] Production.INFO: ProcessCDR(1,14435084,1,1,2) [2025-02-09 06:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435084', 'tblTempUsageDetail_20' ) start [2025-02-09 06:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435084', 'tblTempUsageDetail_20' ) end [2025-02-09 06:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:01:23] Production.INFO: ==25330== Releasing lock... [2025-02-09 06:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:01:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:02:05 [end_date_ymd] => 2025-02-09 06:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:02:05' and `end` < '2025-02-09 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-02-09 06:02:18] Production.INFO: count ==215 [2025-02-09 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:02:05 - End Time 2025-02-09 06:02:05 [2025-02-09 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435086', 'tblTempUsageDetail_20' ) start [2025-02-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435086', 'tblTempUsageDetail_20' ) end [2025-02-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435086', 'tblTempVendorCDR_20' ) start [2025-02-09 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435086', 'tblTempVendorCDR_20' ) end [2025-02-09 06:02:18] Production.INFO: ProcessCDR(1,14435086,1,1,2) [2025-02-09 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435086', 'tblTempUsageDetail_20' ) start [2025-02-09 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435086', 'tblTempUsageDetail_20' ) end [2025-02-09 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:02:21] Production.INFO: ==25442== Releasing lock... [2025-02-09 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:02:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:03:06 [end_date_ymd] => 2025-02-09 06:03:06 [RateCDR] => 1 ) [2025-02-09 06: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-02-09 03:03:06' and `end` < '2025-02-09 06: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-02-09 06:03:19] Production.INFO: count ==215 [2025-02-09 06:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:03:06 - End Time 2025-02-09 06:03:06 [2025-02-09 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435094', 'tblTempUsageDetail_20' ) start [2025-02-09 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435094', 'tblTempUsageDetail_20' ) end [2025-02-09 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435094', 'tblTempVendorCDR_20' ) start [2025-02-09 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435094', 'tblTempVendorCDR_20' ) end [2025-02-09 06:03:19] Production.INFO: ProcessCDR(1,14435094,1,1,2) [2025-02-09 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435094', 'tblTempUsageDetail_20' ) start [2025-02-09 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435094', 'tblTempUsageDetail_20' ) end [2025-02-09 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:03:22] Production.INFO: ==25518== Releasing lock... [2025-02-09 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:03:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:04:04 [end_date_ymd] => 2025-02-09 06:04:04 [RateCDR] => 1 ) [2025-02-09 06:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:04:04' and `end` < '2025-02-09 06:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:04:17] Production.INFO: count ==212 [2025-02-09 06:04:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:04:04 - End Time 2025-02-09 06:04:04 [2025-02-09 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435099', 'tblTempUsageDetail_20' ) start [2025-02-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435099', 'tblTempUsageDetail_20' ) end [2025-02-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435099', 'tblTempVendorCDR_20' ) start [2025-02-09 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435099', 'tblTempVendorCDR_20' ) end [2025-02-09 06:04:17] Production.INFO: ProcessCDR(1,14435099,1,1,2) [2025-02-09 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435099', 'tblTempUsageDetail_20' ) start [2025-02-09 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435099', 'tblTempUsageDetail_20' ) end [2025-02-09 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:04:20] Production.INFO: ==25589== Releasing lock... [2025-02-09 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:04:20] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:05:05 [end_date_ymd] => 2025-02-09 06:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:05:05' and `end` < '2025-02-09 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-02-09 06:05:18] Production.INFO: count ==207 [2025-02-09 06:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:05:05 - End Time 2025-02-09 06:05:05 [2025-02-09 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435104', 'tblTempUsageDetail_20' ) start [2025-02-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435104', 'tblTempUsageDetail_20' ) end [2025-02-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435104', 'tblTempVendorCDR_20' ) start [2025-02-09 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435104', 'tblTempVendorCDR_20' ) end [2025-02-09 06:05:18] Production.INFO: ProcessCDR(1,14435104,1,1,2) [2025-02-09 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435104', 'tblTempUsageDetail_20' ) start [2025-02-09 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435104', 'tblTempUsageDetail_20' ) end [2025-02-09 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:05:22] Production.INFO: ==25666== Releasing lock... [2025-02-09 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:05:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:06:05 [end_date_ymd] => 2025-02-09 06:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:06:05' and `end` < '2025-02-09 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:06:18] Production.INFO: count ==202 [2025-02-09 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:06:05 - End Time 2025-02-09 06:06:05 [2025-02-09 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435109', 'tblTempUsageDetail_20' ) start [2025-02-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435109', 'tblTempUsageDetail_20' ) end [2025-02-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435109', 'tblTempVendorCDR_20' ) start [2025-02-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435109', 'tblTempVendorCDR_20' ) end [2025-02-09 06:06:18] Production.INFO: ProcessCDR(1,14435109,1,1,2) [2025-02-09 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435109', 'tblTempUsageDetail_20' ) start [2025-02-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435109', 'tblTempUsageDetail_20' ) end [2025-02-09 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:06:21] Production.INFO: ==25736== Releasing lock... [2025-02-09 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:07:05 [end_date_ymd] => 2025-02-09 06:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:07:05' and `end` < '2025-02-09 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-02-09 06:07:19] Production.INFO: count ==205 [2025-02-09 06:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:07:05 - End Time 2025-02-09 06:07:05 [2025-02-09 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435114', 'tblTempUsageDetail_20' ) start [2025-02-09 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435114', 'tblTempUsageDetail_20' ) end [2025-02-09 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435114', 'tblTempVendorCDR_20' ) start [2025-02-09 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435114', 'tblTempVendorCDR_20' ) end [2025-02-09 06:07:19] Production.INFO: ProcessCDR(1,14435114,1,1,2) [2025-02-09 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435114', 'tblTempUsageDetail_20' ) start [2025-02-09 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435114', 'tblTempUsageDetail_20' ) end [2025-02-09 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:07:22] Production.INFO: ==25812== Releasing lock... [2025-02-09 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:07:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:08:05 [end_date_ymd] => 2025-02-09 06:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:08:05' and `end` < '2025-02-09 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-02-09 06:08:18] Production.INFO: count ==205 [2025-02-09 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:08:05 - End Time 2025-02-09 06:08:05 [2025-02-09 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435119', 'tblTempUsageDetail_20' ) start [2025-02-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435119', 'tblTempUsageDetail_20' ) end [2025-02-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435119', 'tblTempVendorCDR_20' ) start [2025-02-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435119', 'tblTempVendorCDR_20' ) end [2025-02-09 06:08:18] Production.INFO: ProcessCDR(1,14435119,1,1,2) [2025-02-09 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435119', 'tblTempUsageDetail_20' ) start [2025-02-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435119', 'tblTempUsageDetail_20' ) end [2025-02-09 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:08:21] Production.INFO: ==25889== Releasing lock... [2025-02-09 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:08:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:09:05 [end_date_ymd] => 2025-02-09 06:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:09:05' and `end` < '2025-02-09 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-02-09 06:09:19] Production.INFO: count ==204 [2025-02-09 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:09:05 - End Time 2025-02-09 06:09:05 [2025-02-09 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435124', 'tblTempUsageDetail_20' ) start [2025-02-09 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435124', 'tblTempUsageDetail_20' ) end [2025-02-09 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435124', 'tblTempVendorCDR_20' ) start [2025-02-09 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435124', 'tblTempVendorCDR_20' ) end [2025-02-09 06:09:19] Production.INFO: ProcessCDR(1,14435124,1,1,2) [2025-02-09 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435124', 'tblTempUsageDetail_20' ) start [2025-02-09 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435124', 'tblTempUsageDetail_20' ) end [2025-02-09 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:09:22] Production.INFO: ==25966== Releasing lock... [2025-02-09 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:09:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:10:05 [end_date_ymd] => 2025-02-09 06:10:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:10:05' and `end` < '2025-02-09 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-02-09 06:10:18] Production.INFO: count ==202 [2025-02-09 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:10:05 - End Time 2025-02-09 06:10:05 [2025-02-09 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435129', 'tblTempUsageDetail_20' ) start [2025-02-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435129', 'tblTempUsageDetail_20' ) end [2025-02-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435129', 'tblTempVendorCDR_20' ) start [2025-02-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435129', 'tblTempVendorCDR_20' ) end [2025-02-09 06:10:18] Production.INFO: ProcessCDR(1,14435129,1,1,2) [2025-02-09 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435129', 'tblTempUsageDetail_20' ) start [2025-02-09 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435129', 'tblTempUsageDetail_20' ) end [2025-02-09 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:10:21] Production.INFO: ==26043== Releasing lock... [2025-02-09 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:11:05 [end_date_ymd] => 2025-02-09 06:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:11:05' and `end` < '2025-02-09 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-02-09 06:11:18] Production.INFO: count ==182 [2025-02-09 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:11:05 - End Time 2025-02-09 06:11:05 [2025-02-09 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435135', 'tblTempUsageDetail_20' ) start [2025-02-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435135', 'tblTempUsageDetail_20' ) end [2025-02-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435135', 'tblTempVendorCDR_20' ) start [2025-02-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435135', 'tblTempVendorCDR_20' ) end [2025-02-09 06:11:18] Production.INFO: ProcessCDR(1,14435135,1,1,2) [2025-02-09 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435135', 'tblTempUsageDetail_20' ) start [2025-02-09 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435135', 'tblTempUsageDetail_20' ) end [2025-02-09 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:11:21] Production.INFO: ==26118== Releasing lock... [2025-02-09 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:12:04 [end_date_ymd] => 2025-02-09 06:12:04 [RateCDR] => 1 ) [2025-02-09 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:12:04' and `end` < '2025-02-09 06:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:12:17] Production.INFO: count ==182 [2025-02-09 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:12:04 - End Time 2025-02-09 06:12:04 [2025-02-09 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435140', 'tblTempUsageDetail_20' ) start [2025-02-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435140', 'tblTempUsageDetail_20' ) end [2025-02-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435140', 'tblTempVendorCDR_20' ) start [2025-02-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435140', 'tblTempVendorCDR_20' ) end [2025-02-09 06:12:17] Production.INFO: ProcessCDR(1,14435140,1,1,2) [2025-02-09 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435140', 'tblTempUsageDetail_20' ) start [2025-02-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435140', 'tblTempUsageDetail_20' ) end [2025-02-09 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:12:21] Production.INFO: ==26192== Releasing lock... [2025-02-09 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:13:05 [end_date_ymd] => 2025-02-09 06:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:13:05' and `end` < '2025-02-09 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-02-09 06:13:19] Production.INFO: count ==181 [2025-02-09 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:13:05 - End Time 2025-02-09 06:13:05 [2025-02-09 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435145', 'tblTempUsageDetail_20' ) start [2025-02-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435145', 'tblTempUsageDetail_20' ) end [2025-02-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435145', 'tblTempVendorCDR_20' ) start [2025-02-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435145', 'tblTempVendorCDR_20' ) end [2025-02-09 06:13:19] Production.INFO: ProcessCDR(1,14435145,1,1,2) [2025-02-09 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435145', 'tblTempUsageDetail_20' ) start [2025-02-09 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435145', 'tblTempUsageDetail_20' ) end [2025-02-09 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:13:21] Production.INFO: ==26261== Releasing lock... [2025-02-09 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:14:05 [end_date_ymd] => 2025-02-09 06:14:05 [RateCDR] => 1 ) [2025-02-09 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:14:05' and `end` < '2025-02-09 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:14:18] Production.INFO: count ==180 [2025-02-09 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:14:05 - End Time 2025-02-09 06:14:05 [2025-02-09 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435150', 'tblTempUsageDetail_20' ) start [2025-02-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435150', 'tblTempUsageDetail_20' ) end [2025-02-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435150', 'tblTempVendorCDR_20' ) start [2025-02-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435150', 'tblTempVendorCDR_20' ) end [2025-02-09 06:14:18] Production.INFO: ProcessCDR(1,14435150,1,1,2) [2025-02-09 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435150', 'tblTempUsageDetail_20' ) start [2025-02-09 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435150', 'tblTempUsageDetail_20' ) end [2025-02-09 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:14:21] Production.INFO: ==26335== Releasing lock... [2025-02-09 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:15:05 [end_date_ymd] => 2025-02-09 06:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:15:05' and `end` < '2025-02-09 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-02-09 06:15:17] Production.INFO: count ==180 [2025-02-09 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:15:05 - End Time 2025-02-09 06:15:05 [2025-02-09 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435155', 'tblTempUsageDetail_20' ) start [2025-02-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435155', 'tblTempUsageDetail_20' ) end [2025-02-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435155', 'tblTempVendorCDR_20' ) start [2025-02-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435155', 'tblTempVendorCDR_20' ) end [2025-02-09 06:15:18] Production.INFO: ProcessCDR(1,14435155,1,1,2) [2025-02-09 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435155', 'tblTempUsageDetail_20' ) start [2025-02-09 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435155', 'tblTempUsageDetail_20' ) end [2025-02-09 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:15:21] Production.INFO: ==26406== Releasing lock... [2025-02-09 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:16:06 [end_date_ymd] => 2025-02-09 06:16:06 [RateCDR] => 1 ) [2025-02-09 06: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-02-09 03:16:06' and `end` < '2025-02-09 06: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-02-09 06:16:19] Production.INFO: count ==180 [2025-02-09 06:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:16:06 - End Time 2025-02-09 06:16:06 [2025-02-09 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435160', 'tblTempUsageDetail_20' ) start [2025-02-09 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435160', 'tblTempUsageDetail_20' ) end [2025-02-09 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435160', 'tblTempVendorCDR_20' ) start [2025-02-09 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435160', 'tblTempVendorCDR_20' ) end [2025-02-09 06:16:19] Production.INFO: ProcessCDR(1,14435160,1,1,2) [2025-02-09 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435160', 'tblTempUsageDetail_20' ) start [2025-02-09 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435160', 'tblTempUsageDetail_20' ) end [2025-02-09 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:16:22] Production.INFO: ==26480== Releasing lock... [2025-02-09 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:17:05 [end_date_ymd] => 2025-02-09 06:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:17:05' and `end` < '2025-02-09 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-02-09 06:17:18] Production.INFO: count ==177 [2025-02-09 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:17:05 - End Time 2025-02-09 06:17:05 [2025-02-09 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435165', 'tblTempUsageDetail_20' ) start [2025-02-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435165', 'tblTempUsageDetail_20' ) end [2025-02-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435165', 'tblTempVendorCDR_20' ) start [2025-02-09 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435165', 'tblTempVendorCDR_20' ) end [2025-02-09 06:17:18] Production.INFO: ProcessCDR(1,14435165,1,1,2) [2025-02-09 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435165', 'tblTempUsageDetail_20' ) start [2025-02-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435165', 'tblTempUsageDetail_20' ) end [2025-02-09 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:17:21] Production.INFO: ==26590== Releasing lock... [2025-02-09 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:18:05 [end_date_ymd] => 2025-02-09 06:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:18:05' and `end` < '2025-02-09 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-02-09 06:18:19] Production.INFO: count ==176 [2025-02-09 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:18:05 - End Time 2025-02-09 06:18:05 [2025-02-09 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435170', 'tblTempUsageDetail_20' ) start [2025-02-09 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435170', 'tblTempUsageDetail_20' ) end [2025-02-09 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435170', 'tblTempVendorCDR_20' ) start [2025-02-09 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435170', 'tblTempVendorCDR_20' ) end [2025-02-09 06:18:19] Production.INFO: ProcessCDR(1,14435170,1,1,2) [2025-02-09 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435170', 'tblTempUsageDetail_20' ) start [2025-02-09 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435170', 'tblTempUsageDetail_20' ) end [2025-02-09 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:18:22] Production.INFO: ==26662== Releasing lock... [2025-02-09 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:19:05 [end_date_ymd] => 2025-02-09 06:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:19:05' and `end` < '2025-02-09 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-02-09 06:19:18] Production.INFO: count ==174 [2025-02-09 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:19:05 - End Time 2025-02-09 06:19:05 [2025-02-09 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435175', 'tblTempUsageDetail_20' ) start [2025-02-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435175', 'tblTempUsageDetail_20' ) end [2025-02-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435175', 'tblTempVendorCDR_20' ) start [2025-02-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435175', 'tblTempVendorCDR_20' ) end [2025-02-09 06:19:18] Production.INFO: ProcessCDR(1,14435175,1,1,2) [2025-02-09 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435175', 'tblTempUsageDetail_20' ) start [2025-02-09 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435175', 'tblTempUsageDetail_20' ) end [2025-02-09 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:19:21] Production.INFO: ==26733== Releasing lock... [2025-02-09 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:20:06 [end_date_ymd] => 2025-02-09 06:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:20:06' and `end` < '2025-02-09 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-02-09 06:20:18] Production.INFO: count ==176 [2025-02-09 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:20:06 - End Time 2025-02-09 06:20:06 [2025-02-09 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435180', 'tblTempUsageDetail_20' ) start [2025-02-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435180', 'tblTempUsageDetail_20' ) end [2025-02-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435180', 'tblTempVendorCDR_20' ) start [2025-02-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435180', 'tblTempVendorCDR_20' ) end [2025-02-09 06:20:18] Production.INFO: ProcessCDR(1,14435180,1,1,2) [2025-02-09 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435180', 'tblTempUsageDetail_20' ) start [2025-02-09 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435180', 'tblTempUsageDetail_20' ) end [2025-02-09 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:20:21] Production.INFO: ==26810== Releasing lock... [2025-02-09 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:21:06 [end_date_ymd] => 2025-02-09 06:21:06 [RateCDR] => 1 ) [2025-02-09 06: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-02-09 03:21:06' and `end` < '2025-02-09 06: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-02-09 06:21:19] Production.INFO: count ==173 [2025-02-09 06:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:21:06 - End Time 2025-02-09 06:21:06 [2025-02-09 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435186', 'tblTempUsageDetail_20' ) start [2025-02-09 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435186', 'tblTempUsageDetail_20' ) end [2025-02-09 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435186', 'tblTempVendorCDR_20' ) start [2025-02-09 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435186', 'tblTempVendorCDR_20' ) end [2025-02-09 06:21:19] Production.INFO: ProcessCDR(1,14435186,1,1,2) [2025-02-09 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435186', 'tblTempUsageDetail_20' ) start [2025-02-09 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435186', 'tblTempUsageDetail_20' ) end [2025-02-09 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:21:22] Production.INFO: ==26888== Releasing lock... [2025-02-09 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:22:06 [end_date_ymd] => 2025-02-09 06:22:06 [RateCDR] => 1 ) [2025-02-09 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:22:06' and `end` < '2025-02-09 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:22:19] Production.INFO: count ==172 [2025-02-09 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:22:06 - End Time 2025-02-09 06:22:06 [2025-02-09 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435191', 'tblTempUsageDetail_20' ) start [2025-02-09 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435191', 'tblTempUsageDetail_20' ) end [2025-02-09 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435191', 'tblTempVendorCDR_20' ) start [2025-02-09 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435191', 'tblTempVendorCDR_20' ) end [2025-02-09 06:22:19] Production.INFO: ProcessCDR(1,14435191,1,1,2) [2025-02-09 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435191', 'tblTempUsageDetail_20' ) start [2025-02-09 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435191', 'tblTempUsageDetail_20' ) end [2025-02-09 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:22:22] Production.INFO: ==26961== Releasing lock... [2025-02-09 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:23:05 [end_date_ymd] => 2025-02-09 06:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:23:05' and `end` < '2025-02-09 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:23:18] Production.INFO: count ==172 [2025-02-09 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:23:05 - End Time 2025-02-09 06:23:05 [2025-02-09 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435196', 'tblTempUsageDetail_20' ) start [2025-02-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435196', 'tblTempUsageDetail_20' ) end [2025-02-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435196', 'tblTempVendorCDR_20' ) start [2025-02-09 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435196', 'tblTempVendorCDR_20' ) end [2025-02-09 06:23:18] Production.INFO: ProcessCDR(1,14435196,1,1,2) [2025-02-09 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435196', 'tblTempUsageDetail_20' ) start [2025-02-09 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435196', 'tblTempUsageDetail_20' ) end [2025-02-09 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:23:21] Production.INFO: ==27034== Releasing lock... [2025-02-09 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:24:05 [end_date_ymd] => 2025-02-09 06:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:24:05' and `end` < '2025-02-09 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-02-09 06:24:19] Production.INFO: count ==171 [2025-02-09 06:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:24:05 - End Time 2025-02-09 06:24:05 [2025-02-09 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435201', 'tblTempUsageDetail_20' ) start [2025-02-09 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435201', 'tblTempUsageDetail_20' ) end [2025-02-09 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435201', 'tblTempVendorCDR_20' ) start [2025-02-09 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435201', 'tblTempVendorCDR_20' ) end [2025-02-09 06:24:19] Production.INFO: ProcessCDR(1,14435201,1,1,2) [2025-02-09 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435201', 'tblTempUsageDetail_20' ) start [2025-02-09 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435201', 'tblTempUsageDetail_20' ) end [2025-02-09 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:24:22] Production.INFO: ==27104== Releasing lock... [2025-02-09 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:25:05 [end_date_ymd] => 2025-02-09 06:25:05 [RateCDR] => 1 ) [2025-02-09 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:25:05' and `end` < '2025-02-09 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:25:18] Production.INFO: count ==171 [2025-02-09 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:25:05 - End Time 2025-02-09 06:25:05 [2025-02-09 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435206', 'tblTempUsageDetail_20' ) start [2025-02-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435206', 'tblTempUsageDetail_20' ) end [2025-02-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435206', 'tblTempVendorCDR_20' ) start [2025-02-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435206', 'tblTempVendorCDR_20' ) end [2025-02-09 06:25:18] Production.INFO: ProcessCDR(1,14435206,1,1,2) [2025-02-09 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435206', 'tblTempUsageDetail_20' ) start [2025-02-09 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435206', 'tblTempUsageDetail_20' ) end [2025-02-09 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:25:21] Production.INFO: ==27179== Releasing lock... [2025-02-09 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:26:05 [end_date_ymd] => 2025-02-09 06:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:26:05' and `end` < '2025-02-09 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-02-09 06:26:18] Production.INFO: count ==171 [2025-02-09 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:26:05 - End Time 2025-02-09 06:26:05 [2025-02-09 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435211', 'tblTempUsageDetail_20' ) start [2025-02-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435211', 'tblTempUsageDetail_20' ) end [2025-02-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435211', 'tblTempVendorCDR_20' ) start [2025-02-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435211', 'tblTempVendorCDR_20' ) end [2025-02-09 06:26:18] Production.INFO: ProcessCDR(1,14435211,1,1,2) [2025-02-09 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435211', 'tblTempUsageDetail_20' ) start [2025-02-09 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435211', 'tblTempUsageDetail_20' ) end [2025-02-09 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:26:21] Production.INFO: ==27250== Releasing lock... [2025-02-09 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:27:05 [end_date_ymd] => 2025-02-09 06:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:27:05' and `end` < '2025-02-09 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-02-09 06:27:18] Production.INFO: count ==171 [2025-02-09 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:27:05 - End Time 2025-02-09 06:27:05 [2025-02-09 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435216', 'tblTempUsageDetail_20' ) start [2025-02-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435216', 'tblTempUsageDetail_20' ) end [2025-02-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435216', 'tblTempVendorCDR_20' ) start [2025-02-09 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435216', 'tblTempVendorCDR_20' ) end [2025-02-09 06:27:18] Production.INFO: ProcessCDR(1,14435216,1,1,2) [2025-02-09 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435216', 'tblTempUsageDetail_20' ) start [2025-02-09 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435216', 'tblTempUsageDetail_20' ) end [2025-02-09 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:27:21] Production.INFO: ==27324== Releasing lock... [2025-02-09 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:28:04 [end_date_ymd] => 2025-02-09 06:28:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:28:04' and `end` < '2025-02-09 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-02-09 06:28:17] Production.INFO: count ==171 [2025-02-09 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:28:04 - End Time 2025-02-09 06:28:04 [2025-02-09 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435221', 'tblTempUsageDetail_20' ) start [2025-02-09 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435221', 'tblTempUsageDetail_20' ) end [2025-02-09 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435221', 'tblTempVendorCDR_20' ) start [2025-02-09 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435221', 'tblTempVendorCDR_20' ) end [2025-02-09 06:28:17] Production.INFO: ProcessCDR(1,14435221,1,1,2) [2025-02-09 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435221', 'tblTempUsageDetail_20' ) start [2025-02-09 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435221', 'tblTempUsageDetail_20' ) end [2025-02-09 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:28:20] Production.INFO: ==27402== Releasing lock... [2025-02-09 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:29:05 [end_date_ymd] => 2025-02-09 06:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:29:05' and `end` < '2025-02-09 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-02-09 06:29:19] Production.INFO: count ==172 [2025-02-09 06:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:29:05 - End Time 2025-02-09 06:29:05 [2025-02-09 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435225', 'tblTempUsageDetail_20' ) start [2025-02-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435225', 'tblTempUsageDetail_20' ) end [2025-02-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435225', 'tblTempVendorCDR_20' ) start [2025-02-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435225', 'tblTempVendorCDR_20' ) end [2025-02-09 06:29:19] Production.INFO: ProcessCDR(1,14435225,1,1,2) [2025-02-09 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435225', 'tblTempUsageDetail_20' ) start [2025-02-09 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435225', 'tblTempUsageDetail_20' ) end [2025-02-09 06:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:29:23] Production.INFO: ==27475== Releasing lock... [2025-02-09 06:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:29:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:30:06 [end_date_ymd] => 2025-02-09 06:30:06 [RateCDR] => 1 ) [2025-02-09 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:30:06' and `end` < '2025-02-09 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:30:18] Production.INFO: count ==168 [2025-02-09 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:30:06 - End Time 2025-02-09 06:30:06 [2025-02-09 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435231', 'tblTempUsageDetail_20' ) start [2025-02-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435231', 'tblTempUsageDetail_20' ) end [2025-02-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435231', 'tblTempVendorCDR_20' ) start [2025-02-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435231', 'tblTempVendorCDR_20' ) end [2025-02-09 06:30:18] Production.INFO: ProcessCDR(1,14435231,1,1,2) [2025-02-09 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435231', 'tblTempUsageDetail_20' ) start [2025-02-09 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435231', 'tblTempUsageDetail_20' ) end [2025-02-09 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:30:22] Production.INFO: ==27550== Releasing lock... [2025-02-09 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:31:05 [end_date_ymd] => 2025-02-09 06:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:31:05' and `end` < '2025-02-09 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-02-09 06:31:18] Production.INFO: count ==154 [2025-02-09 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:31:05 - End Time 2025-02-09 06:31:05 [2025-02-09 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435237', 'tblTempUsageDetail_20' ) start [2025-02-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435237', 'tblTempUsageDetail_20' ) end [2025-02-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435237', 'tblTempVendorCDR_20' ) start [2025-02-09 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435237', 'tblTempVendorCDR_20' ) end [2025-02-09 06:31:18] Production.INFO: ProcessCDR(1,14435237,1,1,2) [2025-02-09 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435237', 'tblTempUsageDetail_20' ) start [2025-02-09 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435237', 'tblTempUsageDetail_20' ) end [2025-02-09 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:31:21] Production.INFO: ==27625== Releasing lock... [2025-02-09 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:32:05 [end_date_ymd] => 2025-02-09 06:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:32:05' and `end` < '2025-02-09 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-02-09 06:32:18] Production.INFO: count ==155 [2025-02-09 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:32:05 - End Time 2025-02-09 06:32:05 [2025-02-09 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435242', 'tblTempUsageDetail_20' ) start [2025-02-09 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435242', 'tblTempUsageDetail_20' ) end [2025-02-09 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435242', 'tblTempVendorCDR_20' ) start [2025-02-09 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435242', 'tblTempVendorCDR_20' ) end [2025-02-09 06:32:18] Production.INFO: ProcessCDR(1,14435242,1,1,2) [2025-02-09 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435242', 'tblTempUsageDetail_20' ) start [2025-02-09 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435242', 'tblTempUsageDetail_20' ) end [2025-02-09 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:32:22] Production.INFO: ==27697== Releasing lock... [2025-02-09 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:33:05 [end_date_ymd] => 2025-02-09 06:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:33:05' and `end` < '2025-02-09 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-02-09 06:33:18] Production.INFO: count ==155 [2025-02-09 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:33:05 - End Time 2025-02-09 06:33:05 [2025-02-09 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435247', 'tblTempUsageDetail_20' ) start [2025-02-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435247', 'tblTempUsageDetail_20' ) end [2025-02-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435247', 'tblTempVendorCDR_20' ) start [2025-02-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435247', 'tblTempVendorCDR_20' ) end [2025-02-09 06:33:18] Production.INFO: ProcessCDR(1,14435247,1,1,2) [2025-02-09 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435247', 'tblTempUsageDetail_20' ) start [2025-02-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435247', 'tblTempUsageDetail_20' ) end [2025-02-09 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:33:21] Production.INFO: ==27812== Releasing lock... [2025-02-09 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:34:06 [end_date_ymd] => 2025-02-09 06:34:06 [RateCDR] => 1 ) [2025-02-09 06: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-02-09 03:34:06' and `end` < '2025-02-09 06: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-02-09 06:34:18] Production.INFO: count ==157 [2025-02-09 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:34:06 - End Time 2025-02-09 06:34:06 [2025-02-09 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435252', 'tblTempUsageDetail_20' ) start [2025-02-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435252', 'tblTempUsageDetail_20' ) end [2025-02-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435252', 'tblTempVendorCDR_20' ) start [2025-02-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435252', 'tblTempVendorCDR_20' ) end [2025-02-09 06:34:18] Production.INFO: ProcessCDR(1,14435252,1,1,2) [2025-02-09 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435252', 'tblTempUsageDetail_20' ) start [2025-02-09 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435252', 'tblTempUsageDetail_20' ) end [2025-02-09 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:34:22] Production.INFO: ==27885== Releasing lock... [2025-02-09 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:35:05 [end_date_ymd] => 2025-02-09 06:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:35:05' and `end` < '2025-02-09 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-02-09 06:35:18] Production.INFO: count ==159 [2025-02-09 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:35:05 - End Time 2025-02-09 06:35:05 [2025-02-09 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435257', 'tblTempUsageDetail_20' ) start [2025-02-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435257', 'tblTempUsageDetail_20' ) end [2025-02-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435257', 'tblTempVendorCDR_20' ) start [2025-02-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435257', 'tblTempVendorCDR_20' ) end [2025-02-09 06:35:18] Production.INFO: ProcessCDR(1,14435257,1,1,2) [2025-02-09 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435257', 'tblTempUsageDetail_20' ) start [2025-02-09 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435257', 'tblTempUsageDetail_20' ) end [2025-02-09 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:35:21] Production.INFO: ==27959== Releasing lock... [2025-02-09 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:36:05 [end_date_ymd] => 2025-02-09 06:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:36:05' and `end` < '2025-02-09 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-02-09 06:36:18] Production.INFO: count ==158 [2025-02-09 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:36:05 - End Time 2025-02-09 06:36:05 [2025-02-09 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435262', 'tblTempUsageDetail_20' ) start [2025-02-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435262', 'tblTempUsageDetail_20' ) end [2025-02-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435262', 'tblTempVendorCDR_20' ) start [2025-02-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435262', 'tblTempVendorCDR_20' ) end [2025-02-09 06:36:18] Production.INFO: ProcessCDR(1,14435262,1,1,2) [2025-02-09 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435262', 'tblTempUsageDetail_20' ) start [2025-02-09 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435262', 'tblTempUsageDetail_20' ) end [2025-02-09 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:36:22] Production.INFO: ==28029== Releasing lock... [2025-02-09 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:37:05 [end_date_ymd] => 2025-02-09 06:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:37:05' and `end` < '2025-02-09 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-02-09 06:37:18] Production.INFO: count ==158 [2025-02-09 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:37:05 - End Time 2025-02-09 06:37:05 [2025-02-09 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435267', 'tblTempUsageDetail_20' ) start [2025-02-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435267', 'tblTempUsageDetail_20' ) end [2025-02-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435267', 'tblTempVendorCDR_20' ) start [2025-02-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435267', 'tblTempVendorCDR_20' ) end [2025-02-09 06:37:18] Production.INFO: ProcessCDR(1,14435267,1,1,2) [2025-02-09 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435267', 'tblTempUsageDetail_20' ) start [2025-02-09 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435267', 'tblTempUsageDetail_20' ) end [2025-02-09 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:37:21] Production.INFO: ==28100== Releasing lock... [2025-02-09 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:38:06 [end_date_ymd] => 2025-02-09 06:38:06 [RateCDR] => 1 ) [2025-02-09 06: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-02-09 03:38:06' and `end` < '2025-02-09 06: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-02-09 06:38:19] Production.INFO: count ==158 [2025-02-09 06:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:38:06 - End Time 2025-02-09 06:38:06 [2025-02-09 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435272', 'tblTempUsageDetail_20' ) start [2025-02-09 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435272', 'tblTempUsageDetail_20' ) end [2025-02-09 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435272', 'tblTempVendorCDR_20' ) start [2025-02-09 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435272', 'tblTempVendorCDR_20' ) end [2025-02-09 06:38:19] Production.INFO: ProcessCDR(1,14435272,1,1,2) [2025-02-09 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435272', 'tblTempUsageDetail_20' ) start [2025-02-09 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435272', 'tblTempUsageDetail_20' ) end [2025-02-09 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:38:22] Production.INFO: ==28176== Releasing lock... [2025-02-09 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:39:05 [end_date_ymd] => 2025-02-09 06:39:05 [RateCDR] => 1 ) [2025-02-09 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:39:05' and `end` < '2025-02-09 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:39:18] Production.INFO: count ==158 [2025-02-09 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:39:05 - End Time 2025-02-09 06:39:05 [2025-02-09 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435277', 'tblTempUsageDetail_20' ) start [2025-02-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435277', 'tblTempUsageDetail_20' ) end [2025-02-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435277', 'tblTempVendorCDR_20' ) start [2025-02-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435277', 'tblTempVendorCDR_20' ) end [2025-02-09 06:39:18] Production.INFO: ProcessCDR(1,14435277,1,1,2) [2025-02-09 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435277', 'tblTempUsageDetail_20' ) start [2025-02-09 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435277', 'tblTempUsageDetail_20' ) end [2025-02-09 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:39:21] Production.INFO: ==28248== Releasing lock... [2025-02-09 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:40:06 [end_date_ymd] => 2025-02-09 06:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:40:06' and `end` < '2025-02-09 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-02-09 06:40:19] Production.INFO: count ==156 [2025-02-09 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:40:06 - End Time 2025-02-09 06:40:06 [2025-02-09 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435282', 'tblTempUsageDetail_20' ) start [2025-02-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435282', 'tblTempUsageDetail_20' ) end [2025-02-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435282', 'tblTempVendorCDR_20' ) start [2025-02-09 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435282', 'tblTempVendorCDR_20' ) end [2025-02-09 06:40:19] Production.INFO: ProcessCDR(1,14435282,1,1,2) [2025-02-09 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435282', 'tblTempUsageDetail_20' ) start [2025-02-09 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435282', 'tblTempUsageDetail_20' ) end [2025-02-09 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:40:23] Production.INFO: ==28321== Releasing lock... [2025-02-09 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:41:04 [end_date_ymd] => 2025-02-09 06:41:04 [RateCDR] => 1 ) [2025-02-09 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:41:04' and `end` < '2025-02-09 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:41:19] Production.INFO: count ==156 [2025-02-09 06:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:41:04 - End Time 2025-02-09 06:41:04 [2025-02-09 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435288', 'tblTempUsageDetail_20' ) start [2025-02-09 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435288', 'tblTempUsageDetail_20' ) end [2025-02-09 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435288', 'tblTempVendorCDR_20' ) start [2025-02-09 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435288', 'tblTempVendorCDR_20' ) end [2025-02-09 06:41:19] Production.INFO: ProcessCDR(1,14435288,1,1,2) [2025-02-09 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435288', 'tblTempUsageDetail_20' ) start [2025-02-09 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435288', 'tblTempUsageDetail_20' ) end [2025-02-09 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:41:22] Production.INFO: ==28394== Releasing lock... [2025-02-09 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:42:05 [end_date_ymd] => 2025-02-09 06:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:42:05' and `end` < '2025-02-09 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-02-09 06:42:18] Production.INFO: count ==156 [2025-02-09 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:42:05 - End Time 2025-02-09 06:42:05 [2025-02-09 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435293', 'tblTempUsageDetail_20' ) start [2025-02-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435293', 'tblTempUsageDetail_20' ) end [2025-02-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435293', 'tblTempVendorCDR_20' ) start [2025-02-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435293', 'tblTempVendorCDR_20' ) end [2025-02-09 06:42:18] Production.INFO: ProcessCDR(1,14435293,1,1,2) [2025-02-09 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435293', 'tblTempUsageDetail_20' ) start [2025-02-09 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435293', 'tblTempUsageDetail_20' ) end [2025-02-09 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:42:22] Production.INFO: ==28467== Releasing lock... [2025-02-09 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:43:05 [end_date_ymd] => 2025-02-09 06:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:43:05' and `end` < '2025-02-09 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-02-09 06:43:20] Production.INFO: count ==159 [2025-02-09 06:43:20] Production.ERROR: pbx CDR StartTime 2025-02-09 03:43:05 - End Time 2025-02-09 06:43:05 [2025-02-09 06:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435298', 'tblTempUsageDetail_20' ) start [2025-02-09 06:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435298', 'tblTempUsageDetail_20' ) end [2025-02-09 06:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435298', 'tblTempVendorCDR_20' ) start [2025-02-09 06:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435298', 'tblTempVendorCDR_20' ) end [2025-02-09 06:43:20] Production.INFO: ProcessCDR(1,14435298,1,1,2) [2025-02-09 06:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435298', 'tblTempUsageDetail_20' ) start [2025-02-09 06:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435298', 'tblTempUsageDetail_20' ) end [2025-02-09 06:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:43:23] Production.INFO: ==28537== Releasing lock... [2025-02-09 06:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:43:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:44:05 [end_date_ymd] => 2025-02-09 06:44:05 [RateCDR] => 1 ) [2025-02-09 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:44:05' and `end` < '2025-02-09 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:44:18] Production.INFO: count ==159 [2025-02-09 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:44:05 - End Time 2025-02-09 06:44:05 [2025-02-09 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435303', 'tblTempUsageDetail_20' ) start [2025-02-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435303', 'tblTempUsageDetail_20' ) end [2025-02-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435303', 'tblTempVendorCDR_20' ) start [2025-02-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435303', 'tblTempVendorCDR_20' ) end [2025-02-09 06:44:18] Production.INFO: ProcessCDR(1,14435303,1,1,2) [2025-02-09 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435303', 'tblTempUsageDetail_20' ) start [2025-02-09 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435303', 'tblTempUsageDetail_20' ) end [2025-02-09 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:44:21] Production.INFO: ==28612== Releasing lock... [2025-02-09 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:45:05 [end_date_ymd] => 2025-02-09 06:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:45:05' and `end` < '2025-02-09 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-02-09 06:45:18] Production.INFO: count ==162 [2025-02-09 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:45:05 - End Time 2025-02-09 06:45:05 [2025-02-09 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435308', 'tblTempUsageDetail_20' ) start [2025-02-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435308', 'tblTempUsageDetail_20' ) end [2025-02-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435308', 'tblTempVendorCDR_20' ) start [2025-02-09 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435308', 'tblTempVendorCDR_20' ) end [2025-02-09 06:45:18] Production.INFO: ProcessCDR(1,14435308,1,1,2) [2025-02-09 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435308', 'tblTempUsageDetail_20' ) start [2025-02-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435308', 'tblTempUsageDetail_20' ) end [2025-02-09 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:45:21] Production.INFO: ==28684== Releasing lock... [2025-02-09 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:46:05 [end_date_ymd] => 2025-02-09 06:46:05 [RateCDR] => 1 ) [2025-02-09 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:46:05' and `end` < '2025-02-09 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:46:17] Production.INFO: count ==159 [2025-02-09 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:46:05 - End Time 2025-02-09 06:46:05 [2025-02-09 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435313', 'tblTempUsageDetail_20' ) start [2025-02-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435313', 'tblTempUsageDetail_20' ) end [2025-02-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435313', 'tblTempVendorCDR_20' ) start [2025-02-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435313', 'tblTempVendorCDR_20' ) end [2025-02-09 06:46:18] Production.INFO: ProcessCDR(1,14435313,1,1,2) [2025-02-09 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435313', 'tblTempUsageDetail_20' ) start [2025-02-09 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435313', 'tblTempUsageDetail_20' ) end [2025-02-09 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:46:21] Production.INFO: ==28759== Releasing lock... [2025-02-09 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:47:05 [end_date_ymd] => 2025-02-09 06:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:47:05' and `end` < '2025-02-09 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-02-09 06:47:17] Production.INFO: count ==159 [2025-02-09 06:47:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:47:05 - End Time 2025-02-09 06:47:05 [2025-02-09 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435318', 'tblTempUsageDetail_20' ) start [2025-02-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435318', 'tblTempUsageDetail_20' ) end [2025-02-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435318', 'tblTempVendorCDR_20' ) start [2025-02-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435318', 'tblTempVendorCDR_20' ) end [2025-02-09 06:47:17] Production.INFO: ProcessCDR(1,14435318,1,1,2) [2025-02-09 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435318', 'tblTempUsageDetail_20' ) start [2025-02-09 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435318', 'tblTempUsageDetail_20' ) end [2025-02-09 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:47:21] Production.INFO: ==28855== Releasing lock... [2025-02-09 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:48:05 [end_date_ymd] => 2025-02-09 06:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:48:05' and `end` < '2025-02-09 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-02-09 06:48:19] Production.INFO: count ==162 [2025-02-09 06:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:48:05 - End Time 2025-02-09 06:48:05 [2025-02-09 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435323', 'tblTempUsageDetail_20' ) start [2025-02-09 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435323', 'tblTempUsageDetail_20' ) end [2025-02-09 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435323', 'tblTempVendorCDR_20' ) start [2025-02-09 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435323', 'tblTempVendorCDR_20' ) end [2025-02-09 06:48:19] Production.INFO: ProcessCDR(1,14435323,1,1,2) [2025-02-09 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435323', 'tblTempUsageDetail_20' ) start [2025-02-09 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435323', 'tblTempUsageDetail_20' ) end [2025-02-09 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:48:22] Production.INFO: ==28987== Releasing lock... [2025-02-09 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:49:05 [end_date_ymd] => 2025-02-09 06:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:49:05' and `end` < '2025-02-09 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-02-09 06:49:19] Production.INFO: count ==162 [2025-02-09 06:49:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:49:05 - End Time 2025-02-09 06:49:05 [2025-02-09 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435328', 'tblTempUsageDetail_20' ) start [2025-02-09 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435328', 'tblTempUsageDetail_20' ) end [2025-02-09 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435328', 'tblTempVendorCDR_20' ) start [2025-02-09 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435328', 'tblTempVendorCDR_20' ) end [2025-02-09 06:49:19] Production.INFO: ProcessCDR(1,14435328,1,1,2) [2025-02-09 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435328', 'tblTempUsageDetail_20' ) start [2025-02-09 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435328', 'tblTempUsageDetail_20' ) end [2025-02-09 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:49:22] Production.INFO: ==29074== Releasing lock... [2025-02-09 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:50:05 [end_date_ymd] => 2025-02-09 06:50:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:50:05' and `end` < '2025-02-09 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:50:19] Production.INFO: count ==159 [2025-02-09 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:50:05 - End Time 2025-02-09 06:50:05 [2025-02-09 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435333', 'tblTempUsageDetail_20' ) start [2025-02-09 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435333', 'tblTempUsageDetail_20' ) end [2025-02-09 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435333', 'tblTempVendorCDR_20' ) start [2025-02-09 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435333', 'tblTempVendorCDR_20' ) end [2025-02-09 06:50:19] Production.INFO: ProcessCDR(1,14435333,1,1,2) [2025-02-09 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435333', 'tblTempUsageDetail_20' ) start [2025-02-09 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435333', 'tblTempUsageDetail_20' ) end [2025-02-09 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:50:22] Production.INFO: ==29162== Releasing lock... [2025-02-09 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:51:05 [end_date_ymd] => 2025-02-09 06:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:51:05' and `end` < '2025-02-09 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-02-09 06:51:18] Production.INFO: count ==147 [2025-02-09 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:51:05 - End Time 2025-02-09 06:51:05 [2025-02-09 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435339', 'tblTempUsageDetail_20' ) start [2025-02-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435339', 'tblTempUsageDetail_20' ) end [2025-02-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435339', 'tblTempVendorCDR_20' ) start [2025-02-09 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435339', 'tblTempVendorCDR_20' ) end [2025-02-09 06:51:18] Production.INFO: ProcessCDR(1,14435339,1,1,2) [2025-02-09 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435339', 'tblTempUsageDetail_20' ) start [2025-02-09 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435339', 'tblTempUsageDetail_20' ) end [2025-02-09 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:51:21] Production.INFO: ==29246== Releasing lock... [2025-02-09 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:52:05 [end_date_ymd] => 2025-02-09 06:52:05 [RateCDR] => 1 ) [2025-02-09 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:52:05' and `end` < '2025-02-09 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:52:19] Production.INFO: count ==147 [2025-02-09 06:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:52:05 - End Time 2025-02-09 06:52:05 [2025-02-09 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435344', 'tblTempUsageDetail_20' ) start [2025-02-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435344', 'tblTempUsageDetail_20' ) end [2025-02-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435344', 'tblTempVendorCDR_20' ) start [2025-02-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435344', 'tblTempVendorCDR_20' ) end [2025-02-09 06:52:19] Production.INFO: ProcessCDR(1,14435344,1,1,2) [2025-02-09 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435344', 'tblTempUsageDetail_20' ) start [2025-02-09 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435344', 'tblTempUsageDetail_20' ) end [2025-02-09 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:52:22] Production.INFO: ==29332== Releasing lock... [2025-02-09 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:53:05 [end_date_ymd] => 2025-02-09 06:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:53:05' and `end` < '2025-02-09 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-02-09 06:53:19] Production.INFO: count ==148 [2025-02-09 06:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:53:05 - End Time 2025-02-09 06:53:05 [2025-02-09 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435349', 'tblTempUsageDetail_20' ) start [2025-02-09 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435349', 'tblTempUsageDetail_20' ) end [2025-02-09 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435349', 'tblTempVendorCDR_20' ) start [2025-02-09 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435349', 'tblTempVendorCDR_20' ) end [2025-02-09 06:53:19] Production.INFO: ProcessCDR(1,14435349,1,1,2) [2025-02-09 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435349', 'tblTempUsageDetail_20' ) start [2025-02-09 06:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435349', 'tblTempUsageDetail_20' ) end [2025-02-09 06:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:53:24] Production.INFO: ==29415== Releasing lock... [2025-02-09 06:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:53:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:54:05 [end_date_ymd] => 2025-02-09 06:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:54:05' and `end` < '2025-02-09 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-02-09 06:54:18] Production.INFO: count ==148 [2025-02-09 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:54:05 - End Time 2025-02-09 06:54:05 [2025-02-09 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435354', 'tblTempUsageDetail_20' ) start [2025-02-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435354', 'tblTempUsageDetail_20' ) end [2025-02-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435354', 'tblTempVendorCDR_20' ) start [2025-02-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435354', 'tblTempVendorCDR_20' ) end [2025-02-09 06:54:18] Production.INFO: ProcessCDR(1,14435354,1,1,2) [2025-02-09 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435354', 'tblTempUsageDetail_20' ) start [2025-02-09 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435354', 'tblTempUsageDetail_20' ) end [2025-02-09 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:54:22] Production.INFO: ==29503== Releasing lock... [2025-02-09 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:55:05 [end_date_ymd] => 2025-02-09 06:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:55:05' and `end` < '2025-02-09 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-02-09 06:55:18] Production.INFO: count ==148 [2025-02-09 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 03:55:05 - End Time 2025-02-09 06:55:05 [2025-02-09 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435359', 'tblTempUsageDetail_20' ) start [2025-02-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435359', 'tblTempUsageDetail_20' ) end [2025-02-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435359', 'tblTempVendorCDR_20' ) start [2025-02-09 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435359', 'tblTempVendorCDR_20' ) end [2025-02-09 06:55:18] Production.INFO: ProcessCDR(1,14435359,1,1,2) [2025-02-09 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435359', 'tblTempUsageDetail_20' ) start [2025-02-09 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435359', 'tblTempUsageDetail_20' ) end [2025-02-09 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:55:21] Production.INFO: ==29586== Releasing lock... [2025-02-09 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:56:04 [end_date_ymd] => 2025-02-09 06:56:04 [RateCDR] => 1 ) [2025-02-09 06: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-02-09 03:56:04' and `end` < '2025-02-09 06: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-02-09 06:56:16] Production.INFO: count ==148 [2025-02-09 06:56:16] Production.ERROR: pbx CDR StartTime 2025-02-09 03:56:04 - End Time 2025-02-09 06:56:04 [2025-02-09 06:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435360', 'tblTempUsageDetail_20' ) start [2025-02-09 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435360', 'tblTempUsageDetail_20' ) end [2025-02-09 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435360', 'tblTempVendorCDR_20' ) start [2025-02-09 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435360', 'tblTempVendorCDR_20' ) end [2025-02-09 06:56:16] Production.INFO: ProcessCDR(1,14435360,1,1,2) [2025-02-09 06:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435360', 'tblTempUsageDetail_20' ) start [2025-02-09 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435360', 'tblTempUsageDetail_20' ) end [2025-02-09 06:56:19] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:56:19] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:56:19] Production.INFO: ==29672== Releasing lock... [2025-02-09 06:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:56:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:57:04 [end_date_ymd] => 2025-02-09 06:57:04 [RateCDR] => 1 ) [2025-02-09 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 03:57:04' and `end` < '2025-02-09 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 06:57:17] Production.INFO: count ==148 [2025-02-09 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:57:04 - End Time 2025-02-09 06:57:04 [2025-02-09 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435368', 'tblTempUsageDetail_20' ) start [2025-02-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435368', 'tblTempUsageDetail_20' ) end [2025-02-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435368', 'tblTempVendorCDR_20' ) start [2025-02-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435368', 'tblTempVendorCDR_20' ) end [2025-02-09 06:57:17] Production.INFO: ProcessCDR(1,14435368,1,1,2) [2025-02-09 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435368', 'tblTempUsageDetail_20' ) start [2025-02-09 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435368', 'tblTempUsageDetail_20' ) end [2025-02-09 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:57:20] Production.INFO: ==29758== Releasing lock... [2025-02-09 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:58:05 [end_date_ymd] => 2025-02-09 06:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:58:05' and `end` < '2025-02-09 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-02-09 06:58:19] Production.INFO: count ==148 [2025-02-09 06:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 03:58:05 - End Time 2025-02-09 06:58:05 [2025-02-09 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435374', 'tblTempUsageDetail_20' ) start [2025-02-09 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435374', 'tblTempUsageDetail_20' ) end [2025-02-09 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435374', 'tblTempVendorCDR_20' ) start [2025-02-09 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435374', 'tblTempVendorCDR_20' ) end [2025-02-09 06:58:19] Production.INFO: ProcessCDR(1,14435374,1,1,2) [2025-02-09 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435374', 'tblTempUsageDetail_20' ) start [2025-02-09 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435374', 'tblTempUsageDetail_20' ) end [2025-02-09 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:58:22] Production.INFO: ==29843== Releasing lock... [2025-02-09 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 03:59:05 [end_date_ymd] => 2025-02-09 06:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 03:59:05' and `end` < '2025-02-09 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-02-09 06:59:17] Production.INFO: count ==148 [2025-02-09 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-09 03:59:05 - End Time 2025-02-09 06:59:05 [2025-02-09 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435379', 'tblTempUsageDetail_20' ) start [2025-02-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435379', 'tblTempUsageDetail_20' ) end [2025-02-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435379', 'tblTempVendorCDR_20' ) start [2025-02-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435379', 'tblTempVendorCDR_20' ) end [2025-02-09 06:59:17] Production.INFO: ProcessCDR(1,14435379,1,1,2) [2025-02-09 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435379', 'tblTempUsageDetail_20' ) start [2025-02-09 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435379', 'tblTempUsageDetail_20' ) end [2025-02-09 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 06:59:20] Production.INFO: ==29925== Releasing lock... [2025-02-09 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:00:06 [end_date_ymd] => 2025-02-09 07:00:06 [RateCDR] => 1 ) [2025-02-09 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:00:06' and `end` < '2025-02-09 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:00:20] Production.INFO: count ==148 [2025-02-09 07:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 04:00:06 - End Time 2025-02-09 07:00:06 [2025-02-09 07:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435385', 'tblTempUsageDetail_20' ) start [2025-02-09 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435385', 'tblTempUsageDetail_20' ) end [2025-02-09 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435385', 'tblTempVendorCDR_20' ) start [2025-02-09 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435385', 'tblTempVendorCDR_20' ) end [2025-02-09 07:00:20] Production.INFO: ProcessCDR(1,14435385,1,1,2) [2025-02-09 07:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435385', 'tblTempUsageDetail_20' ) start [2025-02-09 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435385', 'tblTempUsageDetail_20' ) end [2025-02-09 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:00:23] Production.INFO: ==30022== Releasing lock... [2025-02-09 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:01:05 [end_date_ymd] => 2025-02-09 07:01:05 [RateCDR] => 1 ) [2025-02-09 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:01:05' and `end` < '2025-02-09 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:01:29] Production.INFO: count ==148 [2025-02-09 07:01:29] Production.ERROR: pbx CDR StartTime 2025-02-09 04:01:05 - End Time 2025-02-09 07:01:05 [2025-02-09 07:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435390', 'tblTempUsageDetail_20' ) start [2025-02-09 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435390', 'tblTempUsageDetail_20' ) end [2025-02-09 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435390', 'tblTempVendorCDR_20' ) start [2025-02-09 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435390', 'tblTempVendorCDR_20' ) end [2025-02-09 07:01:29] Production.INFO: ProcessCDR(1,14435390,1,1,2) [2025-02-09 07:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435390', 'tblTempUsageDetail_20' ) start [2025-02-09 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435390', 'tblTempUsageDetail_20' ) end [2025-02-09 07:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:01:32] Production.INFO: ==30200== Releasing lock... [2025-02-09 07:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:01:32] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:02:05 [end_date_ymd] => 2025-02-09 07:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:02:05' and `end` < '2025-02-09 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-02-09 07:02:20] Production.INFO: count ==148 [2025-02-09 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-09 04:02:05 - End Time 2025-02-09 07:02:05 [2025-02-09 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435395', 'tblTempUsageDetail_20' ) start [2025-02-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435395', 'tblTempUsageDetail_20' ) end [2025-02-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435395', 'tblTempVendorCDR_20' ) start [2025-02-09 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435395', 'tblTempVendorCDR_20' ) end [2025-02-09 07:02:20] Production.INFO: ProcessCDR(1,14435395,1,1,2) [2025-02-09 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435395', 'tblTempUsageDetail_20' ) start [2025-02-09 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435395', 'tblTempUsageDetail_20' ) end [2025-02-09 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:02:24] Production.INFO: ==30287== Releasing lock... [2025-02-09 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:02:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:03:05 [end_date_ymd] => 2025-02-09 07:03:05 [RateCDR] => 1 ) [2025-02-09 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:03:05' and `end` < '2025-02-09 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:03:19] Production.INFO: count ==148 [2025-02-09 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:03:05 - End Time 2025-02-09 07:03:05 [2025-02-09 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435400', 'tblTempUsageDetail_20' ) start [2025-02-09 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435400', 'tblTempUsageDetail_20' ) end [2025-02-09 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435400', 'tblTempVendorCDR_20' ) start [2025-02-09 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435400', 'tblTempVendorCDR_20' ) end [2025-02-09 07:03:19] Production.INFO: ProcessCDR(1,14435400,1,1,2) [2025-02-09 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435400', 'tblTempUsageDetail_20' ) start [2025-02-09 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435400', 'tblTempUsageDetail_20' ) end [2025-02-09 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:03:22] Production.INFO: ==30372== Releasing lock... [2025-02-09 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:04:05 [end_date_ymd] => 2025-02-09 07:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:04:05' and `end` < '2025-02-09 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-02-09 07:04:19] Production.INFO: count ==147 [2025-02-09 07:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:04:05 - End Time 2025-02-09 07:04:05 [2025-02-09 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435405', 'tblTempUsageDetail_20' ) start [2025-02-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435405', 'tblTempUsageDetail_20' ) end [2025-02-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435405', 'tblTempVendorCDR_20' ) start [2025-02-09 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435405', 'tblTempVendorCDR_20' ) end [2025-02-09 07:04:19] Production.INFO: ProcessCDR(1,14435405,1,1,2) [2025-02-09 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435405', 'tblTempUsageDetail_20' ) start [2025-02-09 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435405', 'tblTempUsageDetail_20' ) end [2025-02-09 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:04:22] Production.INFO: ==30496== Releasing lock... [2025-02-09 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:05:05 [end_date_ymd] => 2025-02-09 07:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:05:05' and `end` < '2025-02-09 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-02-09 07:05:18] Production.INFO: count ==145 [2025-02-09 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:05:05 - End Time 2025-02-09 07:05:05 [2025-02-09 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435410', 'tblTempUsageDetail_20' ) start [2025-02-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435410', 'tblTempUsageDetail_20' ) end [2025-02-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435410', 'tblTempVendorCDR_20' ) start [2025-02-09 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435410', 'tblTempVendorCDR_20' ) end [2025-02-09 07:05:18] Production.INFO: ProcessCDR(1,14435410,1,1,2) [2025-02-09 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435410', 'tblTempUsageDetail_20' ) start [2025-02-09 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435410', 'tblTempUsageDetail_20' ) end [2025-02-09 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:05:21] Production.INFO: ==30661== Releasing lock... [2025-02-09 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:06:06 [end_date_ymd] => 2025-02-09 07:06:06 [RateCDR] => 1 ) [2025-02-09 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:06:06' and `end` < '2025-02-09 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:06:22] Production.INFO: count ==148 [2025-02-09 07:06:22] Production.ERROR: pbx CDR StartTime 2025-02-09 04:06:06 - End Time 2025-02-09 07:06:06 [2025-02-09 07:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435415', 'tblTempUsageDetail_20' ) start [2025-02-09 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435415', 'tblTempUsageDetail_20' ) end [2025-02-09 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435415', 'tblTempVendorCDR_20' ) start [2025-02-09 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435415', 'tblTempVendorCDR_20' ) end [2025-02-09 07:06:22] Production.INFO: ProcessCDR(1,14435415,1,1,2) [2025-02-09 07:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435415', 'tblTempUsageDetail_20' ) start [2025-02-09 07:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435415', 'tblTempUsageDetail_20' ) end [2025-02-09 07:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:06:25] Production.INFO: ==30748== Releasing lock... [2025-02-09 07:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:06:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:07:04 [end_date_ymd] => 2025-02-09 07:07:04 [RateCDR] => 1 ) [2025-02-09 07:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:07:04' and `end` < '2025-02-09 07:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:07:19] Production.INFO: count ==148 [2025-02-09 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:07:04 - End Time 2025-02-09 07:07:04 [2025-02-09 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435420', 'tblTempUsageDetail_20' ) start [2025-02-09 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435420', 'tblTempUsageDetail_20' ) end [2025-02-09 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435420', 'tblTempVendorCDR_20' ) start [2025-02-09 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435420', 'tblTempVendorCDR_20' ) end [2025-02-09 07:07:19] Production.INFO: ProcessCDR(1,14435420,1,1,2) [2025-02-09 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435420', 'tblTempUsageDetail_20' ) start [2025-02-09 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435420', 'tblTempUsageDetail_20' ) end [2025-02-09 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:07:22] Production.INFO: ==30836== Releasing lock... [2025-02-09 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:08:05 [end_date_ymd] => 2025-02-09 07:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:08:05' and `end` < '2025-02-09 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-02-09 07:08:20] Production.INFO: count ==148 [2025-02-09 07:08:20] Production.ERROR: pbx CDR StartTime 2025-02-09 04:08:05 - End Time 2025-02-09 07:08:05 [2025-02-09 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435425', 'tblTempUsageDetail_20' ) start [2025-02-09 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435425', 'tblTempUsageDetail_20' ) end [2025-02-09 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435425', 'tblTempVendorCDR_20' ) start [2025-02-09 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435425', 'tblTempVendorCDR_20' ) end [2025-02-09 07:08:20] Production.INFO: ProcessCDR(1,14435425,1,1,2) [2025-02-09 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435425', 'tblTempUsageDetail_20' ) start [2025-02-09 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435425', 'tblTempUsageDetail_20' ) end [2025-02-09 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:08:23] Production.INFO: ==31003== Releasing lock... [2025-02-09 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:08:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:09:04 [end_date_ymd] => 2025-02-09 07:09:04 [RateCDR] => 1 ) [2025-02-09 07:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:09:04' and `end` < '2025-02-09 07:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:09:18] Production.INFO: count ==148 [2025-02-09 07:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:09:04 - End Time 2025-02-09 07:09:04 [2025-02-09 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435430', 'tblTempUsageDetail_20' ) start [2025-02-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435430', 'tblTempUsageDetail_20' ) end [2025-02-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435430', 'tblTempVendorCDR_20' ) start [2025-02-09 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435430', 'tblTempVendorCDR_20' ) end [2025-02-09 07:09:18] Production.INFO: ProcessCDR(1,14435430,1,1,2) [2025-02-09 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435430', 'tblTempUsageDetail_20' ) start [2025-02-09 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435430', 'tblTempUsageDetail_20' ) end [2025-02-09 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:09:21] Production.INFO: ==31091== Releasing lock... [2025-02-09 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:10:06 [end_date_ymd] => 2025-02-09 07:10:06 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:10:06' and `end` < '2025-02-09 07: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-02-09 07:10:20] Production.INFO: count ==150 [2025-02-09 07:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 04:10:06 - End Time 2025-02-09 07:10:06 [2025-02-09 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435436', 'tblTempUsageDetail_20' ) start [2025-02-09 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435436', 'tblTempUsageDetail_20' ) end [2025-02-09 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435436', 'tblTempVendorCDR_20' ) start [2025-02-09 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435436', 'tblTempVendorCDR_20' ) end [2025-02-09 07:10:20] Production.INFO: ProcessCDR(1,14435436,1,1,2) [2025-02-09 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435436', 'tblTempUsageDetail_20' ) start [2025-02-09 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435436', 'tblTempUsageDetail_20' ) end [2025-02-09 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:10:23] Production.INFO: ==31176== Releasing lock... [2025-02-09 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:11:05 [end_date_ymd] => 2025-02-09 07:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:11:05' and `end` < '2025-02-09 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-02-09 07:11:19] Production.INFO: count ==153 [2025-02-09 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:11:05 - End Time 2025-02-09 07:11:05 [2025-02-09 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435441', 'tblTempUsageDetail_20' ) start [2025-02-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435441', 'tblTempUsageDetail_20' ) end [2025-02-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435441', 'tblTempVendorCDR_20' ) start [2025-02-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435441', 'tblTempVendorCDR_20' ) end [2025-02-09 07:11:19] Production.INFO: ProcessCDR(1,14435441,1,1,2) [2025-02-09 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435441', 'tblTempUsageDetail_20' ) start [2025-02-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435441', 'tblTempUsageDetail_20' ) end [2025-02-09 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:11:22] Production.INFO: ==31266== Releasing lock... [2025-02-09 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:12:05 [end_date_ymd] => 2025-02-09 07:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:12:05' and `end` < '2025-02-09 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-02-09 07:12:19] Production.INFO: count ==153 [2025-02-09 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:12:05 - End Time 2025-02-09 07:12:05 [2025-02-09 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435446', 'tblTempUsageDetail_20' ) start [2025-02-09 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435446', 'tblTempUsageDetail_20' ) end [2025-02-09 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435446', 'tblTempVendorCDR_20' ) start [2025-02-09 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435446', 'tblTempVendorCDR_20' ) end [2025-02-09 07:12:19] Production.INFO: ProcessCDR(1,14435446,1,1,2) [2025-02-09 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435446', 'tblTempUsageDetail_20' ) start [2025-02-09 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435446', 'tblTempUsageDetail_20' ) end [2025-02-09 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:12:22] Production.INFO: ==31430== Releasing lock... [2025-02-09 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:13:06 [end_date_ymd] => 2025-02-09 07:13:06 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:13:06' and `end` < '2025-02-09 07: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-02-09 07:13:21] Production.INFO: count ==153 [2025-02-09 07:13:21] Production.ERROR: pbx CDR StartTime 2025-02-09 04:13:06 - End Time 2025-02-09 07:13:06 [2025-02-09 07:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435451', 'tblTempUsageDetail_20' ) start [2025-02-09 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435451', 'tblTempUsageDetail_20' ) end [2025-02-09 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435451', 'tblTempVendorCDR_20' ) start [2025-02-09 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435451', 'tblTempVendorCDR_20' ) end [2025-02-09 07:13:21] Production.INFO: ProcessCDR(1,14435451,1,1,2) [2025-02-09 07:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435451', 'tblTempUsageDetail_20' ) start [2025-02-09 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435451', 'tblTempUsageDetail_20' ) end [2025-02-09 07:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:13:24] Production.INFO: ==31518== Releasing lock... [2025-02-09 07:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:13:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:14:04 [end_date_ymd] => 2025-02-09 07:14:04 [RateCDR] => 1 ) [2025-02-09 07:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:14:04' and `end` < '2025-02-09 07:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:14:19] Production.INFO: count ==153 [2025-02-09 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:14:04 - End Time 2025-02-09 07:14:04 [2025-02-09 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435456', 'tblTempUsageDetail_20' ) start [2025-02-09 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435456', 'tblTempUsageDetail_20' ) end [2025-02-09 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435456', 'tblTempVendorCDR_20' ) start [2025-02-09 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435456', 'tblTempVendorCDR_20' ) end [2025-02-09 07:14:19] Production.INFO: ProcessCDR(1,14435456,1,1,2) [2025-02-09 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435456', 'tblTempUsageDetail_20' ) start [2025-02-09 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435456', 'tblTempUsageDetail_20' ) end [2025-02-09 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:14:22] Production.INFO: ==31607== Releasing lock... [2025-02-09 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:15:06 [end_date_ymd] => 2025-02-09 07:15:06 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:15:06' and `end` < '2025-02-09 07: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-02-09 07:15:19] Production.INFO: count ==153 [2025-02-09 07:15:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:15:06 - End Time 2025-02-09 07:15:06 [2025-02-09 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435461', 'tblTempUsageDetail_20' ) start [2025-02-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435461', 'tblTempUsageDetail_20' ) end [2025-02-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435461', 'tblTempVendorCDR_20' ) start [2025-02-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435461', 'tblTempVendorCDR_20' ) end [2025-02-09 07:15:19] Production.INFO: ProcessCDR(1,14435461,1,1,2) [2025-02-09 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435461', 'tblTempUsageDetail_20' ) start [2025-02-09 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435461', 'tblTempUsageDetail_20' ) end [2025-02-09 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:15:22] Production.INFO: ==31777== Releasing lock... [2025-02-09 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:16:05 [end_date_ymd] => 2025-02-09 07:16:05 [RateCDR] => 1 ) [2025-02-09 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:16:05' and `end` < '2025-02-09 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:16:19] Production.INFO: count ==153 [2025-02-09 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:16:05 - End Time 2025-02-09 07:16:05 [2025-02-09 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435466', 'tblTempUsageDetail_20' ) start [2025-02-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435466', 'tblTempUsageDetail_20' ) end [2025-02-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435466', 'tblTempVendorCDR_20' ) start [2025-02-09 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435466', 'tblTempVendorCDR_20' ) end [2025-02-09 07:16:19] Production.INFO: ProcessCDR(1,14435466,1,1,2) [2025-02-09 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435466', 'tblTempUsageDetail_20' ) start [2025-02-09 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435466', 'tblTempUsageDetail_20' ) end [2025-02-09 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:16:22] Production.INFO: ==31865== Releasing lock... [2025-02-09 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:17:05 [end_date_ymd] => 2025-02-09 07:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:17:05' and `end` < '2025-02-09 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-02-09 07:17:19] Production.INFO: count ==153 [2025-02-09 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:17:05 - End Time 2025-02-09 07:17:05 [2025-02-09 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435471', 'tblTempUsageDetail_20' ) start [2025-02-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435471', 'tblTempUsageDetail_20' ) end [2025-02-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435471', 'tblTempVendorCDR_20' ) start [2025-02-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435471', 'tblTempVendorCDR_20' ) end [2025-02-09 07:17:19] Production.INFO: ProcessCDR(1,14435471,1,1,2) [2025-02-09 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435471', 'tblTempUsageDetail_20' ) start [2025-02-09 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435471', 'tblTempUsageDetail_20' ) end [2025-02-09 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:17:23] Production.INFO: ==31954== Releasing lock... [2025-02-09 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:18:05 [end_date_ymd] => 2025-02-09 07:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:18:05' and `end` < '2025-02-09 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-02-09 07:18:18] Production.INFO: count ==153 [2025-02-09 07:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:18:05 - End Time 2025-02-09 07:18:05 [2025-02-09 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435476', 'tblTempUsageDetail_20' ) start [2025-02-09 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435476', 'tblTempUsageDetail_20' ) end [2025-02-09 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435476', 'tblTempVendorCDR_20' ) start [2025-02-09 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435476', 'tblTempVendorCDR_20' ) end [2025-02-09 07:18:18] Production.INFO: ProcessCDR(1,14435476,1,1,2) [2025-02-09 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435476', 'tblTempUsageDetail_20' ) start [2025-02-09 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435476', 'tblTempUsageDetail_20' ) end [2025-02-09 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:18:21] Production.INFO: ==32041== Releasing lock... [2025-02-09 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:19:05 [end_date_ymd] => 2025-02-09 07:19:05 [RateCDR] => 1 ) [2025-02-09 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:19:05' and `end` < '2025-02-09 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:19:21] Production.INFO: count ==154 [2025-02-09 07:19:21] Production.ERROR: pbx CDR StartTime 2025-02-09 04:19:05 - End Time 2025-02-09 07:19:05 [2025-02-09 07:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435481', 'tblTempUsageDetail_20' ) start [2025-02-09 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435481', 'tblTempUsageDetail_20' ) end [2025-02-09 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435481', 'tblTempVendorCDR_20' ) start [2025-02-09 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435481', 'tblTempVendorCDR_20' ) end [2025-02-09 07:19:21] Production.INFO: ProcessCDR(1,14435481,1,1,2) [2025-02-09 07:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435481', 'tblTempUsageDetail_20' ) start [2025-02-09 07:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435481', 'tblTempUsageDetail_20' ) end [2025-02-09 07:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:19:25] Production.INFO: ==32170== Releasing lock... [2025-02-09 07:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:19:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:20:06 [end_date_ymd] => 2025-02-09 07:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:20:06' and `end` < '2025-02-09 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-02-09 07:20:18] Production.INFO: count ==154 [2025-02-09 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:20:06 - End Time 2025-02-09 07:20:06 [2025-02-09 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435486', 'tblTempUsageDetail_20' ) start [2025-02-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435486', 'tblTempUsageDetail_20' ) end [2025-02-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435486', 'tblTempVendorCDR_20' ) start [2025-02-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435486', 'tblTempVendorCDR_20' ) end [2025-02-09 07:20:18] Production.INFO: ProcessCDR(1,14435486,1,1,2) [2025-02-09 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435486', 'tblTempUsageDetail_20' ) start [2025-02-09 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435486', 'tblTempUsageDetail_20' ) end [2025-02-09 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:20:22] Production.INFO: ==32262== Releasing lock... [2025-02-09 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:21:04 [end_date_ymd] => 2025-02-09 07:21:04 [RateCDR] => 1 ) [2025-02-09 07:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:21:04' and `end` < '2025-02-09 07:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:21:17] Production.INFO: count ==154 [2025-02-09 07:21:17] Production.ERROR: pbx CDR StartTime 2025-02-09 04:21:04 - End Time 2025-02-09 07:21:04 [2025-02-09 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435492', 'tblTempUsageDetail_20' ) start [2025-02-09 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435492', 'tblTempUsageDetail_20' ) end [2025-02-09 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435492', 'tblTempVendorCDR_20' ) start [2025-02-09 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435492', 'tblTempVendorCDR_20' ) end [2025-02-09 07:21:17] Production.INFO: ProcessCDR(1,14435492,1,1,2) [2025-02-09 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435492', 'tblTempUsageDetail_20' ) start [2025-02-09 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435492', 'tblTempUsageDetail_20' ) end [2025-02-09 07:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:21:20] Production.INFO: ==32352== Releasing lock... [2025-02-09 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:22:05 [end_date_ymd] => 2025-02-09 07:22:05 [RateCDR] => 1 ) [2025-02-09 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:22:05' and `end` < '2025-02-09 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-02-09 07:22:18] Production.INFO: count ==153 [2025-02-09 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:22:05 - End Time 2025-02-09 07:22:05 [2025-02-09 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435497', 'tblTempUsageDetail_20' ) start [2025-02-09 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435497', 'tblTempUsageDetail_20' ) end [2025-02-09 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435497', 'tblTempVendorCDR_20' ) start [2025-02-09 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435497', 'tblTempVendorCDR_20' ) end [2025-02-09 07:22:18] Production.INFO: ProcessCDR(1,14435497,1,1,2) [2025-02-09 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435497', 'tblTempUsageDetail_20' ) start [2025-02-09 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435497', 'tblTempUsageDetail_20' ) end [2025-02-09 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:22:22] Production.INFO: ==32442== Releasing lock... [2025-02-09 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:23:04 [end_date_ymd] => 2025-02-09 07:23:04 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:23:04' and `end` < '2025-02-09 07: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-02-09 07:23:18] Production.INFO: count ==153 [2025-02-09 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:23:04 - End Time 2025-02-09 07:23:04 [2025-02-09 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435502', 'tblTempUsageDetail_20' ) start [2025-02-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435502', 'tblTempUsageDetail_20' ) end [2025-02-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435502', 'tblTempVendorCDR_20' ) start [2025-02-09 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435502', 'tblTempVendorCDR_20' ) end [2025-02-09 07:23:18] Production.INFO: ProcessCDR(1,14435502,1,1,2) [2025-02-09 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435502', 'tblTempUsageDetail_20' ) start [2025-02-09 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435502', 'tblTempUsageDetail_20' ) end [2025-02-09 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:23:21] Production.INFO: ==32529== Releasing lock... [2025-02-09 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:24:05 [end_date_ymd] => 2025-02-09 07:24:05 [RateCDR] => 1 ) [2025-02-09 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:24:05' and `end` < '2025-02-09 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:24:18] Production.INFO: count ==153 [2025-02-09 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:24:05 - End Time 2025-02-09 07:24:05 [2025-02-09 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435507', 'tblTempUsageDetail_20' ) start [2025-02-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435507', 'tblTempUsageDetail_20' ) end [2025-02-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435507', 'tblTempVendorCDR_20' ) start [2025-02-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435507', 'tblTempVendorCDR_20' ) end [2025-02-09 07:24:18] Production.INFO: ProcessCDR(1,14435507,1,1,2) [2025-02-09 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435507', 'tblTempUsageDetail_20' ) start [2025-02-09 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435507', 'tblTempUsageDetail_20' ) end [2025-02-09 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:24:21] Production.INFO: ==32616== Releasing lock... [2025-02-09 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:25:05 [end_date_ymd] => 2025-02-09 07:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:25:05' and `end` < '2025-02-09 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-02-09 07:25:18] Production.INFO: count ==152 [2025-02-09 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:25:05 - End Time 2025-02-09 07:25:05 [2025-02-09 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435512', 'tblTempUsageDetail_20' ) start [2025-02-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435512', 'tblTempUsageDetail_20' ) end [2025-02-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435512', 'tblTempVendorCDR_20' ) start [2025-02-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435512', 'tblTempVendorCDR_20' ) end [2025-02-09 07:25:18] Production.INFO: ProcessCDR(1,14435512,1,1,2) [2025-02-09 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435512', 'tblTempUsageDetail_20' ) start [2025-02-09 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435512', 'tblTempUsageDetail_20' ) end [2025-02-09 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:25:21] Production.INFO: ==32692== Releasing lock... [2025-02-09 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:26:05 [end_date_ymd] => 2025-02-09 07:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:26:05' and `end` < '2025-02-09 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-02-09 07:26:18] Production.INFO: count ==152 [2025-02-09 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:26:05 - End Time 2025-02-09 07:26:05 [2025-02-09 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435517', 'tblTempUsageDetail_20' ) start [2025-02-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435517', 'tblTempUsageDetail_20' ) end [2025-02-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435517', 'tblTempVendorCDR_20' ) start [2025-02-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435517', 'tblTempVendorCDR_20' ) end [2025-02-09 07:26:18] Production.INFO: ProcessCDR(1,14435517,1,1,2) [2025-02-09 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435517', 'tblTempUsageDetail_20' ) start [2025-02-09 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435517', 'tblTempUsageDetail_20' ) end [2025-02-09 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:26:21] Production.INFO: ==315== Releasing lock... [2025-02-09 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:27:05 [end_date_ymd] => 2025-02-09 07:27:05 [RateCDR] => 1 ) [2025-02-09 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:27:05' and `end` < '2025-02-09 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:27:18] Production.INFO: count ==152 [2025-02-09 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:27:05 - End Time 2025-02-09 07:27:05 [2025-02-09 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435522', 'tblTempUsageDetail_20' ) start [2025-02-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435522', 'tblTempUsageDetail_20' ) end [2025-02-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435522', 'tblTempVendorCDR_20' ) start [2025-02-09 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435522', 'tblTempVendorCDR_20' ) end [2025-02-09 07:27:18] Production.INFO: ProcessCDR(1,14435522,1,1,2) [2025-02-09 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435522', 'tblTempUsageDetail_20' ) start [2025-02-09 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435522', 'tblTempUsageDetail_20' ) end [2025-02-09 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:27:21] Production.INFO: ==409== Releasing lock... [2025-02-09 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:28:05 [end_date_ymd] => 2025-02-09 07:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:28:05' and `end` < '2025-02-09 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-02-09 07:28:18] Production.INFO: count ==152 [2025-02-09 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:28:05 - End Time 2025-02-09 07:28:05 [2025-02-09 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435527', 'tblTempUsageDetail_20' ) start [2025-02-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435527', 'tblTempUsageDetail_20' ) end [2025-02-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435527', 'tblTempVendorCDR_20' ) start [2025-02-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435527', 'tblTempVendorCDR_20' ) end [2025-02-09 07:28:18] Production.INFO: ProcessCDR(1,14435527,1,1,2) [2025-02-09 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435527', 'tblTempUsageDetail_20' ) start [2025-02-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435527', 'tblTempUsageDetail_20' ) end [2025-02-09 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:28:21] Production.INFO: ==494== Releasing lock... [2025-02-09 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:29:05 [end_date_ymd] => 2025-02-09 07:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:29:05' and `end` < '2025-02-09 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-02-09 07:29:18] Production.INFO: count ==151 [2025-02-09 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:29:05 - End Time 2025-02-09 07:29:05 [2025-02-09 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435532', 'tblTempUsageDetail_20' ) start [2025-02-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435532', 'tblTempUsageDetail_20' ) end [2025-02-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435532', 'tblTempVendorCDR_20' ) start [2025-02-09 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435532', 'tblTempVendorCDR_20' ) end [2025-02-09 07:29:18] Production.INFO: ProcessCDR(1,14435532,1,1,2) [2025-02-09 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435532', 'tblTempUsageDetail_20' ) start [2025-02-09 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435532', 'tblTempUsageDetail_20' ) end [2025-02-09 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:29:21] Production.INFO: ==564== Releasing lock... [2025-02-09 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:30:06 [end_date_ymd] => 2025-02-09 07:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:30:06' and `end` < '2025-02-09 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-02-09 07:30:19] Production.INFO: count ==148 [2025-02-09 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:30:06 - End Time 2025-02-09 07:30:06 [2025-02-09 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435537', 'tblTempUsageDetail_20' ) start [2025-02-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435537', 'tblTempUsageDetail_20' ) end [2025-02-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435537', 'tblTempVendorCDR_20' ) start [2025-02-09 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435537', 'tblTempVendorCDR_20' ) end [2025-02-09 07:30:19] Production.INFO: ProcessCDR(1,14435537,1,1,2) [2025-02-09 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435537', 'tblTempUsageDetail_20' ) start [2025-02-09 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435537', 'tblTempUsageDetail_20' ) end [2025-02-09 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:30:22] Production.INFO: ==655== Releasing lock... [2025-02-09 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:31:05 [end_date_ymd] => 2025-02-09 07:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:31:05' and `end` < '2025-02-09 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-02-09 07:31:19] Production.INFO: count ==148 [2025-02-09 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:31:05 - End Time 2025-02-09 07:31:05 [2025-02-09 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435543', 'tblTempUsageDetail_20' ) start [2025-02-09 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435543', 'tblTempUsageDetail_20' ) end [2025-02-09 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435543', 'tblTempVendorCDR_20' ) start [2025-02-09 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435543', 'tblTempVendorCDR_20' ) end [2025-02-09 07:31:19] Production.INFO: ProcessCDR(1,14435543,1,1,2) [2025-02-09 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435543', 'tblTempUsageDetail_20' ) start [2025-02-09 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435543', 'tblTempUsageDetail_20' ) end [2025-02-09 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:31:22] Production.INFO: ==766== Releasing lock... [2025-02-09 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:32:05 [end_date_ymd] => 2025-02-09 07:32:05 [RateCDR] => 1 ) [2025-02-09 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:32:05' and `end` < '2025-02-09 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-02-09 07:32:18] Production.INFO: count ==148 [2025-02-09 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:32:05 - End Time 2025-02-09 07:32:05 [2025-02-09 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435548', 'tblTempUsageDetail_20' ) start [2025-02-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435548', 'tblTempUsageDetail_20' ) end [2025-02-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435548', 'tblTempVendorCDR_20' ) start [2025-02-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435548', 'tblTempVendorCDR_20' ) end [2025-02-09 07:32:18] Production.INFO: ProcessCDR(1,14435548,1,1,2) [2025-02-09 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435548', 'tblTempUsageDetail_20' ) start [2025-02-09 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435548', 'tblTempUsageDetail_20' ) end [2025-02-09 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:32:21] Production.INFO: ==846== Releasing lock... [2025-02-09 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:33:05 [end_date_ymd] => 2025-02-09 07:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:33:05' and `end` < '2025-02-09 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-02-09 07:33:18] Production.INFO: count ==148 [2025-02-09 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:33:05 - End Time 2025-02-09 07:33:05 [2025-02-09 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435553', 'tblTempUsageDetail_20' ) start [2025-02-09 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435553', 'tblTempUsageDetail_20' ) end [2025-02-09 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435553', 'tblTempVendorCDR_20' ) start [2025-02-09 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435553', 'tblTempVendorCDR_20' ) end [2025-02-09 07:33:18] Production.INFO: ProcessCDR(1,14435553,1,1,2) [2025-02-09 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435553', 'tblTempUsageDetail_20' ) start [2025-02-09 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435553', 'tblTempUsageDetail_20' ) end [2025-02-09 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:33:21] Production.INFO: ==930== Releasing lock... [2025-02-09 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:34:05 [end_date_ymd] => 2025-02-09 07:34:05 [RateCDR] => 1 ) [2025-02-09 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:34:05' and `end` < '2025-02-09 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:34:18] Production.INFO: count ==148 [2025-02-09 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:34:05 - End Time 2025-02-09 07:34:05 [2025-02-09 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435558', 'tblTempUsageDetail_20' ) start [2025-02-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435558', 'tblTempUsageDetail_20' ) end [2025-02-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435558', 'tblTempVendorCDR_20' ) start [2025-02-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435558', 'tblTempVendorCDR_20' ) end [2025-02-09 07:34:18] Production.INFO: ProcessCDR(1,14435558,1,1,2) [2025-02-09 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435558', 'tblTempUsageDetail_20' ) start [2025-02-09 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435558', 'tblTempUsageDetail_20' ) end [2025-02-09 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:34:21] Production.INFO: ==1037== Releasing lock... [2025-02-09 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:35:05 [end_date_ymd] => 2025-02-09 07:35:05 [RateCDR] => 1 ) [2025-02-09 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:35:05' and `end` < '2025-02-09 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:35:19] Production.INFO: count ==148 [2025-02-09 07:35:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:35:05 - End Time 2025-02-09 07:35:05 [2025-02-09 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435563', 'tblTempUsageDetail_20' ) start [2025-02-09 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435563', 'tblTempUsageDetail_20' ) end [2025-02-09 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435563', 'tblTempVendorCDR_20' ) start [2025-02-09 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435563', 'tblTempVendorCDR_20' ) end [2025-02-09 07:35:19] Production.INFO: ProcessCDR(1,14435563,1,1,2) [2025-02-09 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435563', 'tblTempUsageDetail_20' ) start [2025-02-09 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435563', 'tblTempUsageDetail_20' ) end [2025-02-09 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:35:22] Production.INFO: ==1162== Releasing lock... [2025-02-09 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:36:05 [end_date_ymd] => 2025-02-09 07:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:36:05' and `end` < '2025-02-09 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-02-09 07:36:19] Production.INFO: count ==148 [2025-02-09 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:36:05 - End Time 2025-02-09 07:36:05 [2025-02-09 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435568', 'tblTempUsageDetail_20' ) start [2025-02-09 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435568', 'tblTempUsageDetail_20' ) end [2025-02-09 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435568', 'tblTempVendorCDR_20' ) start [2025-02-09 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435568', 'tblTempVendorCDR_20' ) end [2025-02-09 07:36:19] Production.INFO: ProcessCDR(1,14435568,1,1,2) [2025-02-09 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435568', 'tblTempUsageDetail_20' ) start [2025-02-09 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435568', 'tblTempUsageDetail_20' ) end [2025-02-09 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:36:22] Production.INFO: ==1256== Releasing lock... [2025-02-09 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:37:06 [end_date_ymd] => 2025-02-09 07:37:06 [RateCDR] => 1 ) [2025-02-09 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:37:06' and `end` < '2025-02-09 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:37:19] Production.INFO: count ==148 [2025-02-09 07:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:37:06 - End Time 2025-02-09 07:37:06 [2025-02-09 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435573', 'tblTempUsageDetail_20' ) start [2025-02-09 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435573', 'tblTempUsageDetail_20' ) end [2025-02-09 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435573', 'tblTempVendorCDR_20' ) start [2025-02-09 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435573', 'tblTempVendorCDR_20' ) end [2025-02-09 07:37:19] Production.INFO: ProcessCDR(1,14435573,1,1,2) [2025-02-09 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435573', 'tblTempUsageDetail_20' ) start [2025-02-09 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435573', 'tblTempUsageDetail_20' ) end [2025-02-09 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:37:22] Production.INFO: ==1346== Releasing lock... [2025-02-09 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:38:05 [end_date_ymd] => 2025-02-09 07:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:38:05' and `end` < '2025-02-09 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-02-09 07:38:19] Production.INFO: count ==148 [2025-02-09 07:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:38:05 - End Time 2025-02-09 07:38:05 [2025-02-09 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435578', 'tblTempUsageDetail_20' ) start [2025-02-09 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435578', 'tblTempUsageDetail_20' ) end [2025-02-09 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435578', 'tblTempVendorCDR_20' ) start [2025-02-09 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435578', 'tblTempVendorCDR_20' ) end [2025-02-09 07:38:19] Production.INFO: ProcessCDR(1,14435578,1,1,2) [2025-02-09 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435578', 'tblTempUsageDetail_20' ) start [2025-02-09 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435578', 'tblTempUsageDetail_20' ) end [2025-02-09 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:38:22] Production.INFO: ==1432== Releasing lock... [2025-02-09 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:39:06 [end_date_ymd] => 2025-02-09 07:39:06 [RateCDR] => 1 ) [2025-02-09 07:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:39:06' and `end` < '2025-02-09 07:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:39:18] Production.INFO: count ==148 [2025-02-09 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:39:06 - End Time 2025-02-09 07:39:06 [2025-02-09 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435583', 'tblTempUsageDetail_20' ) start [2025-02-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435583', 'tblTempUsageDetail_20' ) end [2025-02-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435583', 'tblTempVendorCDR_20' ) start [2025-02-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435583', 'tblTempVendorCDR_20' ) end [2025-02-09 07:39:18] Production.INFO: ProcessCDR(1,14435583,1,1,2) [2025-02-09 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435583', 'tblTempUsageDetail_20' ) start [2025-02-09 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435583', 'tblTempUsageDetail_20' ) end [2025-02-09 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:39:22] Production.INFO: ==1555== Releasing lock... [2025-02-09 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:40:06 [end_date_ymd] => 2025-02-09 07:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:40:06' and `end` < '2025-02-09 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-02-09 07:40:19] Production.INFO: count ==152 [2025-02-09 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:40:06 - End Time 2025-02-09 07:40:06 [2025-02-09 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435589', 'tblTempUsageDetail_20' ) start [2025-02-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435589', 'tblTempUsageDetail_20' ) end [2025-02-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435589', 'tblTempVendorCDR_20' ) start [2025-02-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435589', 'tblTempVendorCDR_20' ) end [2025-02-09 07:40:19] Production.INFO: ProcessCDR(1,14435589,1,1,2) [2025-02-09 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435589', 'tblTempUsageDetail_20' ) start [2025-02-09 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435589', 'tblTempUsageDetail_20' ) end [2025-02-09 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:40:22] Production.INFO: ==1653== Releasing lock... [2025-02-09 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:41:05 [end_date_ymd] => 2025-02-09 07:41:05 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:41:05' and `end` < '2025-02-09 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-02-09 07:41:19] Production.INFO: count ==158 [2025-02-09 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:41:05 - End Time 2025-02-09 07:41:05 [2025-02-09 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435594', 'tblTempUsageDetail_20' ) start [2025-02-09 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435594', 'tblTempUsageDetail_20' ) end [2025-02-09 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435594', 'tblTempVendorCDR_20' ) start [2025-02-09 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435594', 'tblTempVendorCDR_20' ) end [2025-02-09 07:41:19] Production.INFO: ProcessCDR(1,14435594,1,1,2) [2025-02-09 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435594', 'tblTempUsageDetail_20' ) start [2025-02-09 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435594', 'tblTempUsageDetail_20' ) end [2025-02-09 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:41:22] Production.INFO: ==1746== Releasing lock... [2025-02-09 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:42:04 [end_date_ymd] => 2025-02-09 07:42:04 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:42:04' and `end` < '2025-02-09 07: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-02-09 07:42:17] Production.INFO: count ==158 [2025-02-09 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-09 04:42:04 - End Time 2025-02-09 07:42:04 [2025-02-09 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435599', 'tblTempUsageDetail_20' ) start [2025-02-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435599', 'tblTempUsageDetail_20' ) end [2025-02-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435599', 'tblTempVendorCDR_20' ) start [2025-02-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435599', 'tblTempVendorCDR_20' ) end [2025-02-09 07:42:17] Production.INFO: ProcessCDR(1,14435599,1,1,2) [2025-02-09 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435599', 'tblTempUsageDetail_20' ) start [2025-02-09 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435599', 'tblTempUsageDetail_20' ) end [2025-02-09 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:42:20] Production.INFO: ==1838== Releasing lock... [2025-02-09 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:43:05 [end_date_ymd] => 2025-02-09 07:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:43:05' and `end` < '2025-02-09 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-02-09 07:43:19] Production.INFO: count ==160 [2025-02-09 07:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:43:05 - End Time 2025-02-09 07:43:05 [2025-02-09 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435604', 'tblTempUsageDetail_20' ) start [2025-02-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435604', 'tblTempUsageDetail_20' ) end [2025-02-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435604', 'tblTempVendorCDR_20' ) start [2025-02-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435604', 'tblTempVendorCDR_20' ) end [2025-02-09 07:43:19] Production.INFO: ProcessCDR(1,14435604,1,1,2) [2025-02-09 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435604', 'tblTempUsageDetail_20' ) start [2025-02-09 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435604', 'tblTempUsageDetail_20' ) end [2025-02-09 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:43:23] Production.INFO: ==1926== Releasing lock... [2025-02-09 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:43:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:44:04 [end_date_ymd] => 2025-02-09 07:44:04 [RateCDR] => 1 ) [2025-02-09 07:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:44:04' and `end` < '2025-02-09 07:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:44:18] Production.INFO: count ==160 [2025-02-09 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:44:04 - End Time 2025-02-09 07:44:04 [2025-02-09 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435609', 'tblTempUsageDetail_20' ) start [2025-02-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435609', 'tblTempUsageDetail_20' ) end [2025-02-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435609', 'tblTempVendorCDR_20' ) start [2025-02-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435609', 'tblTempVendorCDR_20' ) end [2025-02-09 07:44:18] Production.INFO: ProcessCDR(1,14435609,1,1,2) [2025-02-09 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435609', 'tblTempUsageDetail_20' ) start [2025-02-09 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435609', 'tblTempUsageDetail_20' ) end [2025-02-09 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:44:21] Production.INFO: ==2021== Releasing lock... [2025-02-09 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:45:05 [end_date_ymd] => 2025-02-09 07:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:45:05' and `end` < '2025-02-09 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-02-09 07:45:18] Production.INFO: count ==160 [2025-02-09 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:45:05 - End Time 2025-02-09 07:45:05 [2025-02-09 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435614', 'tblTempUsageDetail_20' ) start [2025-02-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435614', 'tblTempUsageDetail_20' ) end [2025-02-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435614', 'tblTempVendorCDR_20' ) start [2025-02-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435614', 'tblTempVendorCDR_20' ) end [2025-02-09 07:45:18] Production.INFO: ProcessCDR(1,14435614,1,1,2) [2025-02-09 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435614', 'tblTempUsageDetail_20' ) start [2025-02-09 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435614', 'tblTempUsageDetail_20' ) end [2025-02-09 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:45:21] Production.INFO: ==2116== Releasing lock... [2025-02-09 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:46:06 [end_date_ymd] => 2025-02-09 07:46:06 [RateCDR] => 1 ) [2025-02-09 07:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:46:06' and `end` < '2025-02-09 07:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:46:19] Production.INFO: count ==160 [2025-02-09 07:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:46:06 - End Time 2025-02-09 07:46:06 [2025-02-09 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435619', 'tblTempUsageDetail_20' ) start [2025-02-09 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435619', 'tblTempUsageDetail_20' ) end [2025-02-09 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435619', 'tblTempVendorCDR_20' ) start [2025-02-09 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435619', 'tblTempVendorCDR_20' ) end [2025-02-09 07:46:19] Production.INFO: ProcessCDR(1,14435619,1,1,2) [2025-02-09 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435619', 'tblTempUsageDetail_20' ) start [2025-02-09 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435619', 'tblTempUsageDetail_20' ) end [2025-02-09 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:46:22] Production.INFO: ==2216== Releasing lock... [2025-02-09 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:47:05 [end_date_ymd] => 2025-02-09 07:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:47:05' and `end` < '2025-02-09 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-02-09 07:47:18] Production.INFO: count ==160 [2025-02-09 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:47:05 - End Time 2025-02-09 07:47:05 [2025-02-09 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435624', 'tblTempUsageDetail_20' ) start [2025-02-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435624', 'tblTempUsageDetail_20' ) end [2025-02-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435624', 'tblTempVendorCDR_20' ) start [2025-02-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435624', 'tblTempVendorCDR_20' ) end [2025-02-09 07:47:18] Production.INFO: ProcessCDR(1,14435624,1,1,2) [2025-02-09 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435624', 'tblTempUsageDetail_20' ) start [2025-02-09 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435624', 'tblTempUsageDetail_20' ) end [2025-02-09 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:47:21] Production.INFO: ==2306== Releasing lock... [2025-02-09 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:48:05 [end_date_ymd] => 2025-02-09 07:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:48:05' and `end` < '2025-02-09 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-02-09 07:48:19] Production.INFO: count ==160 [2025-02-09 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:48:05 - End Time 2025-02-09 07:48:05 [2025-02-09 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435629', 'tblTempUsageDetail_20' ) start [2025-02-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435629', 'tblTempUsageDetail_20' ) end [2025-02-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435629', 'tblTempVendorCDR_20' ) start [2025-02-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435629', 'tblTempVendorCDR_20' ) end [2025-02-09 07:48:19] Production.INFO: ProcessCDR(1,14435629,1,1,2) [2025-02-09 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435629', 'tblTempUsageDetail_20' ) start [2025-02-09 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435629', 'tblTempUsageDetail_20' ) end [2025-02-09 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:48:22] Production.INFO: ==2396== Releasing lock... [2025-02-09 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:49:04 [end_date_ymd] => 2025-02-09 07:49:04 [RateCDR] => 1 ) [2025-02-09 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:49:04' and `end` < '2025-02-09 07:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:49:17] Production.INFO: count ==160 [2025-02-09 07:49:17] Production.ERROR: pbx CDR StartTime 2025-02-09 04:49:04 - End Time 2025-02-09 07:49:04 [2025-02-09 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435634', 'tblTempUsageDetail_20' ) start [2025-02-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435634', 'tblTempUsageDetail_20' ) end [2025-02-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435634', 'tblTempVendorCDR_20' ) start [2025-02-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435634', 'tblTempVendorCDR_20' ) end [2025-02-09 07:49:17] Production.INFO: ProcessCDR(1,14435634,1,1,2) [2025-02-09 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435634', 'tblTempUsageDetail_20' ) start [2025-02-09 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435634', 'tblTempUsageDetail_20' ) end [2025-02-09 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:49:20] Production.INFO: ==2482== Releasing lock... [2025-02-09 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:50:06 [end_date_ymd] => 2025-02-09 07:50:06 [RateCDR] => 1 ) [2025-02-09 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:50:06' and `end` < '2025-02-09 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:50:19] Production.INFO: count ==161 [2025-02-09 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:50:06 - End Time 2025-02-09 07:50:06 [2025-02-09 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435640', 'tblTempUsageDetail_20' ) start [2025-02-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435640', 'tblTempUsageDetail_20' ) end [2025-02-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435640', 'tblTempVendorCDR_20' ) start [2025-02-09 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435640', 'tblTempVendorCDR_20' ) end [2025-02-09 07:50:19] Production.INFO: ProcessCDR(1,14435640,1,1,2) [2025-02-09 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435640', 'tblTempUsageDetail_20' ) start [2025-02-09 07:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435640', 'tblTempUsageDetail_20' ) end [2025-02-09 07:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:50:24] Production.INFO: ==2619== Releasing lock... [2025-02-09 07:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:50:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:51:04 [end_date_ymd] => 2025-02-09 07:51:04 [RateCDR] => 1 ) [2025-02-09 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:51:04' and `end` < '2025-02-09 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:51:17] Production.INFO: count ==159 [2025-02-09 07:51:17] Production.ERROR: pbx CDR StartTime 2025-02-09 04:51:04 - End Time 2025-02-09 07:51:04 [2025-02-09 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435645', 'tblTempUsageDetail_20' ) start [2025-02-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435645', 'tblTempUsageDetail_20' ) end [2025-02-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435645', 'tblTempVendorCDR_20' ) start [2025-02-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435645', 'tblTempVendorCDR_20' ) end [2025-02-09 07:51:17] Production.INFO: ProcessCDR(1,14435645,1,1,2) [2025-02-09 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435645', 'tblTempUsageDetail_20' ) start [2025-02-09 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435645', 'tblTempUsageDetail_20' ) end [2025-02-09 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:51:20] Production.INFO: ==2711== Releasing lock... [2025-02-09 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:52:06 [end_date_ymd] => 2025-02-09 07:52:06 [RateCDR] => 1 ) [2025-02-09 07: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-02-09 04:52:06' and `end` < '2025-02-09 07: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-02-09 07:52:19] Production.INFO: count ==159 [2025-02-09 07:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:52:06 - End Time 2025-02-09 07:52:06 [2025-02-09 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435650', 'tblTempUsageDetail_20' ) start [2025-02-09 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435650', 'tblTempUsageDetail_20' ) end [2025-02-09 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435650', 'tblTempVendorCDR_20' ) start [2025-02-09 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435650', 'tblTempVendorCDR_20' ) end [2025-02-09 07:52:19] Production.INFO: ProcessCDR(1,14435650,1,1,2) [2025-02-09 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435650', 'tblTempUsageDetail_20' ) start [2025-02-09 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435650', 'tblTempUsageDetail_20' ) end [2025-02-09 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:52:22] Production.INFO: ==2804== Releasing lock... [2025-02-09 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:53:04 [end_date_ymd] => 2025-02-09 07:53:04 [RateCDR] => 1 ) [2025-02-09 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:53:04' and `end` < '2025-02-09 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:53:18] Production.INFO: count ==159 [2025-02-09 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:53:04 - End Time 2025-02-09 07:53:04 [2025-02-09 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435655', 'tblTempUsageDetail_20' ) start [2025-02-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435655', 'tblTempUsageDetail_20' ) end [2025-02-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435655', 'tblTempVendorCDR_20' ) start [2025-02-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435655', 'tblTempVendorCDR_20' ) end [2025-02-09 07:53:18] Production.INFO: ProcessCDR(1,14435655,1,1,2) [2025-02-09 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435655', 'tblTempUsageDetail_20' ) start [2025-02-09 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435655', 'tblTempUsageDetail_20' ) end [2025-02-09 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:53:21] Production.INFO: ==2898== Releasing lock... [2025-02-09 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:54:05 [end_date_ymd] => 2025-02-09 07:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:54:05' and `end` < '2025-02-09 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-02-09 07:54:18] Production.INFO: count ==159 [2025-02-09 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:54:05 - End Time 2025-02-09 07:54:05 [2025-02-09 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435660', 'tblTempUsageDetail_20' ) start [2025-02-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435660', 'tblTempUsageDetail_20' ) end [2025-02-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435660', 'tblTempVendorCDR_20' ) start [2025-02-09 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435660', 'tblTempVendorCDR_20' ) end [2025-02-09 07:54:18] Production.INFO: ProcessCDR(1,14435660,1,1,2) [2025-02-09 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435660', 'tblTempUsageDetail_20' ) start [2025-02-09 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435660', 'tblTempUsageDetail_20' ) end [2025-02-09 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:54:21] Production.INFO: ==2997== Releasing lock... [2025-02-09 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:55:05 [end_date_ymd] => 2025-02-09 07:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:55:05' and `end` < '2025-02-09 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-02-09 07:55:18] Production.INFO: count ==159 [2025-02-09 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:55:05 - End Time 2025-02-09 07:55:05 [2025-02-09 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435665', 'tblTempUsageDetail_20' ) start [2025-02-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435665', 'tblTempUsageDetail_20' ) end [2025-02-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435665', 'tblTempVendorCDR_20' ) start [2025-02-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435665', 'tblTempVendorCDR_20' ) end [2025-02-09 07:55:18] Production.INFO: ProcessCDR(1,14435665,1,1,2) [2025-02-09 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435665', 'tblTempUsageDetail_20' ) start [2025-02-09 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435665', 'tblTempUsageDetail_20' ) end [2025-02-09 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:55:21] Production.INFO: ==3093== Releasing lock... [2025-02-09 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:56:05 [end_date_ymd] => 2025-02-09 07:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:56:05' and `end` < '2025-02-09 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-02-09 07:56:19] Production.INFO: count ==159 [2025-02-09 07:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:56:05 - End Time 2025-02-09 07:56:05 [2025-02-09 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435670', 'tblTempUsageDetail_20' ) start [2025-02-09 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435670', 'tblTempUsageDetail_20' ) end [2025-02-09 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435670', 'tblTempVendorCDR_20' ) start [2025-02-09 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435670', 'tblTempVendorCDR_20' ) end [2025-02-09 07:56:19] Production.INFO: ProcessCDR(1,14435670,1,1,2) [2025-02-09 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435670', 'tblTempUsageDetail_20' ) start [2025-02-09 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435670', 'tblTempUsageDetail_20' ) end [2025-02-09 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:56:22] Production.INFO: ==3185== Releasing lock... [2025-02-09 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:57:05 [end_date_ymd] => 2025-02-09 07:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:57:05' and `end` < '2025-02-09 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-02-09 07:57:18] Production.INFO: count ==159 [2025-02-09 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:57:05 - End Time 2025-02-09 07:57:05 [2025-02-09 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435675', 'tblTempUsageDetail_20' ) start [2025-02-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435675', 'tblTempUsageDetail_20' ) end [2025-02-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435675', 'tblTempVendorCDR_20' ) start [2025-02-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435675', 'tblTempVendorCDR_20' ) end [2025-02-09 07:57:18] Production.INFO: ProcessCDR(1,14435675,1,1,2) [2025-02-09 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435675', 'tblTempUsageDetail_20' ) start [2025-02-09 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435675', 'tblTempUsageDetail_20' ) end [2025-02-09 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:57:21] Production.INFO: ==3281== Releasing lock... [2025-02-09 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:58:05 [end_date_ymd] => 2025-02-09 07:58:05 [RateCDR] => 1 ) [2025-02-09 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 04:58:05' and `end` < '2025-02-09 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 07:58:19] Production.INFO: count ==159 [2025-02-09 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 04:58:05 - End Time 2025-02-09 07:58:05 [2025-02-09 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435680', 'tblTempUsageDetail_20' ) start [2025-02-09 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435680', 'tblTempUsageDetail_20' ) end [2025-02-09 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435680', 'tblTempVendorCDR_20' ) start [2025-02-09 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435680', 'tblTempVendorCDR_20' ) end [2025-02-09 07:58:19] Production.INFO: ProcessCDR(1,14435680,1,1,2) [2025-02-09 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435680', 'tblTempUsageDetail_20' ) start [2025-02-09 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435680', 'tblTempUsageDetail_20' ) end [2025-02-09 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:58:22] Production.INFO: ==3369== Releasing lock... [2025-02-09 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 04:59:05 [end_date_ymd] => 2025-02-09 07:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 04:59:05' and `end` < '2025-02-09 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-02-09 07:59:18] Production.INFO: count ==160 [2025-02-09 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 04:59:05 - End Time 2025-02-09 07:59:05 [2025-02-09 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435685', 'tblTempUsageDetail_20' ) start [2025-02-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435685', 'tblTempUsageDetail_20' ) end [2025-02-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435685', 'tblTempVendorCDR_20' ) start [2025-02-09 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435685', 'tblTempVendorCDR_20' ) end [2025-02-09 07:59:18] Production.INFO: ProcessCDR(1,14435685,1,1,2) [2025-02-09 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435685', 'tblTempUsageDetail_20' ) start [2025-02-09 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435685', 'tblTempUsageDetail_20' ) end [2025-02-09 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 07:59:22] Production.INFO: ==3482== Releasing lock... [2025-02-09 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 07:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:00:05 [end_date_ymd] => 2025-02-09 08:00:05 [RateCDR] => 1 ) [2025-02-09 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:00:05' and `end` < '2025-02-09 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:00:18] Production.INFO: count ==164 [2025-02-09 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:00:05 - End Time 2025-02-09 08:00:05 [2025-02-09 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435691', 'tblTempUsageDetail_20' ) start [2025-02-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435691', 'tblTempUsageDetail_20' ) end [2025-02-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435691', 'tblTempVendorCDR_20' ) start [2025-02-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435691', 'tblTempVendorCDR_20' ) end [2025-02-09 08:00:18] Production.INFO: ProcessCDR(1,14435691,1,1,2) [2025-02-09 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435691', 'tblTempUsageDetail_20' ) start [2025-02-09 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435691', 'tblTempUsageDetail_20' ) end [2025-02-09 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:00:21] Production.INFO: ==3622== Releasing lock... [2025-02-09 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:00:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:01:04 [end_date_ymd] => 2025-02-09 08:01:04 [RateCDR] => 1 ) [2025-02-09 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:01:04' and `end` < '2025-02-09 08:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:01:17] Production.INFO: count ==158 [2025-02-09 08:01:17] Production.ERROR: pbx CDR StartTime 2025-02-09 05:01:04 - End Time 2025-02-09 08:01:04 [2025-02-09 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435696', 'tblTempUsageDetail_20' ) start [2025-02-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435696', 'tblTempUsageDetail_20' ) end [2025-02-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435696', 'tblTempVendorCDR_20' ) start [2025-02-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435696', 'tblTempVendorCDR_20' ) end [2025-02-09 08:01:17] Production.INFO: ProcessCDR(1,14435696,1,1,2) [2025-02-09 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435696', 'tblTempUsageDetail_20' ) start [2025-02-09 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435696', 'tblTempUsageDetail_20' ) end [2025-02-09 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:01:20] Production.INFO: ==3795== Releasing lock... [2025-02-09 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:02:05 [end_date_ymd] => 2025-02-09 08:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:02:05' and `end` < '2025-02-09 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-02-09 08:02:18] Production.INFO: count ==158 [2025-02-09 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:02:05 - End Time 2025-02-09 08:02:05 [2025-02-09 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435701', 'tblTempUsageDetail_20' ) start [2025-02-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435701', 'tblTempUsageDetail_20' ) end [2025-02-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435701', 'tblTempVendorCDR_20' ) start [2025-02-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435701', 'tblTempVendorCDR_20' ) end [2025-02-09 08:02:18] Production.INFO: ProcessCDR(1,14435701,1,1,2) [2025-02-09 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435701', 'tblTempUsageDetail_20' ) start [2025-02-09 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435701', 'tblTempUsageDetail_20' ) end [2025-02-09 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:02:22] Production.INFO: ==3902== Releasing lock... [2025-02-09 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:03:05 [end_date_ymd] => 2025-02-09 08:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:03:05' and `end` < '2025-02-09 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-02-09 08:03:18] Production.INFO: count ==158 [2025-02-09 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:03:05 - End Time 2025-02-09 08:03:05 [2025-02-09 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435706', 'tblTempUsageDetail_20' ) start [2025-02-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435706', 'tblTempUsageDetail_20' ) end [2025-02-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435706', 'tblTempVendorCDR_20' ) start [2025-02-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435706', 'tblTempVendorCDR_20' ) end [2025-02-09 08:03:18] Production.INFO: ProcessCDR(1,14435706,1,1,2) [2025-02-09 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435706', 'tblTempUsageDetail_20' ) start [2025-02-09 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435706', 'tblTempUsageDetail_20' ) end [2025-02-09 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:03:21] Production.INFO: ==3983== Releasing lock... [2025-02-09 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:04:05 [end_date_ymd] => 2025-02-09 08:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:04:05' and `end` < '2025-02-09 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-02-09 08:04:18] Production.INFO: count ==158 [2025-02-09 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:04:05 - End Time 2025-02-09 08:04:05 [2025-02-09 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435711', 'tblTempUsageDetail_20' ) start [2025-02-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435711', 'tblTempUsageDetail_20' ) end [2025-02-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435711', 'tblTempVendorCDR_20' ) start [2025-02-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435711', 'tblTempVendorCDR_20' ) end [2025-02-09 08:04:18] Production.INFO: ProcessCDR(1,14435711,1,1,2) [2025-02-09 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435711', 'tblTempUsageDetail_20' ) start [2025-02-09 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435711', 'tblTempUsageDetail_20' ) end [2025-02-09 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:04:21] Production.INFO: ==4063== Releasing lock... [2025-02-09 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:05:05 [end_date_ymd] => 2025-02-09 08:05:05 [RateCDR] => 1 ) [2025-02-09 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:05:05' and `end` < '2025-02-09 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:05:19] Production.INFO: count ==157 [2025-02-09 08:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:05:05 - End Time 2025-02-09 08:05:05 [2025-02-09 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435716', 'tblTempUsageDetail_20' ) start [2025-02-09 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435716', 'tblTempUsageDetail_20' ) end [2025-02-09 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435716', 'tblTempVendorCDR_20' ) start [2025-02-09 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435716', 'tblTempVendorCDR_20' ) end [2025-02-09 08:05:19] Production.INFO: ProcessCDR(1,14435716,1,1,2) [2025-02-09 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435716', 'tblTempUsageDetail_20' ) start [2025-02-09 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435716', 'tblTempUsageDetail_20' ) end [2025-02-09 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:05:22] Production.INFO: ==4175== Releasing lock... [2025-02-09 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:06:05 [end_date_ymd] => 2025-02-09 08:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:06:05' and `end` < '2025-02-09 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-02-09 08:06:18] Production.INFO: count ==157 [2025-02-09 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:06:05 - End Time 2025-02-09 08:06:05 [2025-02-09 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435721', 'tblTempUsageDetail_20' ) start [2025-02-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435721', 'tblTempUsageDetail_20' ) end [2025-02-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435721', 'tblTempVendorCDR_20' ) start [2025-02-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435721', 'tblTempVendorCDR_20' ) end [2025-02-09 08:06:18] Production.INFO: ProcessCDR(1,14435721,1,1,2) [2025-02-09 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435721', 'tblTempUsageDetail_20' ) start [2025-02-09 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435721', 'tblTempUsageDetail_20' ) end [2025-02-09 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:06:21] Production.INFO: ==4271== Releasing lock... [2025-02-09 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:07:05 [end_date_ymd] => 2025-02-09 08:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:07:05' and `end` < '2025-02-09 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-02-09 08:07:18] Production.INFO: count ==154 [2025-02-09 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:07:05 - End Time 2025-02-09 08:07:05 [2025-02-09 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435726', 'tblTempUsageDetail_20' ) start [2025-02-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435726', 'tblTempUsageDetail_20' ) end [2025-02-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435726', 'tblTempVendorCDR_20' ) start [2025-02-09 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435726', 'tblTempVendorCDR_20' ) end [2025-02-09 08:07:18] Production.INFO: ProcessCDR(1,14435726,1,1,2) [2025-02-09 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435726', 'tblTempUsageDetail_20' ) start [2025-02-09 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435726', 'tblTempUsageDetail_20' ) end [2025-02-09 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:07:21] Production.INFO: ==4359== Releasing lock... [2025-02-09 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:08:04 [end_date_ymd] => 2025-02-09 08:08:04 [RateCDR] => 1 ) [2025-02-09 08: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-02-09 05:08:04' and `end` < '2025-02-09 08: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-02-09 08:08:17] Production.INFO: count ==151 [2025-02-09 08:08:17] Production.ERROR: pbx CDR StartTime 2025-02-09 05:08:04 - End Time 2025-02-09 08:08:04 [2025-02-09 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435731', 'tblTempUsageDetail_20' ) start [2025-02-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435731', 'tblTempUsageDetail_20' ) end [2025-02-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435731', 'tblTempVendorCDR_20' ) start [2025-02-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435731', 'tblTempVendorCDR_20' ) end [2025-02-09 08:08:17] Production.INFO: ProcessCDR(1,14435731,1,1,2) [2025-02-09 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435731', 'tblTempUsageDetail_20' ) start [2025-02-09 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435731', 'tblTempUsageDetail_20' ) end [2025-02-09 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:08:21] Production.INFO: ==4440== Releasing lock... [2025-02-09 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:09:05 [end_date_ymd] => 2025-02-09 08:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:09:05' and `end` < '2025-02-09 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-02-09 08:09:19] Production.INFO: count ==151 [2025-02-09 08:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:09:05 - End Time 2025-02-09 08:09:05 [2025-02-09 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435736', 'tblTempUsageDetail_20' ) start [2025-02-09 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435736', 'tblTempUsageDetail_20' ) end [2025-02-09 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435736', 'tblTempVendorCDR_20' ) start [2025-02-09 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435736', 'tblTempVendorCDR_20' ) end [2025-02-09 08:09:19] Production.INFO: ProcessCDR(1,14435736,1,1,2) [2025-02-09 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435736', 'tblTempUsageDetail_20' ) start [2025-02-09 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435736', 'tblTempUsageDetail_20' ) end [2025-02-09 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:09:23] Production.INFO: ==4520== Releasing lock... [2025-02-09 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:10:06 [end_date_ymd] => 2025-02-09 08:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:10:06' and `end` < '2025-02-09 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-02-09 08:10:19] Production.INFO: count ==151 [2025-02-09 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:10:06 - End Time 2025-02-09 08:10:06 [2025-02-09 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435742', 'tblTempUsageDetail_20' ) start [2025-02-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435742', 'tblTempUsageDetail_20' ) end [2025-02-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435742', 'tblTempVendorCDR_20' ) start [2025-02-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435742', 'tblTempVendorCDR_20' ) end [2025-02-09 08:10:19] Production.INFO: ProcessCDR(1,14435742,1,1,2) [2025-02-09 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435742', 'tblTempUsageDetail_20' ) start [2025-02-09 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435742', 'tblTempUsageDetail_20' ) end [2025-02-09 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:10:22] Production.INFO: ==4608== Releasing lock... [2025-02-09 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:11:04 [end_date_ymd] => 2025-02-09 08:11:04 [RateCDR] => 1 ) [2025-02-09 08: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-02-09 05:11:04' and `end` < '2025-02-09 08: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-02-09 08:11:17] Production.INFO: count ==151 [2025-02-09 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-09 05:11:04 - End Time 2025-02-09 08:11:04 [2025-02-09 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435747', 'tblTempUsageDetail_20' ) start [2025-02-09 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435747', 'tblTempUsageDetail_20' ) end [2025-02-09 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435747', 'tblTempVendorCDR_20' ) start [2025-02-09 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435747', 'tblTempVendorCDR_20' ) end [2025-02-09 08:11:17] Production.INFO: ProcessCDR(1,14435747,1,1,2) [2025-02-09 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435747', 'tblTempUsageDetail_20' ) start [2025-02-09 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435747', 'tblTempUsageDetail_20' ) end [2025-02-09 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:11:20] Production.INFO: ==4694== Releasing lock... [2025-02-09 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:12:05 [end_date_ymd] => 2025-02-09 08:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:12:05' and `end` < '2025-02-09 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-02-09 08:12:18] Production.INFO: count ==151 [2025-02-09 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:12:05 - End Time 2025-02-09 08:12:05 [2025-02-09 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435752', 'tblTempUsageDetail_20' ) start [2025-02-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435752', 'tblTempUsageDetail_20' ) end [2025-02-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435752', 'tblTempVendorCDR_20' ) start [2025-02-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435752', 'tblTempVendorCDR_20' ) end [2025-02-09 08:12:18] Production.INFO: ProcessCDR(1,14435752,1,1,2) [2025-02-09 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435752', 'tblTempUsageDetail_20' ) start [2025-02-09 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435752', 'tblTempUsageDetail_20' ) end [2025-02-09 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:12:21] Production.INFO: ==4772== Releasing lock... [2025-02-09 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:13:04 [end_date_ymd] => 2025-02-09 08:13:04 [RateCDR] => 1 ) [2025-02-09 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:13:04' and `end` < '2025-02-09 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:13:17] Production.INFO: count ==151 [2025-02-09 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-09 05:13:04 - End Time 2025-02-09 08:13:04 [2025-02-09 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435757', 'tblTempUsageDetail_20' ) start [2025-02-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435757', 'tblTempUsageDetail_20' ) end [2025-02-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435757', 'tblTempVendorCDR_20' ) start [2025-02-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435757', 'tblTempVendorCDR_20' ) end [2025-02-09 08:13:17] Production.INFO: ProcessCDR(1,14435757,1,1,2) [2025-02-09 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435757', 'tblTempUsageDetail_20' ) start [2025-02-09 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435757', 'tblTempUsageDetail_20' ) end [2025-02-09 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:13:20] Production.INFO: ==4853== Releasing lock... [2025-02-09 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:14:05 [end_date_ymd] => 2025-02-09 08:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:14:05' and `end` < '2025-02-09 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-02-09 08:14:18] Production.INFO: count ==151 [2025-02-09 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:14:05 - End Time 2025-02-09 08:14:05 [2025-02-09 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435762', 'tblTempUsageDetail_20' ) start [2025-02-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435762', 'tblTempUsageDetail_20' ) end [2025-02-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435762', 'tblTempVendorCDR_20' ) start [2025-02-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435762', 'tblTempVendorCDR_20' ) end [2025-02-09 08:14:18] Production.INFO: ProcessCDR(1,14435762,1,1,2) [2025-02-09 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435762', 'tblTempUsageDetail_20' ) start [2025-02-09 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435762', 'tblTempUsageDetail_20' ) end [2025-02-09 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:14:21] Production.INFO: ==4931== Releasing lock... [2025-02-09 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:15:05 [end_date_ymd] => 2025-02-09 08:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:15:05' and `end` < '2025-02-09 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-02-09 08:15:18] Production.INFO: count ==151 [2025-02-09 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:15:05 - End Time 2025-02-09 08:15:05 [2025-02-09 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435767', 'tblTempUsageDetail_20' ) start [2025-02-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435767', 'tblTempUsageDetail_20' ) end [2025-02-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435767', 'tblTempVendorCDR_20' ) start [2025-02-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435767', 'tblTempVendorCDR_20' ) end [2025-02-09 08:15:18] Production.INFO: ProcessCDR(1,14435767,1,1,2) [2025-02-09 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435767', 'tblTempUsageDetail_20' ) start [2025-02-09 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435767', 'tblTempUsageDetail_20' ) end [2025-02-09 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:15:21] Production.INFO: ==5011== Releasing lock... [2025-02-09 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:16:05 [end_date_ymd] => 2025-02-09 08:16:05 [RateCDR] => 1 ) [2025-02-09 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:16:05' and `end` < '2025-02-09 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:16:18] Production.INFO: count ==152 [2025-02-09 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:16:05 - End Time 2025-02-09 08:16:05 [2025-02-09 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435772', 'tblTempUsageDetail_20' ) start [2025-02-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435772', 'tblTempUsageDetail_20' ) end [2025-02-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435772', 'tblTempVendorCDR_20' ) start [2025-02-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435772', 'tblTempVendorCDR_20' ) end [2025-02-09 08:16:18] Production.INFO: ProcessCDR(1,14435772,1,1,2) [2025-02-09 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435772', 'tblTempUsageDetail_20' ) start [2025-02-09 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435772', 'tblTempUsageDetail_20' ) end [2025-02-09 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:16:22] Production.INFO: ==5088== Releasing lock... [2025-02-09 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:17:05 [end_date_ymd] => 2025-02-09 08:17:05 [RateCDR] => 1 ) [2025-02-09 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:17:05' and `end` < '2025-02-09 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:17:18] Production.INFO: count ==152 [2025-02-09 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:17:05 - End Time 2025-02-09 08:17:05 [2025-02-09 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435777', 'tblTempUsageDetail_20' ) start [2025-02-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435777', 'tblTempUsageDetail_20' ) end [2025-02-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435777', 'tblTempVendorCDR_20' ) start [2025-02-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435777', 'tblTempVendorCDR_20' ) end [2025-02-09 08:17:18] Production.INFO: ProcessCDR(1,14435777,1,1,2) [2025-02-09 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435777', 'tblTempUsageDetail_20' ) start [2025-02-09 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435777', 'tblTempUsageDetail_20' ) end [2025-02-09 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:17:21] Production.INFO: ==5166== Releasing lock... [2025-02-09 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:18:05 [end_date_ymd] => 2025-02-09 08:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:18:05' and `end` < '2025-02-09 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-02-09 08:18:19] Production.INFO: count ==152 [2025-02-09 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:18:05 - End Time 2025-02-09 08:18:05 [2025-02-09 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435782', 'tblTempUsageDetail_20' ) start [2025-02-09 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435782', 'tblTempUsageDetail_20' ) end [2025-02-09 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435782', 'tblTempVendorCDR_20' ) start [2025-02-09 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435782', 'tblTempVendorCDR_20' ) end [2025-02-09 08:18:19] Production.INFO: ProcessCDR(1,14435782,1,1,2) [2025-02-09 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435782', 'tblTempUsageDetail_20' ) start [2025-02-09 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435782', 'tblTempUsageDetail_20' ) end [2025-02-09 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:18:22] Production.INFO: ==5253== Releasing lock... [2025-02-09 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:19:06 [end_date_ymd] => 2025-02-09 08:19:06 [RateCDR] => 1 ) [2025-02-09 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:19:06' and `end` < '2025-02-09 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:19:20] Production.INFO: count ==152 [2025-02-09 08:19:20] Production.ERROR: pbx CDR StartTime 2025-02-09 05:19:06 - End Time 2025-02-09 08:19:06 [2025-02-09 08:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435787', 'tblTempUsageDetail_20' ) start [2025-02-09 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435787', 'tblTempUsageDetail_20' ) end [2025-02-09 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435787', 'tblTempVendorCDR_20' ) start [2025-02-09 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435787', 'tblTempVendorCDR_20' ) end [2025-02-09 08:19:20] Production.INFO: ProcessCDR(1,14435787,1,1,2) [2025-02-09 08:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435787', 'tblTempUsageDetail_20' ) start [2025-02-09 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435787', 'tblTempUsageDetail_20' ) end [2025-02-09 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:19:22] Production.INFO: ==5334== Releasing lock... [2025-02-09 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:20:06 [end_date_ymd] => 2025-02-09 08:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:20:06' and `end` < '2025-02-09 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-02-09 08:20:19] Production.INFO: count ==149 [2025-02-09 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:20:06 - End Time 2025-02-09 08:20:06 [2025-02-09 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435793', 'tblTempUsageDetail_20' ) start [2025-02-09 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435793', 'tblTempUsageDetail_20' ) end [2025-02-09 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435793', 'tblTempVendorCDR_20' ) start [2025-02-09 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435793', 'tblTempVendorCDR_20' ) end [2025-02-09 08:20:20] Production.INFO: ProcessCDR(1,14435793,1,1,2) [2025-02-09 08:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435793', 'tblTempUsageDetail_20' ) start [2025-02-09 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435793', 'tblTempUsageDetail_20' ) end [2025-02-09 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:20:23] Production.INFO: ==5417== Releasing lock... [2025-02-09 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:21:05 [end_date_ymd] => 2025-02-09 08:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:21:05' and `end` < '2025-02-09 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-02-09 08:21:18] Production.INFO: count ==149 [2025-02-09 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:21:05 - End Time 2025-02-09 08:21:05 [2025-02-09 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435798', 'tblTempUsageDetail_20' ) start [2025-02-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435798', 'tblTempUsageDetail_20' ) end [2025-02-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435798', 'tblTempVendorCDR_20' ) start [2025-02-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435798', 'tblTempVendorCDR_20' ) end [2025-02-09 08:21:18] Production.INFO: ProcessCDR(1,14435798,1,1,2) [2025-02-09 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435798', 'tblTempUsageDetail_20' ) start [2025-02-09 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435798', 'tblTempUsageDetail_20' ) end [2025-02-09 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:21:21] Production.INFO: ==5542== Releasing lock... [2025-02-09 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:22:05 [end_date_ymd] => 2025-02-09 08:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:22:05' and `end` < '2025-02-09 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-02-09 08:22:18] Production.INFO: count ==149 [2025-02-09 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:22:05 - End Time 2025-02-09 08:22:05 [2025-02-09 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435803', 'tblTempUsageDetail_20' ) start [2025-02-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435803', 'tblTempUsageDetail_20' ) end [2025-02-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435803', 'tblTempVendorCDR_20' ) start [2025-02-09 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435803', 'tblTempVendorCDR_20' ) end [2025-02-09 08:22:18] Production.INFO: ProcessCDR(1,14435803,1,1,2) [2025-02-09 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435803', 'tblTempUsageDetail_20' ) start [2025-02-09 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435803', 'tblTempUsageDetail_20' ) end [2025-02-09 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:22:21] Production.INFO: ==5614== Releasing lock... [2025-02-09 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:23:05 [end_date_ymd] => 2025-02-09 08:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:23:05' and `end` < '2025-02-09 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-02-09 08:23:18] Production.INFO: count ==150 [2025-02-09 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:23:05 - End Time 2025-02-09 08:23:05 [2025-02-09 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435808', 'tblTempUsageDetail_20' ) start [2025-02-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435808', 'tblTempUsageDetail_20' ) end [2025-02-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435808', 'tblTempVendorCDR_20' ) start [2025-02-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435808', 'tblTempVendorCDR_20' ) end [2025-02-09 08:23:18] Production.INFO: ProcessCDR(1,14435808,1,1,2) [2025-02-09 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435808', 'tblTempUsageDetail_20' ) start [2025-02-09 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435808', 'tblTempUsageDetail_20' ) end [2025-02-09 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:23:23] Production.INFO: ==5693== Releasing lock... [2025-02-09 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:23:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:24:05 [end_date_ymd] => 2025-02-09 08:24:05 [RateCDR] => 1 ) [2025-02-09 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:24:05' and `end` < '2025-02-09 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:24:19] Production.INFO: count ==151 [2025-02-09 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:24:05 - End Time 2025-02-09 08:24:05 [2025-02-09 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435813', 'tblTempUsageDetail_20' ) start [2025-02-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435813', 'tblTempUsageDetail_20' ) end [2025-02-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435813', 'tblTempVendorCDR_20' ) start [2025-02-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435813', 'tblTempVendorCDR_20' ) end [2025-02-09 08:24:19] Production.INFO: ProcessCDR(1,14435813,1,1,2) [2025-02-09 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435813', 'tblTempUsageDetail_20' ) start [2025-02-09 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435813', 'tblTempUsageDetail_20' ) end [2025-02-09 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:24:23] Production.INFO: ==5777== Releasing lock... [2025-02-09 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:24:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:25:05 [end_date_ymd] => 2025-02-09 08:25:05 [RateCDR] => 1 ) [2025-02-09 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:25:05' and `end` < '2025-02-09 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:25:18] Production.INFO: count ==151 [2025-02-09 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:25:05 - End Time 2025-02-09 08:25:05 [2025-02-09 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435818', 'tblTempUsageDetail_20' ) start [2025-02-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435818', 'tblTempUsageDetail_20' ) end [2025-02-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435818', 'tblTempVendorCDR_20' ) start [2025-02-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435818', 'tblTempVendorCDR_20' ) end [2025-02-09 08:25:18] Production.INFO: ProcessCDR(1,14435818,1,1,2) [2025-02-09 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435818', 'tblTempUsageDetail_20' ) start [2025-02-09 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435818', 'tblTempUsageDetail_20' ) end [2025-02-09 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:25:21] Production.INFO: ==5856== Releasing lock... [2025-02-09 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:26:05 [end_date_ymd] => 2025-02-09 08:26:05 [RateCDR] => 1 ) [2025-02-09 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:26:05' and `end` < '2025-02-09 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:26:19] Production.INFO: count ==151 [2025-02-09 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:26:05 - End Time 2025-02-09 08:26:05 [2025-02-09 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435823', 'tblTempUsageDetail_20' ) start [2025-02-09 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435823', 'tblTempUsageDetail_20' ) end [2025-02-09 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435823', 'tblTempVendorCDR_20' ) start [2025-02-09 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435823', 'tblTempVendorCDR_20' ) end [2025-02-09 08:26:19] Production.INFO: ProcessCDR(1,14435823,1,1,2) [2025-02-09 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435823', 'tblTempUsageDetail_20' ) start [2025-02-09 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435823', 'tblTempUsageDetail_20' ) end [2025-02-09 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:26:22] Production.INFO: ==5934== Releasing lock... [2025-02-09 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:27:05 [end_date_ymd] => 2025-02-09 08:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:27:05' and `end` < '2025-02-09 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-02-09 08:27:18] Production.INFO: count ==151 [2025-02-09 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:27:05 - End Time 2025-02-09 08:27:05 [2025-02-09 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435828', 'tblTempUsageDetail_20' ) start [2025-02-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435828', 'tblTempUsageDetail_20' ) end [2025-02-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435828', 'tblTempVendorCDR_20' ) start [2025-02-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435828', 'tblTempVendorCDR_20' ) end [2025-02-09 08:27:18] Production.INFO: ProcessCDR(1,14435828,1,1,2) [2025-02-09 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435828', 'tblTempUsageDetail_20' ) start [2025-02-09 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435828', 'tblTempUsageDetail_20' ) end [2025-02-09 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:27:21] Production.INFO: ==6013== Releasing lock... [2025-02-09 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:28:05 [end_date_ymd] => 2025-02-09 08:28:05 [RateCDR] => 1 ) [2025-02-09 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:28:05' and `end` < '2025-02-09 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:28:18] Production.INFO: count ==151 [2025-02-09 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:28:05 - End Time 2025-02-09 08:28:05 [2025-02-09 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435833', 'tblTempUsageDetail_20' ) start [2025-02-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435833', 'tblTempUsageDetail_20' ) end [2025-02-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435833', 'tblTempVendorCDR_20' ) start [2025-02-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435833', 'tblTempVendorCDR_20' ) end [2025-02-09 08:28:18] Production.INFO: ProcessCDR(1,14435833,1,1,2) [2025-02-09 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435833', 'tblTempUsageDetail_20' ) start [2025-02-09 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435833', 'tblTempUsageDetail_20' ) end [2025-02-09 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:28:21] Production.INFO: ==6090== Releasing lock... [2025-02-09 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:29:05 [end_date_ymd] => 2025-02-09 08:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:29:05' and `end` < '2025-02-09 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-02-09 08:29:18] Production.INFO: count ==151 [2025-02-09 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:29:05 - End Time 2025-02-09 08:29:05 [2025-02-09 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435838', 'tblTempUsageDetail_20' ) start [2025-02-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435838', 'tblTempUsageDetail_20' ) end [2025-02-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435838', 'tblTempVendorCDR_20' ) start [2025-02-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435838', 'tblTempVendorCDR_20' ) end [2025-02-09 08:29:18] Production.INFO: ProcessCDR(1,14435838,1,1,2) [2025-02-09 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435838', 'tblTempUsageDetail_20' ) start [2025-02-09 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435838', 'tblTempUsageDetail_20' ) end [2025-02-09 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:29:21] Production.INFO: ==6171== Releasing lock... [2025-02-09 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:30:06 [end_date_ymd] => 2025-02-09 08:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:30:06' and `end` < '2025-02-09 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-02-09 08:30:19] Production.INFO: count ==153 [2025-02-09 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:30:06 - End Time 2025-02-09 08:30:06 [2025-02-09 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435844', 'tblTempUsageDetail_20' ) start [2025-02-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435844', 'tblTempUsageDetail_20' ) end [2025-02-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435844', 'tblTempVendorCDR_20' ) start [2025-02-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435844', 'tblTempVendorCDR_20' ) end [2025-02-09 08:30:19] Production.INFO: ProcessCDR(1,14435844,1,1,2) [2025-02-09 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435844', 'tblTempUsageDetail_20' ) start [2025-02-09 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435844', 'tblTempUsageDetail_20' ) end [2025-02-09 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:30:22] Production.INFO: ==6253== Releasing lock... [2025-02-09 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:31:05 [end_date_ymd] => 2025-02-09 08:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:31:05' and `end` < '2025-02-09 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-02-09 08:31:19] Production.INFO: count ==154 [2025-02-09 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:31:05 - End Time 2025-02-09 08:31:05 [2025-02-09 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435849', 'tblTempUsageDetail_20' ) start [2025-02-09 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435849', 'tblTempUsageDetail_20' ) end [2025-02-09 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435849', 'tblTempVendorCDR_20' ) start [2025-02-09 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435849', 'tblTempVendorCDR_20' ) end [2025-02-09 08:31:19] Production.INFO: ProcessCDR(1,14435849,1,1,2) [2025-02-09 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435849', 'tblTempUsageDetail_20' ) start [2025-02-09 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435849', 'tblTempUsageDetail_20' ) end [2025-02-09 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:31:22] Production.INFO: ==6334== Releasing lock... [2025-02-09 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:32:06 [end_date_ymd] => 2025-02-09 08:32:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:32:06' and `end` < '2025-02-09 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-02-09 08:32:18] Production.INFO: count ==154 [2025-02-09 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:32:06 - End Time 2025-02-09 08:32:06 [2025-02-09 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435854', 'tblTempUsageDetail_20' ) start [2025-02-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435854', 'tblTempUsageDetail_20' ) end [2025-02-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435854', 'tblTempVendorCDR_20' ) start [2025-02-09 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435854', 'tblTempVendorCDR_20' ) end [2025-02-09 08:32:18] Production.INFO: ProcessCDR(1,14435854,1,1,2) [2025-02-09 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435854', 'tblTempUsageDetail_20' ) start [2025-02-09 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435854', 'tblTempUsageDetail_20' ) end [2025-02-09 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:32:22] Production.INFO: ==6410== Releasing lock... [2025-02-09 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:33:05 [end_date_ymd] => 2025-02-09 08:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:33:05' and `end` < '2025-02-09 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-02-09 08:33:18] Production.INFO: count ==154 [2025-02-09 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:33:05 - End Time 2025-02-09 08:33:05 [2025-02-09 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435859', 'tblTempUsageDetail_20' ) start [2025-02-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435859', 'tblTempUsageDetail_20' ) end [2025-02-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435859', 'tblTempVendorCDR_20' ) start [2025-02-09 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435859', 'tblTempVendorCDR_20' ) end [2025-02-09 08:33:18] Production.INFO: ProcessCDR(1,14435859,1,1,2) [2025-02-09 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435859', 'tblTempUsageDetail_20' ) start [2025-02-09 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435859', 'tblTempUsageDetail_20' ) end [2025-02-09 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:33:21] Production.INFO: ==6487== Releasing lock... [2025-02-09 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:34:05 [end_date_ymd] => 2025-02-09 08:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:34:05' and `end` < '2025-02-09 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-02-09 08:34:19] Production.INFO: count ==154 [2025-02-09 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:34:05 - End Time 2025-02-09 08:34:05 [2025-02-09 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435864', 'tblTempUsageDetail_20' ) start [2025-02-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435864', 'tblTempUsageDetail_20' ) end [2025-02-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435864', 'tblTempVendorCDR_20' ) start [2025-02-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435864', 'tblTempVendorCDR_20' ) end [2025-02-09 08:34:19] Production.INFO: ProcessCDR(1,14435864,1,1,2) [2025-02-09 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435864', 'tblTempUsageDetail_20' ) start [2025-02-09 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435864', 'tblTempUsageDetail_20' ) end [2025-02-09 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:34:22] Production.INFO: ==6569== Releasing lock... [2025-02-09 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:35:04 [end_date_ymd] => 2025-02-09 08:35:04 [RateCDR] => 1 ) [2025-02-09 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:35:04' and `end` < '2025-02-09 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:35:18] Production.INFO: count ==154 [2025-02-09 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:35:04 - End Time 2025-02-09 08:35:04 [2025-02-09 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435869', 'tblTempUsageDetail_20' ) start [2025-02-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435869', 'tblTempUsageDetail_20' ) end [2025-02-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435869', 'tblTempVendorCDR_20' ) start [2025-02-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435869', 'tblTempVendorCDR_20' ) end [2025-02-09 08:35:18] Production.INFO: ProcessCDR(1,14435869,1,1,2) [2025-02-09 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435869', 'tblTempUsageDetail_20' ) start [2025-02-09 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435869', 'tblTempUsageDetail_20' ) end [2025-02-09 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:35:21] Production.INFO: ==6650== Releasing lock... [2025-02-09 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:36:05 [end_date_ymd] => 2025-02-09 08:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:36:05' and `end` < '2025-02-09 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-02-09 08:36:18] Production.INFO: count ==154 [2025-02-09 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:36:05 - End Time 2025-02-09 08:36:05 [2025-02-09 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435874', 'tblTempUsageDetail_20' ) start [2025-02-09 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435874', 'tblTempUsageDetail_20' ) end [2025-02-09 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435874', 'tblTempVendorCDR_20' ) start [2025-02-09 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435874', 'tblTempVendorCDR_20' ) end [2025-02-09 08:36:18] Production.INFO: ProcessCDR(1,14435874,1,1,2) [2025-02-09 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435874', 'tblTempUsageDetail_20' ) start [2025-02-09 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435874', 'tblTempUsageDetail_20' ) end [2025-02-09 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:36:21] Production.INFO: ==6769== Releasing lock... [2025-02-09 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:37:05 [end_date_ymd] => 2025-02-09 08:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:37:05' and `end` < '2025-02-09 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-02-09 08:37:19] Production.INFO: count ==154 [2025-02-09 08:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:37:05 - End Time 2025-02-09 08:37:05 [2025-02-09 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435879', 'tblTempUsageDetail_20' ) start [2025-02-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435879', 'tblTempUsageDetail_20' ) end [2025-02-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435879', 'tblTempVendorCDR_20' ) start [2025-02-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435879', 'tblTempVendorCDR_20' ) end [2025-02-09 08:37:19] Production.INFO: ProcessCDR(1,14435879,1,1,2) [2025-02-09 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435879', 'tblTempUsageDetail_20' ) start [2025-02-09 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435879', 'tblTempUsageDetail_20' ) end [2025-02-09 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:37:22] Production.INFO: ==6847== Releasing lock... [2025-02-09 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:38:05 [end_date_ymd] => 2025-02-09 08:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:38:05' and `end` < '2025-02-09 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-02-09 08:38:20] Production.INFO: count ==154 [2025-02-09 08:38:20] Production.ERROR: pbx CDR StartTime 2025-02-09 05:38:05 - End Time 2025-02-09 08:38:05 [2025-02-09 08:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435884', 'tblTempUsageDetail_20' ) start [2025-02-09 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435884', 'tblTempUsageDetail_20' ) end [2025-02-09 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435884', 'tblTempVendorCDR_20' ) start [2025-02-09 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435884', 'tblTempVendorCDR_20' ) end [2025-02-09 08:38:20] Production.INFO: ProcessCDR(1,14435884,1,1,2) [2025-02-09 08:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435884', 'tblTempUsageDetail_20' ) start [2025-02-09 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435884', 'tblTempUsageDetail_20' ) end [2025-02-09 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:38:23] Production.INFO: ==6923== Releasing lock... [2025-02-09 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:38:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:39:05 [end_date_ymd] => 2025-02-09 08:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:39:05' and `end` < '2025-02-09 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-02-09 08:39:18] Production.INFO: count ==155 [2025-02-09 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:39:05 - End Time 2025-02-09 08:39:05 [2025-02-09 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435889', 'tblTempUsageDetail_20' ) start [2025-02-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435889', 'tblTempUsageDetail_20' ) end [2025-02-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435889', 'tblTempVendorCDR_20' ) start [2025-02-09 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435889', 'tblTempVendorCDR_20' ) end [2025-02-09 08:39:18] Production.INFO: ProcessCDR(1,14435889,1,1,2) [2025-02-09 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435889', 'tblTempUsageDetail_20' ) start [2025-02-09 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435889', 'tblTempUsageDetail_20' ) end [2025-02-09 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:39:22] Production.INFO: ==7002== Releasing lock... [2025-02-09 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:40:06 [end_date_ymd] => 2025-02-09 08:40:06 [RateCDR] => 1 ) [2025-02-09 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:40:06' and `end` < '2025-02-09 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:40:21] Production.INFO: count ==152 [2025-02-09 08:40:21] Production.ERROR: pbx CDR StartTime 2025-02-09 05:40:06 - End Time 2025-02-09 08:40:06 [2025-02-09 08:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435895', 'tblTempUsageDetail_20' ) start [2025-02-09 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435895', 'tblTempUsageDetail_20' ) end [2025-02-09 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435895', 'tblTempVendorCDR_20' ) start [2025-02-09 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435895', 'tblTempVendorCDR_20' ) end [2025-02-09 08:40:21] Production.INFO: ProcessCDR(1,14435895,1,1,2) [2025-02-09 08:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435895', 'tblTempUsageDetail_20' ) start [2025-02-09 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435895', 'tblTempUsageDetail_20' ) end [2025-02-09 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:40:24] Production.INFO: ==7085== Releasing lock... [2025-02-09 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:40:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:41:04 [end_date_ymd] => 2025-02-09 08:41:04 [RateCDR] => 1 ) [2025-02-09 08: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-02-09 05:41:04' and `end` < '2025-02-09 08: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-02-09 08:41:18] Production.INFO: count ==153 [2025-02-09 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:41:04 - End Time 2025-02-09 08:41:04 [2025-02-09 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435900', 'tblTempUsageDetail_20' ) start [2025-02-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435900', 'tblTempUsageDetail_20' ) end [2025-02-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435900', 'tblTempVendorCDR_20' ) start [2025-02-09 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435900', 'tblTempVendorCDR_20' ) end [2025-02-09 08:41:18] Production.INFO: ProcessCDR(1,14435900,1,1,2) [2025-02-09 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435900', 'tblTempUsageDetail_20' ) start [2025-02-09 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435900', 'tblTempUsageDetail_20' ) end [2025-02-09 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:41:21] Production.INFO: ==7164== Releasing lock... [2025-02-09 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:42:05 [end_date_ymd] => 2025-02-09 08:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:42:05' and `end` < '2025-02-09 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-02-09 08:42:19] Production.INFO: count ==153 [2025-02-09 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:42:05 - End Time 2025-02-09 08:42:05 [2025-02-09 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435905', 'tblTempUsageDetail_20' ) start [2025-02-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435905', 'tblTempUsageDetail_20' ) end [2025-02-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435905', 'tblTempVendorCDR_20' ) start [2025-02-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435905', 'tblTempVendorCDR_20' ) end [2025-02-09 08:42:19] Production.INFO: ProcessCDR(1,14435905,1,1,2) [2025-02-09 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435905', 'tblTempUsageDetail_20' ) start [2025-02-09 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435905', 'tblTempUsageDetail_20' ) end [2025-02-09 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:42:22] Production.INFO: ==7241== Releasing lock... [2025-02-09 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:43:05 [end_date_ymd] => 2025-02-09 08:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:43:05' and `end` < '2025-02-09 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-02-09 08:43:18] Production.INFO: count ==153 [2025-02-09 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:43:05 - End Time 2025-02-09 08:43:05 [2025-02-09 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435910', 'tblTempUsageDetail_20' ) start [2025-02-09 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435910', 'tblTempUsageDetail_20' ) end [2025-02-09 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435910', 'tblTempVendorCDR_20' ) start [2025-02-09 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435910', 'tblTempVendorCDR_20' ) end [2025-02-09 08:43:18] Production.INFO: ProcessCDR(1,14435910,1,1,2) [2025-02-09 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435910', 'tblTempUsageDetail_20' ) start [2025-02-09 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435910', 'tblTempUsageDetail_20' ) end [2025-02-09 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:43:21] Production.INFO: ==7320== Releasing lock... [2025-02-09 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:44:05 [end_date_ymd] => 2025-02-09 08:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:44:05' and `end` < '2025-02-09 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-02-09 08:44:18] Production.INFO: count ==153 [2025-02-09 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:44:05 - End Time 2025-02-09 08:44:05 [2025-02-09 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435915', 'tblTempUsageDetail_20' ) start [2025-02-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435915', 'tblTempUsageDetail_20' ) end [2025-02-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435915', 'tblTempVendorCDR_20' ) start [2025-02-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435915', 'tblTempVendorCDR_20' ) end [2025-02-09 08:44:18] Production.INFO: ProcessCDR(1,14435915,1,1,2) [2025-02-09 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435915', 'tblTempUsageDetail_20' ) start [2025-02-09 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435915', 'tblTempUsageDetail_20' ) end [2025-02-09 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:44:21] Production.INFO: ==7403== Releasing lock... [2025-02-09 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:45:05 [end_date_ymd] => 2025-02-09 08:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:45:05' and `end` < '2025-02-09 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-02-09 08:45:18] Production.INFO: count ==153 [2025-02-09 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:45:05 - End Time 2025-02-09 08:45:05 [2025-02-09 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435920', 'tblTempUsageDetail_20' ) start [2025-02-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435920', 'tblTempUsageDetail_20' ) end [2025-02-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435920', 'tblTempVendorCDR_20' ) start [2025-02-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435920', 'tblTempVendorCDR_20' ) end [2025-02-09 08:45:18] Production.INFO: ProcessCDR(1,14435920,1,1,2) [2025-02-09 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435920', 'tblTempUsageDetail_20' ) start [2025-02-09 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435920', 'tblTempUsageDetail_20' ) end [2025-02-09 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:45:21] Production.INFO: ==7483== Releasing lock... [2025-02-09 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:46:05 [end_date_ymd] => 2025-02-09 08:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:46:05' and `end` < '2025-02-09 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-02-09 08:46:18] Production.INFO: count ==153 [2025-02-09 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:46:05 - End Time 2025-02-09 08:46:05 [2025-02-09 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435925', 'tblTempUsageDetail_20' ) start [2025-02-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435925', 'tblTempUsageDetail_20' ) end [2025-02-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435925', 'tblTempVendorCDR_20' ) start [2025-02-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435925', 'tblTempVendorCDR_20' ) end [2025-02-09 08:46:18] Production.INFO: ProcessCDR(1,14435925,1,1,2) [2025-02-09 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435925', 'tblTempUsageDetail_20' ) start [2025-02-09 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435925', 'tblTempUsageDetail_20' ) end [2025-02-09 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:46:21] Production.INFO: ==7565== Releasing lock... [2025-02-09 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:47:05 [end_date_ymd] => 2025-02-09 08:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:47:05' and `end` < '2025-02-09 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-02-09 08:47:18] Production.INFO: count ==153 [2025-02-09 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:47:05 - End Time 2025-02-09 08:47:05 [2025-02-09 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435930', 'tblTempUsageDetail_20' ) start [2025-02-09 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435930', 'tblTempUsageDetail_20' ) end [2025-02-09 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435930', 'tblTempVendorCDR_20' ) start [2025-02-09 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435930', 'tblTempVendorCDR_20' ) end [2025-02-09 08:47:18] Production.INFO: ProcessCDR(1,14435930,1,1,2) [2025-02-09 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435930', 'tblTempUsageDetail_20' ) start [2025-02-09 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435930', 'tblTempUsageDetail_20' ) end [2025-02-09 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:47:21] Production.INFO: ==7649== Releasing lock... [2025-02-09 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:48:05 [end_date_ymd] => 2025-02-09 08:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:48:05' and `end` < '2025-02-09 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-02-09 08:48:18] Production.INFO: count ==153 [2025-02-09 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:48:05 - End Time 2025-02-09 08:48:05 [2025-02-09 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435935', 'tblTempUsageDetail_20' ) start [2025-02-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435935', 'tblTempUsageDetail_20' ) end [2025-02-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435935', 'tblTempVendorCDR_20' ) start [2025-02-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435935', 'tblTempVendorCDR_20' ) end [2025-02-09 08:48:18] Production.INFO: ProcessCDR(1,14435935,1,1,2) [2025-02-09 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435935', 'tblTempUsageDetail_20' ) start [2025-02-09 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435935', 'tblTempUsageDetail_20' ) end [2025-02-09 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:48:21] Production.INFO: ==7727== Releasing lock... [2025-02-09 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:49:05 [end_date_ymd] => 2025-02-09 08:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:49:05' and `end` < '2025-02-09 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-02-09 08:49:18] Production.INFO: count ==153 [2025-02-09 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:49:05 - End Time 2025-02-09 08:49:05 [2025-02-09 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435940', 'tblTempUsageDetail_20' ) start [2025-02-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435940', 'tblTempUsageDetail_20' ) end [2025-02-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435940', 'tblTempVendorCDR_20' ) start [2025-02-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435940', 'tblTempVendorCDR_20' ) end [2025-02-09 08:49:18] Production.INFO: ProcessCDR(1,14435940,1,1,2) [2025-02-09 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435940', 'tblTempUsageDetail_20' ) start [2025-02-09 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435940', 'tblTempUsageDetail_20' ) end [2025-02-09 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:49:21] Production.INFO: ==7806== Releasing lock... [2025-02-09 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:50:06 [end_date_ymd] => 2025-02-09 08:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:50:06' and `end` < '2025-02-09 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-02-09 08:50:20] Production.INFO: count ==153 [2025-02-09 08:50:20] Production.ERROR: pbx CDR StartTime 2025-02-09 05:50:06 - End Time 2025-02-09 08:50:06 [2025-02-09 08:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435946', 'tblTempUsageDetail_20' ) start [2025-02-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435946', 'tblTempUsageDetail_20' ) end [2025-02-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435946', 'tblTempVendorCDR_20' ) start [2025-02-09 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435946', 'tblTempVendorCDR_20' ) end [2025-02-09 08:50:20] Production.INFO: ProcessCDR(1,14435946,1,1,2) [2025-02-09 08:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435946', 'tblTempUsageDetail_20' ) start [2025-02-09 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435946', 'tblTempUsageDetail_20' ) end [2025-02-09 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:50:23] Production.INFO: ==7886== Releasing lock... [2025-02-09 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:51:05 [end_date_ymd] => 2025-02-09 08:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:51:05' and `end` < '2025-02-09 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-02-09 08:51:18] Production.INFO: count ==153 [2025-02-09 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:51:05 - End Time 2025-02-09 08:51:05 [2025-02-09 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435951', 'tblTempUsageDetail_20' ) start [2025-02-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435951', 'tblTempUsageDetail_20' ) end [2025-02-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435951', 'tblTempVendorCDR_20' ) start [2025-02-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435951', 'tblTempVendorCDR_20' ) end [2025-02-09 08:51:18] Production.INFO: ProcessCDR(1,14435951,1,1,2) [2025-02-09 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435951', 'tblTempUsageDetail_20' ) start [2025-02-09 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435951', 'tblTempUsageDetail_20' ) end [2025-02-09 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:51:21] Production.INFO: ==7969== Releasing lock... [2025-02-09 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:52:05 [end_date_ymd] => 2025-02-09 08:52:05 [RateCDR] => 1 ) [2025-02-09 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:52:05' and `end` < '2025-02-09 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:52:19] Production.INFO: count ==153 [2025-02-09 08:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:52:05 - End Time 2025-02-09 08:52:05 [2025-02-09 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435956', 'tblTempUsageDetail_20' ) start [2025-02-09 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435956', 'tblTempUsageDetail_20' ) end [2025-02-09 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435956', 'tblTempVendorCDR_20' ) start [2025-02-09 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435956', 'tblTempVendorCDR_20' ) end [2025-02-09 08:52:19] Production.INFO: ProcessCDR(1,14435956,1,1,2) [2025-02-09 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435956', 'tblTempUsageDetail_20' ) start [2025-02-09 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435956', 'tblTempUsageDetail_20' ) end [2025-02-09 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:52:22] Production.INFO: ==8088== Releasing lock... [2025-02-09 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:53:05 [end_date_ymd] => 2025-02-09 08:53:05 [RateCDR] => 1 ) [2025-02-09 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:53:05' and `end` < '2025-02-09 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:53:18] Production.INFO: count ==153 [2025-02-09 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:53:05 - End Time 2025-02-09 08:53:05 [2025-02-09 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435961', 'tblTempUsageDetail_20' ) start [2025-02-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435961', 'tblTempUsageDetail_20' ) end [2025-02-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435961', 'tblTempVendorCDR_20' ) start [2025-02-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435961', 'tblTempVendorCDR_20' ) end [2025-02-09 08:53:18] Production.INFO: ProcessCDR(1,14435961,1,1,2) [2025-02-09 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435961', 'tblTempUsageDetail_20' ) start [2025-02-09 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435961', 'tblTempUsageDetail_20' ) end [2025-02-09 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:53:21] Production.INFO: ==8166== Releasing lock... [2025-02-09 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:54:04 [end_date_ymd] => 2025-02-09 08:54:04 [RateCDR] => 1 ) [2025-02-09 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:54:04' and `end` < '2025-02-09 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:54:18] Production.INFO: count ==153 [2025-02-09 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:54:04 - End Time 2025-02-09 08:54:04 [2025-02-09 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435966', 'tblTempUsageDetail_20' ) start [2025-02-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435966', 'tblTempUsageDetail_20' ) end [2025-02-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435966', 'tblTempVendorCDR_20' ) start [2025-02-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435966', 'tblTempVendorCDR_20' ) end [2025-02-09 08:54:18] Production.INFO: ProcessCDR(1,14435966,1,1,2) [2025-02-09 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435966', 'tblTempUsageDetail_20' ) start [2025-02-09 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435966', 'tblTempUsageDetail_20' ) end [2025-02-09 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:54:21] Production.INFO: ==8244== Releasing lock... [2025-02-09 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:55:05 [end_date_ymd] => 2025-02-09 08:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:55:05' and `end` < '2025-02-09 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-02-09 08:55:18] Production.INFO: count ==153 [2025-02-09 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:55:05 - End Time 2025-02-09 08:55:05 [2025-02-09 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435971', 'tblTempUsageDetail_20' ) start [2025-02-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435971', 'tblTempUsageDetail_20' ) end [2025-02-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435971', 'tblTempVendorCDR_20' ) start [2025-02-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435971', 'tblTempVendorCDR_20' ) end [2025-02-09 08:55:18] Production.INFO: ProcessCDR(1,14435971,1,1,2) [2025-02-09 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435971', 'tblTempUsageDetail_20' ) start [2025-02-09 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435971', 'tblTempUsageDetail_20' ) end [2025-02-09 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:55:21] Production.INFO: ==8327== Releasing lock... [2025-02-09 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:56:05 [end_date_ymd] => 2025-02-09 08:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:56:05' and `end` < '2025-02-09 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-02-09 08:56:18] Production.INFO: count ==153 [2025-02-09 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:56:05 - End Time 2025-02-09 08:56:05 [2025-02-09 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435976', 'tblTempUsageDetail_20' ) start [2025-02-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435976', 'tblTempUsageDetail_20' ) end [2025-02-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435976', 'tblTempVendorCDR_20' ) start [2025-02-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435976', 'tblTempVendorCDR_20' ) end [2025-02-09 08:56:18] Production.INFO: ProcessCDR(1,14435976,1,1,2) [2025-02-09 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435976', 'tblTempUsageDetail_20' ) start [2025-02-09 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435976', 'tblTempUsageDetail_20' ) end [2025-02-09 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:56:21] Production.INFO: ==8424== Releasing lock... [2025-02-09 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:57:05 [end_date_ymd] => 2025-02-09 08:57:05 [RateCDR] => 1 ) [2025-02-09 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 05:57:05' and `end` < '2025-02-09 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 08:57:18] Production.INFO: count ==153 [2025-02-09 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:57:05 - End Time 2025-02-09 08:57:05 [2025-02-09 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435981', 'tblTempUsageDetail_20' ) start [2025-02-09 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435981', 'tblTempUsageDetail_20' ) end [2025-02-09 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435981', 'tblTempVendorCDR_20' ) start [2025-02-09 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435981', 'tblTempVendorCDR_20' ) end [2025-02-09 08:57:18] Production.INFO: ProcessCDR(1,14435981,1,1,2) [2025-02-09 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435981', 'tblTempUsageDetail_20' ) start [2025-02-09 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435981', 'tblTempUsageDetail_20' ) end [2025-02-09 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:57:22] Production.INFO: ==8514== Releasing lock... [2025-02-09 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:58:05 [end_date_ymd] => 2025-02-09 08:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:58:05' and `end` < '2025-02-09 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-02-09 08:58:18] Production.INFO: count ==154 [2025-02-09 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 05:58:05 - End Time 2025-02-09 08:58:05 [2025-02-09 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435986', 'tblTempUsageDetail_20' ) start [2025-02-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435986', 'tblTempUsageDetail_20' ) end [2025-02-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435986', 'tblTempVendorCDR_20' ) start [2025-02-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435986', 'tblTempVendorCDR_20' ) end [2025-02-09 08:58:18] Production.INFO: ProcessCDR(1,14435986,1,1,2) [2025-02-09 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435986', 'tblTempUsageDetail_20' ) start [2025-02-09 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435986', 'tblTempUsageDetail_20' ) end [2025-02-09 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:58:23] Production.INFO: ==8613== Releasing lock... [2025-02-09 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 05:59:05 [end_date_ymd] => 2025-02-09 08:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 05:59:05' and `end` < '2025-02-09 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-02-09 08:59:19] Production.INFO: count ==154 [2025-02-09 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 05:59:05 - End Time 2025-02-09 08:59:05 [2025-02-09 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435991', 'tblTempUsageDetail_20' ) start [2025-02-09 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435991', 'tblTempUsageDetail_20' ) end [2025-02-09 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435991', 'tblTempVendorCDR_20' ) start [2025-02-09 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435991', 'tblTempVendorCDR_20' ) end [2025-02-09 08:59:19] Production.INFO: ProcessCDR(1,14435991,1,1,2) [2025-02-09 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435991', 'tblTempUsageDetail_20' ) start [2025-02-09 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435991', 'tblTempUsageDetail_20' ) end [2025-02-09 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 08:59:22] Production.INFO: ==8705== Releasing lock... [2025-02-09 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 08:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:00:06 [end_date_ymd] => 2025-02-09 09:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:00:06' and `end` < '2025-02-09 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-02-09 09:00:19] Production.INFO: count ==154 [2025-02-09 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:00:06 - End Time 2025-02-09 09:00:06 [2025-02-09 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435997', 'tblTempUsageDetail_20' ) start [2025-02-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14435997', 'tblTempUsageDetail_20' ) end [2025-02-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435997', 'tblTempVendorCDR_20' ) start [2025-02-09 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14435997', 'tblTempVendorCDR_20' ) end [2025-02-09 09:00:19] Production.INFO: ProcessCDR(1,14435997,1,1,2) [2025-02-09 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14435997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14435997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14435997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14435997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435997', 'tblTempUsageDetail_20' ) start [2025-02-09 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14435997', 'tblTempUsageDetail_20' ) end [2025-02-09 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:00:22] Production.INFO: ==8809== Releasing lock... [2025-02-09 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:01:05 [end_date_ymd] => 2025-02-09 09:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:01:05' and `end` < '2025-02-09 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-02-09 09:01:19] Production.INFO: count ==154 [2025-02-09 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:01:05 - End Time 2025-02-09 09:01:05 [2025-02-09 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436002', 'tblTempUsageDetail_20' ) start [2025-02-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436002', 'tblTempUsageDetail_20' ) end [2025-02-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436002', 'tblTempVendorCDR_20' ) start [2025-02-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436002', 'tblTempVendorCDR_20' ) end [2025-02-09 09:01:19] Production.INFO: ProcessCDR(1,14436002,1,1,2) [2025-02-09 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436002', 'tblTempUsageDetail_20' ) start [2025-02-09 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436002', 'tblTempUsageDetail_20' ) end [2025-02-09 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:01:22] Production.INFO: ==8922== Releasing lock... [2025-02-09 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:02:05 [end_date_ymd] => 2025-02-09 09:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:02:05' and `end` < '2025-02-09 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-02-09 09:02:19] Production.INFO: count ==154 [2025-02-09 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:02:05 - End Time 2025-02-09 09:02:05 [2025-02-09 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436007', 'tblTempUsageDetail_20' ) start [2025-02-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436007', 'tblTempUsageDetail_20' ) end [2025-02-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436007', 'tblTempVendorCDR_20' ) start [2025-02-09 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436007', 'tblTempVendorCDR_20' ) end [2025-02-09 09:02:19] Production.INFO: ProcessCDR(1,14436007,1,1,2) [2025-02-09 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436007', 'tblTempUsageDetail_20' ) start [2025-02-09 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436007', 'tblTempUsageDetail_20' ) end [2025-02-09 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:02:22] Production.INFO: ==9019== Releasing lock... [2025-02-09 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:03:05 [end_date_ymd] => 2025-02-09 09:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:03:05' and `end` < '2025-02-09 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-02-09 09:03:18] Production.INFO: count ==154 [2025-02-09 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:03:05 - End Time 2025-02-09 09:03:05 [2025-02-09 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436012', 'tblTempUsageDetail_20' ) start [2025-02-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436012', 'tblTempUsageDetail_20' ) end [2025-02-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436012', 'tblTempVendorCDR_20' ) start [2025-02-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436012', 'tblTempVendorCDR_20' ) end [2025-02-09 09:03:18] Production.INFO: ProcessCDR(1,14436012,1,1,2) [2025-02-09 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436012', 'tblTempUsageDetail_20' ) start [2025-02-09 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436012', 'tblTempUsageDetail_20' ) end [2025-02-09 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:03:21] Production.INFO: ==9120== Releasing lock... [2025-02-09 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:04:05 [end_date_ymd] => 2025-02-09 09:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:04:05' and `end` < '2025-02-09 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-02-09 09:04:19] Production.INFO: count ==154 [2025-02-09 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:04:05 - End Time 2025-02-09 09:04:05 [2025-02-09 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436017', 'tblTempUsageDetail_20' ) start [2025-02-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436017', 'tblTempUsageDetail_20' ) end [2025-02-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436017', 'tblTempVendorCDR_20' ) start [2025-02-09 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436017', 'tblTempVendorCDR_20' ) end [2025-02-09 09:04:19] Production.INFO: ProcessCDR(1,14436017,1,1,2) [2025-02-09 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436017', 'tblTempUsageDetail_20' ) start [2025-02-09 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436017', 'tblTempUsageDetail_20' ) end [2025-02-09 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:04:22] Production.INFO: ==9221== Releasing lock... [2025-02-09 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:05:05 [end_date_ymd] => 2025-02-09 09:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:05:05' and `end` < '2025-02-09 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-02-09 09:05:19] Production.INFO: count ==154 [2025-02-09 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:05:05 - End Time 2025-02-09 09:05:05 [2025-02-09 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436022', 'tblTempUsageDetail_20' ) start [2025-02-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436022', 'tblTempUsageDetail_20' ) end [2025-02-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436022', 'tblTempVendorCDR_20' ) start [2025-02-09 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436022', 'tblTempVendorCDR_20' ) end [2025-02-09 09:05:19] Production.INFO: ProcessCDR(1,14436022,1,1,2) [2025-02-09 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436022', 'tblTempUsageDetail_20' ) start [2025-02-09 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436022', 'tblTempUsageDetail_20' ) end [2025-02-09 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:05:22] Production.INFO: ==9322== Releasing lock... [2025-02-09 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:06:05 [end_date_ymd] => 2025-02-09 09:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:06:05' and `end` < '2025-02-09 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-02-09 09:06:18] Production.INFO: count ==154 [2025-02-09 09:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:06:05 - End Time 2025-02-09 09:06:05 [2025-02-09 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436027', 'tblTempUsageDetail_20' ) start [2025-02-09 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436027', 'tblTempUsageDetail_20' ) end [2025-02-09 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436027', 'tblTempVendorCDR_20' ) start [2025-02-09 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436027', 'tblTempVendorCDR_20' ) end [2025-02-09 09:06:18] Production.INFO: ProcessCDR(1,14436027,1,1,2) [2025-02-09 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436027', 'tblTempUsageDetail_20' ) start [2025-02-09 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436027', 'tblTempUsageDetail_20' ) end [2025-02-09 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:06:21] Production.INFO: ==9418== Releasing lock... [2025-02-09 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:07:04 [end_date_ymd] => 2025-02-09 09:07:04 [RateCDR] => 1 ) [2025-02-09 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:07:04' and `end` < '2025-02-09 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:07:17] Production.INFO: count ==152 [2025-02-09 09:07:17] Production.ERROR: pbx CDR StartTime 2025-02-09 06:07:04 - End Time 2025-02-09 09:07:04 [2025-02-09 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436032', 'tblTempUsageDetail_20' ) start [2025-02-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436032', 'tblTempUsageDetail_20' ) end [2025-02-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436032', 'tblTempVendorCDR_20' ) start [2025-02-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436032', 'tblTempVendorCDR_20' ) end [2025-02-09 09:07:17] Production.INFO: ProcessCDR(1,14436032,1,1,2) [2025-02-09 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436032', 'tblTempUsageDetail_20' ) start [2025-02-09 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436032', 'tblTempUsageDetail_20' ) end [2025-02-09 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:07:20] Production.INFO: ==9550== Releasing lock... [2025-02-09 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:08:05 [end_date_ymd] => 2025-02-09 09:08:05 [RateCDR] => 1 ) [2025-02-09 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:08:05' and `end` < '2025-02-09 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:08:19] Production.INFO: count ==154 [2025-02-09 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:08:05 - End Time 2025-02-09 09:08:05 [2025-02-09 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436037', 'tblTempUsageDetail_20' ) start [2025-02-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436037', 'tblTempUsageDetail_20' ) end [2025-02-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436037', 'tblTempVendorCDR_20' ) start [2025-02-09 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436037', 'tblTempVendorCDR_20' ) end [2025-02-09 09:08:19] Production.INFO: ProcessCDR(1,14436037,1,1,2) [2025-02-09 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436037', 'tblTempUsageDetail_20' ) start [2025-02-09 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436037', 'tblTempUsageDetail_20' ) end [2025-02-09 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:08:22] Production.INFO: ==9647== Releasing lock... [2025-02-09 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:08:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:09:06 [end_date_ymd] => 2025-02-09 09:09:06 [RateCDR] => 1 ) [2025-02-09 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:09:06' and `end` < '2025-02-09 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:09:19] Production.INFO: count ==154 [2025-02-09 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:09:06 - End Time 2025-02-09 09:09:06 [2025-02-09 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436042', 'tblTempUsageDetail_20' ) start [2025-02-09 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436042', 'tblTempUsageDetail_20' ) end [2025-02-09 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436042', 'tblTempVendorCDR_20' ) start [2025-02-09 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436042', 'tblTempVendorCDR_20' ) end [2025-02-09 09:09:19] Production.INFO: ProcessCDR(1,14436042,1,1,2) [2025-02-09 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436042', 'tblTempUsageDetail_20' ) start [2025-02-09 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436042', 'tblTempUsageDetail_20' ) end [2025-02-09 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:09:23] Production.INFO: ==9735== Releasing lock... [2025-02-09 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:09:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:10:06 [end_date_ymd] => 2025-02-09 09:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:10:06' and `end` < '2025-02-09 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-02-09 09:10:19] Production.INFO: count ==156 [2025-02-09 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:10:06 - End Time 2025-02-09 09:10:06 [2025-02-09 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436048', 'tblTempUsageDetail_20' ) start [2025-02-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436048', 'tblTempUsageDetail_20' ) end [2025-02-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436048', 'tblTempVendorCDR_20' ) start [2025-02-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436048', 'tblTempVendorCDR_20' ) end [2025-02-09 09:10:19] Production.INFO: ProcessCDR(1,14436048,1,1,2) [2025-02-09 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436048', 'tblTempUsageDetail_20' ) start [2025-02-09 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436048', 'tblTempUsageDetail_20' ) end [2025-02-09 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:10:22] Production.INFO: ==9825== Releasing lock... [2025-02-09 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:11:05 [end_date_ymd] => 2025-02-09 09:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:11:05' and `end` < '2025-02-09 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-02-09 09:11:19] Production.INFO: count ==156 [2025-02-09 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:11:05 - End Time 2025-02-09 09:11:05 [2025-02-09 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436053', 'tblTempUsageDetail_20' ) start [2025-02-09 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436053', 'tblTempUsageDetail_20' ) end [2025-02-09 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436053', 'tblTempVendorCDR_20' ) start [2025-02-09 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436053', 'tblTempVendorCDR_20' ) end [2025-02-09 09:11:19] Production.INFO: ProcessCDR(1,14436053,1,1,2) [2025-02-09 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436053', 'tblTempUsageDetail_20' ) start [2025-02-09 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436053', 'tblTempUsageDetail_20' ) end [2025-02-09 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:11:22] Production.INFO: ==9916== Releasing lock... [2025-02-09 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:12:05 [end_date_ymd] => 2025-02-09 09:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:12:05' and `end` < '2025-02-09 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-02-09 09:12:18] Production.INFO: count ==156 [2025-02-09 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:12:05 - End Time 2025-02-09 09:12:05 [2025-02-09 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436058', 'tblTempUsageDetail_20' ) start [2025-02-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436058', 'tblTempUsageDetail_20' ) end [2025-02-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436058', 'tblTempVendorCDR_20' ) start [2025-02-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436058', 'tblTempVendorCDR_20' ) end [2025-02-09 09:12:18] Production.INFO: ProcessCDR(1,14436058,1,1,2) [2025-02-09 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436058', 'tblTempUsageDetail_20' ) start [2025-02-09 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436058', 'tblTempUsageDetail_20' ) end [2025-02-09 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:12:21] Production.INFO: ==10005== Releasing lock... [2025-02-09 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:13:06 [end_date_ymd] => 2025-02-09 09:13:06 [RateCDR] => 1 ) [2025-02-09 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:13:06' and `end` < '2025-02-09 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:13:19] Production.INFO: count ==156 [2025-02-09 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:13:06 - End Time 2025-02-09 09:13:06 [2025-02-09 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436063', 'tblTempUsageDetail_20' ) start [2025-02-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436063', 'tblTempUsageDetail_20' ) end [2025-02-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436063', 'tblTempVendorCDR_20' ) start [2025-02-09 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436063', 'tblTempVendorCDR_20' ) end [2025-02-09 09:13:19] Production.INFO: ProcessCDR(1,14436063,1,1,2) [2025-02-09 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436063', 'tblTempUsageDetail_20' ) start [2025-02-09 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436063', 'tblTempUsageDetail_20' ) end [2025-02-09 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:13:23] Production.INFO: ==10100== Releasing lock... [2025-02-09 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:13:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:14:05 [end_date_ymd] => 2025-02-09 09:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:14:05' and `end` < '2025-02-09 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-02-09 09:14:18] Production.INFO: count ==159 [2025-02-09 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:14:05 - End Time 2025-02-09 09:14:05 [2025-02-09 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436068', 'tblTempUsageDetail_20' ) start [2025-02-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436068', 'tblTempUsageDetail_20' ) end [2025-02-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436068', 'tblTempVendorCDR_20' ) start [2025-02-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436068', 'tblTempVendorCDR_20' ) end [2025-02-09 09:14:18] Production.INFO: ProcessCDR(1,14436068,1,1,2) [2025-02-09 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436068', 'tblTempUsageDetail_20' ) start [2025-02-09 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436068', 'tblTempUsageDetail_20' ) end [2025-02-09 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:14:21] Production.INFO: ==10222== Releasing lock... [2025-02-09 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:14:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:15:05 [end_date_ymd] => 2025-02-09 09:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:15:05' and `end` < '2025-02-09 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-02-09 09:15:20] Production.INFO: count ==159 [2025-02-09 09:15:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:15:05 - End Time 2025-02-09 09:15:05 [2025-02-09 09:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436073', 'tblTempUsageDetail_20' ) start [2025-02-09 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436073', 'tblTempUsageDetail_20' ) end [2025-02-09 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436073', 'tblTempVendorCDR_20' ) start [2025-02-09 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436073', 'tblTempVendorCDR_20' ) end [2025-02-09 09:15:20] Production.INFO: ProcessCDR(1,14436073,1,1,2) [2025-02-09 09:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436073', 'tblTempUsageDetail_20' ) start [2025-02-09 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436073', 'tblTempUsageDetail_20' ) end [2025-02-09 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:15:23] Production.INFO: ==10317== Releasing lock... [2025-02-09 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:15:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:16:05 [end_date_ymd] => 2025-02-09 09:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:16:05' and `end` < '2025-02-09 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-02-09 09:16:19] Production.INFO: count ==159 [2025-02-09 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:16:05 - End Time 2025-02-09 09:16:05 [2025-02-09 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436077', 'tblTempUsageDetail_20' ) start [2025-02-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436077', 'tblTempUsageDetail_20' ) end [2025-02-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436077', 'tblTempVendorCDR_20' ) start [2025-02-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436077', 'tblTempVendorCDR_20' ) end [2025-02-09 09:16:19] Production.INFO: ProcessCDR(1,14436077,1,1,2) [2025-02-09 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436077', 'tblTempUsageDetail_20' ) start [2025-02-09 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436077', 'tblTempUsageDetail_20' ) end [2025-02-09 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:16:22] Production.INFO: ==10411== Releasing lock... [2025-02-09 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:16:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:17:05 [end_date_ymd] => 2025-02-09 09:17:05 [RateCDR] => 1 ) [2025-02-09 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:17:05' and `end` < '2025-02-09 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:17:19] Production.INFO: count ==156 [2025-02-09 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:17:05 - End Time 2025-02-09 09:17:05 [2025-02-09 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436083', 'tblTempUsageDetail_20' ) start [2025-02-09 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436083', 'tblTempUsageDetail_20' ) end [2025-02-09 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436083', 'tblTempVendorCDR_20' ) start [2025-02-09 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436083', 'tblTempVendorCDR_20' ) end [2025-02-09 09:17:19] Production.INFO: ProcessCDR(1,14436083,1,1,2) [2025-02-09 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436083', 'tblTempUsageDetail_20' ) start [2025-02-09 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436083', 'tblTempUsageDetail_20' ) end [2025-02-09 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:17:23] Production.INFO: ==10501== Releasing lock... [2025-02-09 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:18:05 [end_date_ymd] => 2025-02-09 09:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:18:05' and `end` < '2025-02-09 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-02-09 09:18:18] Production.INFO: count ==158 [2025-02-09 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:18:05 - End Time 2025-02-09 09:18:05 [2025-02-09 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436088', 'tblTempUsageDetail_20' ) start [2025-02-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436088', 'tblTempUsageDetail_20' ) end [2025-02-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436088', 'tblTempVendorCDR_20' ) start [2025-02-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436088', 'tblTempVendorCDR_20' ) end [2025-02-09 09:18:18] Production.INFO: ProcessCDR(1,14436088,1,1,2) [2025-02-09 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436088', 'tblTempUsageDetail_20' ) start [2025-02-09 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436088', 'tblTempUsageDetail_20' ) end [2025-02-09 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:18:21] Production.INFO: ==10592== Releasing lock... [2025-02-09 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:18:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:19:05 [end_date_ymd] => 2025-02-09 09:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:19:05' and `end` < '2025-02-09 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-02-09 09:19:18] Production.INFO: count ==159 [2025-02-09 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:19:05 - End Time 2025-02-09 09:19:05 [2025-02-09 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436093', 'tblTempUsageDetail_20' ) start [2025-02-09 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436093', 'tblTempUsageDetail_20' ) end [2025-02-09 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436093', 'tblTempVendorCDR_20' ) start [2025-02-09 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436093', 'tblTempVendorCDR_20' ) end [2025-02-09 09:19:18] Production.INFO: ProcessCDR(1,14436093,1,1,2) [2025-02-09 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436093', 'tblTempUsageDetail_20' ) start [2025-02-09 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436093', 'tblTempUsageDetail_20' ) end [2025-02-09 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:19:22] Production.INFO: ==10683== Releasing lock... [2025-02-09 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:19:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:20:06 [end_date_ymd] => 2025-02-09 09:20:06 [RateCDR] => 1 ) [2025-02-09 09: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-02-09 06:20:06' and `end` < '2025-02-09 09: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-02-09 09:20:20] Production.INFO: count ==155 [2025-02-09 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:20:06 - End Time 2025-02-09 09:20:06 [2025-02-09 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436099', 'tblTempUsageDetail_20' ) start [2025-02-09 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436099', 'tblTempUsageDetail_20' ) end [2025-02-09 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436099', 'tblTempVendorCDR_20' ) start [2025-02-09 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436099', 'tblTempVendorCDR_20' ) end [2025-02-09 09:20:20] Production.INFO: ProcessCDR(1,14436099,1,1,2) [2025-02-09 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436099', 'tblTempUsageDetail_20' ) start [2025-02-09 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436099', 'tblTempUsageDetail_20' ) end [2025-02-09 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:20:24] Production.INFO: ==10776== Releasing lock... [2025-02-09 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:20:24] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:21:05 [end_date_ymd] => 2025-02-09 09:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:21:05' and `end` < '2025-02-09 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-02-09 09:21:19] Production.INFO: count ==153 [2025-02-09 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:21:05 - End Time 2025-02-09 09:21:05 [2025-02-09 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436104', 'tblTempUsageDetail_20' ) start [2025-02-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436104', 'tblTempUsageDetail_20' ) end [2025-02-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436104', 'tblTempVendorCDR_20' ) start [2025-02-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436104', 'tblTempVendorCDR_20' ) end [2025-02-09 09:21:19] Production.INFO: ProcessCDR(1,14436104,1,1,2) [2025-02-09 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436104', 'tblTempUsageDetail_20' ) start [2025-02-09 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436104', 'tblTempUsageDetail_20' ) end [2025-02-09 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:21:22] Production.INFO: ==10872== Releasing lock... [2025-02-09 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:21:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:22:05 [end_date_ymd] => 2025-02-09 09:22:05 [RateCDR] => 1 ) [2025-02-09 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:22:05' and `end` < '2025-02-09 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:22:17] Production.INFO: count ==153 [2025-02-09 09:22:17] Production.ERROR: pbx CDR StartTime 2025-02-09 06:22:05 - End Time 2025-02-09 09:22:05 [2025-02-09 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436109', 'tblTempUsageDetail_20' ) start [2025-02-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436109', 'tblTempUsageDetail_20' ) end [2025-02-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436109', 'tblTempVendorCDR_20' ) start [2025-02-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436109', 'tblTempVendorCDR_20' ) end [2025-02-09 09:22:17] Production.INFO: ProcessCDR(1,14436109,1,1,2) [2025-02-09 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436109', 'tblTempUsageDetail_20' ) start [2025-02-09 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436109', 'tblTempUsageDetail_20' ) end [2025-02-09 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:22:21] Production.INFO: ==10972== Releasing lock... [2025-02-09 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:22:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:23:05 [end_date_ymd] => 2025-02-09 09:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:23:05' and `end` < '2025-02-09 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-02-09 09:23:18] Production.INFO: count ==153 [2025-02-09 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:23:05 - End Time 2025-02-09 09:23:05 [2025-02-09 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436114', 'tblTempUsageDetail_20' ) start [2025-02-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436114', 'tblTempUsageDetail_20' ) end [2025-02-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436114', 'tblTempVendorCDR_20' ) start [2025-02-09 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436114', 'tblTempVendorCDR_20' ) end [2025-02-09 09:23:18] Production.INFO: ProcessCDR(1,14436114,1,1,2) [2025-02-09 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436114', 'tblTempUsageDetail_20' ) start [2025-02-09 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436114', 'tblTempUsageDetail_20' ) end [2025-02-09 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:23:21] Production.INFO: ==11098== Releasing lock... [2025-02-09 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:23:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:24:06 [end_date_ymd] => 2025-02-09 09:24:06 [RateCDR] => 1 ) [2025-02-09 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:24:06' and `end` < '2025-02-09 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:24:19] Production.INFO: count ==153 [2025-02-09 09:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:24:06 - End Time 2025-02-09 09:24:06 [2025-02-09 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436119', 'tblTempUsageDetail_20' ) start [2025-02-09 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436119', 'tblTempUsageDetail_20' ) end [2025-02-09 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436119', 'tblTempVendorCDR_20' ) start [2025-02-09 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436119', 'tblTempVendorCDR_20' ) end [2025-02-09 09:24:19] Production.INFO: ProcessCDR(1,14436119,1,1,2) [2025-02-09 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436119', 'tblTempUsageDetail_20' ) start [2025-02-09 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436119', 'tblTempUsageDetail_20' ) end [2025-02-09 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:24:22] Production.INFO: ==11184== Releasing lock... [2025-02-09 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:24:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:25:05 [end_date_ymd] => 2025-02-09 09:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:25:05' and `end` < '2025-02-09 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-02-09 09:25:18] Production.INFO: count ==153 [2025-02-09 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:25:05 - End Time 2025-02-09 09:25:05 [2025-02-09 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436124', 'tblTempUsageDetail_20' ) start [2025-02-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436124', 'tblTempUsageDetail_20' ) end [2025-02-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436124', 'tblTempVendorCDR_20' ) start [2025-02-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436124', 'tblTempVendorCDR_20' ) end [2025-02-09 09:25:18] Production.INFO: ProcessCDR(1,14436124,1,1,2) [2025-02-09 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436124', 'tblTempUsageDetail_20' ) start [2025-02-09 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436124', 'tblTempUsageDetail_20' ) end [2025-02-09 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:25:21] Production.INFO: ==11267== Releasing lock... [2025-02-09 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:26:05 [end_date_ymd] => 2025-02-09 09:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:26:05' and `end` < '2025-02-09 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-02-09 09:26:19] Production.INFO: count ==153 [2025-02-09 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:26:05 - End Time 2025-02-09 09:26:05 [2025-02-09 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436129', 'tblTempUsageDetail_20' ) start [2025-02-09 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436129', 'tblTempUsageDetail_20' ) end [2025-02-09 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436129', 'tblTempVendorCDR_20' ) start [2025-02-09 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436129', 'tblTempVendorCDR_20' ) end [2025-02-09 09:26:19] Production.INFO: ProcessCDR(1,14436129,1,1,2) [2025-02-09 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436129', 'tblTempUsageDetail_20' ) start [2025-02-09 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436129', 'tblTempUsageDetail_20' ) end [2025-02-09 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:26:22] Production.INFO: ==11348== Releasing lock... [2025-02-09 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:26:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:27:05 [end_date_ymd] => 2025-02-09 09:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:27:05' and `end` < '2025-02-09 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-02-09 09:27:18] Production.INFO: count ==153 [2025-02-09 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:27:05 - End Time 2025-02-09 09:27:05 [2025-02-09 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436134', 'tblTempUsageDetail_20' ) start [2025-02-09 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436134', 'tblTempUsageDetail_20' ) end [2025-02-09 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436134', 'tblTempVendorCDR_20' ) start [2025-02-09 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436134', 'tblTempVendorCDR_20' ) end [2025-02-09 09:27:18] Production.INFO: ProcessCDR(1,14436134,1,1,2) [2025-02-09 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436134', 'tblTempUsageDetail_20' ) start [2025-02-09 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436134', 'tblTempUsageDetail_20' ) end [2025-02-09 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:27:22] Production.INFO: ==11427== Releasing lock... [2025-02-09 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:27:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:28:05 [end_date_ymd] => 2025-02-09 09:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:28:05' and `end` < '2025-02-09 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-02-09 09:28:18] Production.INFO: count ==153 [2025-02-09 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:28:05 - End Time 2025-02-09 09:28:05 [2025-02-09 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436139', 'tblTempUsageDetail_20' ) start [2025-02-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436139', 'tblTempUsageDetail_20' ) end [2025-02-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436139', 'tblTempVendorCDR_20' ) start [2025-02-09 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436139', 'tblTempVendorCDR_20' ) end [2025-02-09 09:28:18] Production.INFO: ProcessCDR(1,14436139,1,1,2) [2025-02-09 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436139', 'tblTempUsageDetail_20' ) start [2025-02-09 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436139', 'tblTempUsageDetail_20' ) end [2025-02-09 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:28:21] Production.INFO: ==11511== Releasing lock... [2025-02-09 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:28:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:29:05 [end_date_ymd] => 2025-02-09 09:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:29:05' and `end` < '2025-02-09 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-02-09 09:29:18] Production.INFO: count ==152 [2025-02-09 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:29:05 - End Time 2025-02-09 09:29:05 [2025-02-09 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436144', 'tblTempUsageDetail_20' ) start [2025-02-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436144', 'tblTempUsageDetail_20' ) end [2025-02-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436144', 'tblTempVendorCDR_20' ) start [2025-02-09 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436144', 'tblTempVendorCDR_20' ) end [2025-02-09 09:29:18] Production.INFO: ProcessCDR(1,14436144,1,1,2) [2025-02-09 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436144', 'tblTempUsageDetail_20' ) start [2025-02-09 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436144', 'tblTempUsageDetail_20' ) end [2025-02-09 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:29:22] Production.INFO: ==11588== Releasing lock... [2025-02-09 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:30:06 [end_date_ymd] => 2025-02-09 09:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:30:06' and `end` < '2025-02-09 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-02-09 09:30:18] Production.INFO: count ==150 [2025-02-09 09:30:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:30:06 - End Time 2025-02-09 09:30:06 [2025-02-09 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436149', 'tblTempUsageDetail_20' ) start [2025-02-09 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436149', 'tblTempUsageDetail_20' ) end [2025-02-09 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436149', 'tblTempVendorCDR_20' ) start [2025-02-09 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436149', 'tblTempVendorCDR_20' ) end [2025-02-09 09:30:18] Production.INFO: ProcessCDR(1,14436149,1,1,2) [2025-02-09 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436149', 'tblTempUsageDetail_20' ) start [2025-02-09 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436149', 'tblTempUsageDetail_20' ) end [2025-02-09 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:30:23] Production.INFO: ==11672== Releasing lock... [2025-02-09 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:31:05 [end_date_ymd] => 2025-02-09 09:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:31:05' and `end` < '2025-02-09 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-02-09 09:31:18] Production.INFO: count ==150 [2025-02-09 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:31:05 - End Time 2025-02-09 09:31:05 [2025-02-09 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436155', 'tblTempUsageDetail_20' ) start [2025-02-09 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436155', 'tblTempUsageDetail_20' ) end [2025-02-09 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436155', 'tblTempVendorCDR_20' ) start [2025-02-09 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436155', 'tblTempVendorCDR_20' ) end [2025-02-09 09:31:18] Production.INFO: ProcessCDR(1,14436155,1,1,2) [2025-02-09 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436155', 'tblTempUsageDetail_20' ) start [2025-02-09 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436155', 'tblTempUsageDetail_20' ) end [2025-02-09 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:31:21] Production.INFO: ==11752== Releasing lock... [2025-02-09 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:32:06 [end_date_ymd] => 2025-02-09 09:32:06 [RateCDR] => 1 ) [2025-02-09 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:32:06' and `end` < '2025-02-09 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:32:20] Production.INFO: count ==149 [2025-02-09 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:32:06 - End Time 2025-02-09 09:32:06 [2025-02-09 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436160', 'tblTempUsageDetail_20' ) start [2025-02-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436160', 'tblTempUsageDetail_20' ) end [2025-02-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436160', 'tblTempVendorCDR_20' ) start [2025-02-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436160', 'tblTempVendorCDR_20' ) end [2025-02-09 09:32:20] Production.INFO: ProcessCDR(1,14436160,1,1,2) [2025-02-09 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436160', 'tblTempUsageDetail_20' ) start [2025-02-09 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436160', 'tblTempUsageDetail_20' ) end [2025-02-09 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:32:23] Production.INFO: ==11830== Releasing lock... [2025-02-09 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:32:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:33:05 [end_date_ymd] => 2025-02-09 09:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:33:05' and `end` < '2025-02-09 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-02-09 09:33:18] Production.INFO: count ==149 [2025-02-09 09:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:33:05 - End Time 2025-02-09 09:33:05 [2025-02-09 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436165', 'tblTempUsageDetail_20' ) start [2025-02-09 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436165', 'tblTempUsageDetail_20' ) end [2025-02-09 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436165', 'tblTempVendorCDR_20' ) start [2025-02-09 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436165', 'tblTempVendorCDR_20' ) end [2025-02-09 09:33:18] Production.INFO: ProcessCDR(1,14436165,1,1,2) [2025-02-09 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436165', 'tblTempUsageDetail_20' ) start [2025-02-09 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436165', 'tblTempUsageDetail_20' ) end [2025-02-09 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:33:22] Production.INFO: ==11903== Releasing lock... [2025-02-09 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:34:05 [end_date_ymd] => 2025-02-09 09:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:34:05' and `end` < '2025-02-09 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-02-09 09:34:19] Production.INFO: count ==147 [2025-02-09 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:34:05 - End Time 2025-02-09 09:34:05 [2025-02-09 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436170', 'tblTempUsageDetail_20' ) start [2025-02-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436170', 'tblTempUsageDetail_20' ) end [2025-02-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436170', 'tblTempVendorCDR_20' ) start [2025-02-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436170', 'tblTempVendorCDR_20' ) end [2025-02-09 09:34:19] Production.INFO: ProcessCDR(1,14436170,1,1,2) [2025-02-09 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436170', 'tblTempUsageDetail_20' ) start [2025-02-09 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436170', 'tblTempUsageDetail_20' ) end [2025-02-09 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:34:22] Production.INFO: ==11989== Releasing lock... [2025-02-09 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:35:05 [end_date_ymd] => 2025-02-09 09:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:35:05' and `end` < '2025-02-09 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-02-09 09:35:18] Production.INFO: count ==146 [2025-02-09 09:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:35:05 - End Time 2025-02-09 09:35:05 [2025-02-09 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436175', 'tblTempUsageDetail_20' ) start [2025-02-09 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436175', 'tblTempUsageDetail_20' ) end [2025-02-09 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436175', 'tblTempVendorCDR_20' ) start [2025-02-09 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436175', 'tblTempVendorCDR_20' ) end [2025-02-09 09:35:18] Production.INFO: ProcessCDR(1,14436175,1,1,2) [2025-02-09 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436175', 'tblTempUsageDetail_20' ) start [2025-02-09 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436175', 'tblTempUsageDetail_20' ) end [2025-02-09 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:35:23] Production.INFO: ==12068== Releasing lock... [2025-02-09 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:35:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:36:05 [end_date_ymd] => 2025-02-09 09:36:05 [RateCDR] => 1 ) [2025-02-09 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:36:05' and `end` < '2025-02-09 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:36:20] Production.INFO: count ==148 [2025-02-09 09:36:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:36:05 - End Time 2025-02-09 09:36:05 [2025-02-09 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436180', 'tblTempUsageDetail_20' ) start [2025-02-09 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436180', 'tblTempUsageDetail_20' ) end [2025-02-09 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436180', 'tblTempVendorCDR_20' ) start [2025-02-09 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436180', 'tblTempVendorCDR_20' ) end [2025-02-09 09:36:20] Production.INFO: ProcessCDR(1,14436180,1,1,2) [2025-02-09 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436180', 'tblTempUsageDetail_20' ) start [2025-02-09 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436180', 'tblTempUsageDetail_20' ) end [2025-02-09 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:36:23] Production.INFO: ==12150== Releasing lock... [2025-02-09 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:36:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:37:06 [end_date_ymd] => 2025-02-09 09:37:06 [RateCDR] => 1 ) [2025-02-09 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:37:06' and `end` < '2025-02-09 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:37:19] Production.INFO: count ==148 [2025-02-09 09:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:37:06 - End Time 2025-02-09 09:37:06 [2025-02-09 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436185', 'tblTempUsageDetail_20' ) start [2025-02-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436185', 'tblTempUsageDetail_20' ) end [2025-02-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436185', 'tblTempVendorCDR_20' ) start [2025-02-09 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436185', 'tblTempVendorCDR_20' ) end [2025-02-09 09:37:19] Production.INFO: ProcessCDR(1,14436185,1,1,2) [2025-02-09 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436185', 'tblTempUsageDetail_20' ) start [2025-02-09 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436185', 'tblTempUsageDetail_20' ) end [2025-02-09 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:37:22] Production.INFO: ==12229== Releasing lock... [2025-02-09 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:38:05 [end_date_ymd] => 2025-02-09 09:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:38:05' and `end` < '2025-02-09 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-02-09 09:38:18] Production.INFO: count ==148 [2025-02-09 09:38:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:38:05 - End Time 2025-02-09 09:38:05 [2025-02-09 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436190', 'tblTempUsageDetail_20' ) start [2025-02-09 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436190', 'tblTempUsageDetail_20' ) end [2025-02-09 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436190', 'tblTempVendorCDR_20' ) start [2025-02-09 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436190', 'tblTempVendorCDR_20' ) end [2025-02-09 09:38:18] Production.INFO: ProcessCDR(1,14436190,1,1,2) [2025-02-09 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436190', 'tblTempUsageDetail_20' ) start [2025-02-09 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436190', 'tblTempUsageDetail_20' ) end [2025-02-09 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:38:21] Production.INFO: ==12349== Releasing lock... [2025-02-09 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:39:04 [end_date_ymd] => 2025-02-09 09:39:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:39:04' and `end` < '2025-02-09 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-02-09 09:39:18] Production.INFO: count ==148 [2025-02-09 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:39:04 - End Time 2025-02-09 09:39:04 [2025-02-09 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436195', 'tblTempUsageDetail_20' ) start [2025-02-09 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436195', 'tblTempUsageDetail_20' ) end [2025-02-09 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436195', 'tblTempVendorCDR_20' ) start [2025-02-09 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436195', 'tblTempVendorCDR_20' ) end [2025-02-09 09:39:18] Production.INFO: ProcessCDR(1,14436195,1,1,2) [2025-02-09 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436195', 'tblTempUsageDetail_20' ) start [2025-02-09 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436195', 'tblTempUsageDetail_20' ) end [2025-02-09 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:39:22] Production.INFO: ==12422== Releasing lock... [2025-02-09 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:40:06 [end_date_ymd] => 2025-02-09 09:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:40:06' and `end` < '2025-02-09 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-02-09 09:40:20] Production.INFO: count ==146 [2025-02-09 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:40:06 - End Time 2025-02-09 09:40:06 [2025-02-09 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436201', 'tblTempUsageDetail_20' ) start [2025-02-09 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436201', 'tblTempUsageDetail_20' ) end [2025-02-09 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436201', 'tblTempVendorCDR_20' ) start [2025-02-09 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436201', 'tblTempVendorCDR_20' ) end [2025-02-09 09:40:20] Production.INFO: ProcessCDR(1,14436201,1,1,2) [2025-02-09 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436201', 'tblTempUsageDetail_20' ) start [2025-02-09 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436201', 'tblTempUsageDetail_20' ) end [2025-02-09 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:40:23] Production.INFO: ==12503== Releasing lock... [2025-02-09 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:41:06 [end_date_ymd] => 2025-02-09 09:41:06 [RateCDR] => 1 ) [2025-02-09 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:41:06' and `end` < '2025-02-09 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:41:19] Production.INFO: count ==143 [2025-02-09 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:41:06 - End Time 2025-02-09 09:41:06 [2025-02-09 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436206', 'tblTempUsageDetail_20' ) start [2025-02-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436206', 'tblTempUsageDetail_20' ) end [2025-02-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436206', 'tblTempVendorCDR_20' ) start [2025-02-09 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436206', 'tblTempVendorCDR_20' ) end [2025-02-09 09:41:19] Production.INFO: ProcessCDR(1,14436206,1,1,2) [2025-02-09 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436206', 'tblTempUsageDetail_20' ) start [2025-02-09 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436206', 'tblTempUsageDetail_20' ) end [2025-02-09 09:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:41:22] Production.INFO: ==12590== Releasing lock... [2025-02-09 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:42:06 [end_date_ymd] => 2025-02-09 09:42:06 [RateCDR] => 1 ) [2025-02-09 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:42:06' and `end` < '2025-02-09 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:42:19] Production.INFO: count ==143 [2025-02-09 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:42:06 - End Time 2025-02-09 09:42:06 [2025-02-09 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436211', 'tblTempUsageDetail_20' ) start [2025-02-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436211', 'tblTempUsageDetail_20' ) end [2025-02-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436211', 'tblTempVendorCDR_20' ) start [2025-02-09 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436211', 'tblTempVendorCDR_20' ) end [2025-02-09 09:42:19] Production.INFO: ProcessCDR(1,14436211,1,1,2) [2025-02-09 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436211', 'tblTempUsageDetail_20' ) start [2025-02-09 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436211', 'tblTempUsageDetail_20' ) end [2025-02-09 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:42:22] Production.INFO: ==12673== Releasing lock... [2025-02-09 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:43:06 [end_date_ymd] => 2025-02-09 09:43:06 [RateCDR] => 1 ) [2025-02-09 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:43:06' and `end` < '2025-02-09 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:43:19] Production.INFO: count ==141 [2025-02-09 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:43:06 - End Time 2025-02-09 09:43:06 [2025-02-09 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436216', 'tblTempUsageDetail_20' ) start [2025-02-09 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436216', 'tblTempUsageDetail_20' ) end [2025-02-09 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436216', 'tblTempVendorCDR_20' ) start [2025-02-09 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436216', 'tblTempVendorCDR_20' ) end [2025-02-09 09:43:19] Production.INFO: ProcessCDR(1,14436216,1,1,2) [2025-02-09 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436216', 'tblTempUsageDetail_20' ) start [2025-02-09 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436216', 'tblTempUsageDetail_20' ) end [2025-02-09 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:43:24] Production.INFO: ==12749== Releasing lock... [2025-02-09 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:43:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:44:05 [end_date_ymd] => 2025-02-09 09:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:44:05' and `end` < '2025-02-09 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-02-09 09:44:18] Production.INFO: count ==141 [2025-02-09 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:44:05 - End Time 2025-02-09 09:44:05 [2025-02-09 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436221', 'tblTempUsageDetail_20' ) start [2025-02-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436221', 'tblTempUsageDetail_20' ) end [2025-02-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436221', 'tblTempVendorCDR_20' ) start [2025-02-09 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436221', 'tblTempVendorCDR_20' ) end [2025-02-09 09:44:18] Production.INFO: ProcessCDR(1,14436221,1,1,2) [2025-02-09 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436221', 'tblTempUsageDetail_20' ) start [2025-02-09 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436221', 'tblTempUsageDetail_20' ) end [2025-02-09 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:44:21] Production.INFO: ==12838== Releasing lock... [2025-02-09 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:45:06 [end_date_ymd] => 2025-02-09 09:45:06 [RateCDR] => 1 ) [2025-02-09 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:45:06' and `end` < '2025-02-09 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:45:18] Production.INFO: count ==139 [2025-02-09 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:45:06 - End Time 2025-02-09 09:45:06 [2025-02-09 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436226', 'tblTempUsageDetail_20' ) start [2025-02-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436226', 'tblTempUsageDetail_20' ) end [2025-02-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436226', 'tblTempVendorCDR_20' ) start [2025-02-09 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436226', 'tblTempVendorCDR_20' ) end [2025-02-09 09:45:19] Production.INFO: ProcessCDR(1,14436226,1,1,2) [2025-02-09 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436226', 'tblTempUsageDetail_20' ) start [2025-02-09 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436226', 'tblTempUsageDetail_20' ) end [2025-02-09 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:45:23] Production.INFO: ==12916== Releasing lock... [2025-02-09 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:45:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:46:05 [end_date_ymd] => 2025-02-09 09:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:46:05' and `end` < '2025-02-09 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-02-09 09:46:21] Production.INFO: count ==139 [2025-02-09 09:46:21] Production.ERROR: pbx CDR StartTime 2025-02-09 06:46:05 - End Time 2025-02-09 09:46:05 [2025-02-09 09:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436231', 'tblTempUsageDetail_20' ) start [2025-02-09 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436231', 'tblTempUsageDetail_20' ) end [2025-02-09 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436231', 'tblTempVendorCDR_20' ) start [2025-02-09 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436231', 'tblTempVendorCDR_20' ) end [2025-02-09 09:46:21] Production.INFO: ProcessCDR(1,14436231,1,1,2) [2025-02-09 09:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436231', 'tblTempUsageDetail_20' ) start [2025-02-09 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436231', 'tblTempUsageDetail_20' ) end [2025-02-09 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:46:24] Production.INFO: ==12993== Releasing lock... [2025-02-09 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:46:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:47:05 [end_date_ymd] => 2025-02-09 09:47:05 [RateCDR] => 1 ) [2025-02-09 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:47:05' and `end` < '2025-02-09 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:47:20] Production.INFO: count ==139 [2025-02-09 09:47:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:47:05 - End Time 2025-02-09 09:47:05 [2025-02-09 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436236', 'tblTempUsageDetail_20' ) start [2025-02-09 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436236', 'tblTempUsageDetail_20' ) end [2025-02-09 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436236', 'tblTempVendorCDR_20' ) start [2025-02-09 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436236', 'tblTempVendorCDR_20' ) end [2025-02-09 09:47:20] Production.INFO: ProcessCDR(1,14436236,1,1,2) [2025-02-09 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436236', 'tblTempUsageDetail_20' ) start [2025-02-09 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436236', 'tblTempUsageDetail_20' ) end [2025-02-09 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:47:23] Production.INFO: ==13077== Releasing lock... [2025-02-09 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:47:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:48:05 [end_date_ymd] => 2025-02-09 09:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:48:05' and `end` < '2025-02-09 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-02-09 09:48:19] Production.INFO: count ==136 [2025-02-09 09:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:48:05 - End Time 2025-02-09 09:48:05 [2025-02-09 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436241', 'tblTempUsageDetail_20' ) start [2025-02-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436241', 'tblTempUsageDetail_20' ) end [2025-02-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436241', 'tblTempVendorCDR_20' ) start [2025-02-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436241', 'tblTempVendorCDR_20' ) end [2025-02-09 09:48:19] Production.INFO: ProcessCDR(1,14436241,1,1,2) [2025-02-09 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436241', 'tblTempUsageDetail_20' ) start [2025-02-09 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436241', 'tblTempUsageDetail_20' ) end [2025-02-09 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:48:22] Production.INFO: ==13152== Releasing lock... [2025-02-09 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:49:05 [end_date_ymd] => 2025-02-09 09:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:49:05' and `end` < '2025-02-09 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-02-09 09:49:18] Production.INFO: count ==136 [2025-02-09 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:49:05 - End Time 2025-02-09 09:49:05 [2025-02-09 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436246', 'tblTempUsageDetail_20' ) start [2025-02-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436246', 'tblTempUsageDetail_20' ) end [2025-02-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436246', 'tblTempVendorCDR_20' ) start [2025-02-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436246', 'tblTempVendorCDR_20' ) end [2025-02-09 09:49:18] Production.INFO: ProcessCDR(1,14436246,1,1,2) [2025-02-09 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436246', 'tblTempUsageDetail_20' ) start [2025-02-09 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436246', 'tblTempUsageDetail_20' ) end [2025-02-09 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:49:21] Production.INFO: ==13232== Releasing lock... [2025-02-09 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:50:06 [end_date_ymd] => 2025-02-09 09:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:50:06' and `end` < '2025-02-09 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-02-09 09:50:19] Production.INFO: count ==140 [2025-02-09 09:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:50:06 - End Time 2025-02-09 09:50:06 [2025-02-09 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436252', 'tblTempUsageDetail_20' ) start [2025-02-09 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436252', 'tblTempUsageDetail_20' ) end [2025-02-09 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436252', 'tblTempVendorCDR_20' ) start [2025-02-09 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436252', 'tblTempVendorCDR_20' ) end [2025-02-09 09:50:19] Production.INFO: ProcessCDR(1,14436252,1,1,2) [2025-02-09 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436252', 'tblTempUsageDetail_20' ) start [2025-02-09 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436252', 'tblTempUsageDetail_20' ) end [2025-02-09 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:50:23] Production.INFO: ==13312== Releasing lock... [2025-02-09 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:51:05 [end_date_ymd] => 2025-02-09 09:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:51:05' and `end` < '2025-02-09 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-02-09 09:51:19] Production.INFO: count ==143 [2025-02-09 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:51:05 - End Time 2025-02-09 09:51:05 [2025-02-09 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436257', 'tblTempUsageDetail_20' ) start [2025-02-09 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436257', 'tblTempUsageDetail_20' ) end [2025-02-09 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436257', 'tblTempVendorCDR_20' ) start [2025-02-09 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436257', 'tblTempVendorCDR_20' ) end [2025-02-09 09:51:19] Production.INFO: ProcessCDR(1,14436257,1,1,2) [2025-02-09 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436257', 'tblTempUsageDetail_20' ) start [2025-02-09 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436257', 'tblTempUsageDetail_20' ) end [2025-02-09 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:51:22] Production.INFO: ==13395== Releasing lock... [2025-02-09 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:52:05 [end_date_ymd] => 2025-02-09 09:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:52:05' and `end` < '2025-02-09 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-02-09 09:52:18] Production.INFO: count ==143 [2025-02-09 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:52:05 - End Time 2025-02-09 09:52:05 [2025-02-09 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436262', 'tblTempUsageDetail_20' ) start [2025-02-09 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436262', 'tblTempUsageDetail_20' ) end [2025-02-09 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436262', 'tblTempVendorCDR_20' ) start [2025-02-09 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436262', 'tblTempVendorCDR_20' ) end [2025-02-09 09:52:18] Production.INFO: ProcessCDR(1,14436262,1,1,2) [2025-02-09 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436262', 'tblTempUsageDetail_20' ) start [2025-02-09 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436262', 'tblTempUsageDetail_20' ) end [2025-02-09 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:52:21] Production.INFO: ==13472== Releasing lock... [2025-02-09 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:53:05 [end_date_ymd] => 2025-02-09 09:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:53:05' and `end` < '2025-02-09 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-02-09 09:53:20] Production.INFO: count ==142 [2025-02-09 09:53:20] Production.ERROR: pbx CDR StartTime 2025-02-09 06:53:05 - End Time 2025-02-09 09:53:05 [2025-02-09 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436267', 'tblTempUsageDetail_20' ) start [2025-02-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436267', 'tblTempUsageDetail_20' ) end [2025-02-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436267', 'tblTempVendorCDR_20' ) start [2025-02-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436267', 'tblTempVendorCDR_20' ) end [2025-02-09 09:53:20] Production.INFO: ProcessCDR(1,14436267,1,1,2) [2025-02-09 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436267', 'tblTempUsageDetail_20' ) start [2025-02-09 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436267', 'tblTempUsageDetail_20' ) end [2025-02-09 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:53:23] Production.INFO: ==13554== Releasing lock... [2025-02-09 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:53:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:54:05 [end_date_ymd] => 2025-02-09 09:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:54:05' and `end` < '2025-02-09 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-02-09 09:54:18] Production.INFO: count ==142 [2025-02-09 09:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:54:05 - End Time 2025-02-09 09:54:05 [2025-02-09 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436272', 'tblTempUsageDetail_20' ) start [2025-02-09 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436272', 'tblTempUsageDetail_20' ) end [2025-02-09 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436272', 'tblTempVendorCDR_20' ) start [2025-02-09 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436272', 'tblTempVendorCDR_20' ) end [2025-02-09 09:54:18] Production.INFO: ProcessCDR(1,14436272,1,1,2) [2025-02-09 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436272', 'tblTempUsageDetail_20' ) start [2025-02-09 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436272', 'tblTempUsageDetail_20' ) end [2025-02-09 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:54:21] Production.INFO: ==13674== Releasing lock... [2025-02-09 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:55:05 [end_date_ymd] => 2025-02-09 09:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:55:05' and `end` < '2025-02-09 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-02-09 09:55:22] Production.INFO: count ==143 [2025-02-09 09:55:22] Production.ERROR: pbx CDR StartTime 2025-02-09 06:55:05 - End Time 2025-02-09 09:55:05 [2025-02-09 09:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436277', 'tblTempUsageDetail_20' ) start [2025-02-09 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436277', 'tblTempUsageDetail_20' ) end [2025-02-09 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436277', 'tblTempVendorCDR_20' ) start [2025-02-09 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436277', 'tblTempVendorCDR_20' ) end [2025-02-09 09:55:22] Production.INFO: ProcessCDR(1,14436277,1,1,2) [2025-02-09 09:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436277', 'tblTempUsageDetail_20' ) start [2025-02-09 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436277', 'tblTempUsageDetail_20' ) end [2025-02-09 09:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:55:27] Production.INFO: ==13752== Releasing lock... [2025-02-09 09:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:55:27] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:56:05 [end_date_ymd] => 2025-02-09 09:56:05 [RateCDR] => 1 ) [2025-02-09 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:56:05' and `end` < '2025-02-09 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:56:19] Production.INFO: count ==143 [2025-02-09 09:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:56:05 - End Time 2025-02-09 09:56:05 [2025-02-09 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436282', 'tblTempUsageDetail_20' ) start [2025-02-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436282', 'tblTempUsageDetail_20' ) end [2025-02-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436282', 'tblTempVendorCDR_20' ) start [2025-02-09 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436282', 'tblTempVendorCDR_20' ) end [2025-02-09 09:56:19] Production.INFO: ProcessCDR(1,14436282,1,1,2) [2025-02-09 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436282', 'tblTempUsageDetail_20' ) start [2025-02-09 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436282', 'tblTempUsageDetail_20' ) end [2025-02-09 09:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:56:22] Production.INFO: ==13833== Releasing lock... [2025-02-09 09:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:57:05 [end_date_ymd] => 2025-02-09 09:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:57:05' and `end` < '2025-02-09 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-02-09 09:57:18] Production.INFO: count ==143 [2025-02-09 09:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 06:57:05 - End Time 2025-02-09 09:57:05 [2025-02-09 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436287', 'tblTempUsageDetail_20' ) start [2025-02-09 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436287', 'tblTempUsageDetail_20' ) end [2025-02-09 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436287', 'tblTempVendorCDR_20' ) start [2025-02-09 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436287', 'tblTempVendorCDR_20' ) end [2025-02-09 09:57:18] Production.INFO: ProcessCDR(1,14436287,1,1,2) [2025-02-09 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436287', 'tblTempUsageDetail_20' ) start [2025-02-09 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436287', 'tblTempUsageDetail_20' ) end [2025-02-09 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:57:21] Production.INFO: ==13910== Releasing lock... [2025-02-09 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:58:05 [end_date_ymd] => 2025-02-09 09:58:05 [RateCDR] => 1 ) [2025-02-09 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 06:58:05' and `end` < '2025-02-09 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 09:58:17] Production.INFO: count ==143 [2025-02-09 09:58:17] Production.ERROR: pbx CDR StartTime 2025-02-09 06:58:05 - End Time 2025-02-09 09:58:05 [2025-02-09 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436290', 'tblTempUsageDetail_20' ) start [2025-02-09 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436290', 'tblTempUsageDetail_20' ) end [2025-02-09 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436290', 'tblTempVendorCDR_20' ) start [2025-02-09 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436290', 'tblTempVendorCDR_20' ) end [2025-02-09 09:58:17] Production.INFO: ProcessCDR(1,14436290,1,1,2) [2025-02-09 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436290', 'tblTempUsageDetail_20' ) start [2025-02-09 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436290', 'tblTempUsageDetail_20' ) end [2025-02-09 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:58:21] Production.INFO: ==13988== Releasing lock... [2025-02-09 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-09 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 06:59:05 [end_date_ymd] => 2025-02-09 09:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 06:59:05' and `end` < '2025-02-09 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-02-09 09:59:19] Production.INFO: count ==144 [2025-02-09 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 06:59:05 - End Time 2025-02-09 09:59:05 [2025-02-09 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436297', 'tblTempUsageDetail_20' ) start [2025-02-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436297', 'tblTempUsageDetail_20' ) end [2025-02-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436297', 'tblTempVendorCDR_20' ) start [2025-02-09 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436297', 'tblTempVendorCDR_20' ) end [2025-02-09 09:59:19] Production.INFO: ProcessCDR(1,14436297,1,1,2) [2025-02-09 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436297', 'tblTempUsageDetail_20' ) start [2025-02-09 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436297', 'tblTempUsageDetail_20' ) end [2025-02-09 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 09:59:22] Production.INFO: ==14071== Releasing lock... [2025-02-09 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 09:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:00:05 [end_date_ymd] => 2025-02-09 10:00:05 [RateCDR] => 1 ) [2025-02-09 10: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-02-09 07:00:05' and `end` < '2025-02-09 10: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-02-09 10:00:18] Production.INFO: count ==149 [2025-02-09 10:00:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:00:05 - End Time 2025-02-09 10:00:05 [2025-02-09 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436302', 'tblTempUsageDetail_20' ) start [2025-02-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436302', 'tblTempUsageDetail_20' ) end [2025-02-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436302', 'tblTempVendorCDR_20' ) start [2025-02-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436302', 'tblTempVendorCDR_20' ) end [2025-02-09 10:00:18] Production.INFO: ProcessCDR(1,14436302,1,1,2) [2025-02-09 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436302', 'tblTempUsageDetail_20' ) start [2025-02-09 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436302', 'tblTempUsageDetail_20' ) end [2025-02-09 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:00:23] Production.INFO: ==14153== Releasing lock... [2025-02-09 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:01:05 [end_date_ymd] => 2025-02-09 10:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:01:05' and `end` < '2025-02-09 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-02-09 10:01:18] Production.INFO: count ==149 [2025-02-09 10:01:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:01:05 - End Time 2025-02-09 10:01:05 [2025-02-09 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436308', 'tblTempUsageDetail_20' ) start [2025-02-09 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436308', 'tblTempUsageDetail_20' ) end [2025-02-09 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436308', 'tblTempVendorCDR_20' ) start [2025-02-09 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436308', 'tblTempVendorCDR_20' ) end [2025-02-09 10:01:18] Production.INFO: ProcessCDR(1,14436308,1,1,2) [2025-02-09 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436308', 'tblTempUsageDetail_20' ) start [2025-02-09 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436308', 'tblTempUsageDetail_20' ) end [2025-02-09 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:01:22] Production.INFO: ==14251== Releasing lock... [2025-02-09 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:02:05 [end_date_ymd] => 2025-02-09 10:02:05 [RateCDR] => 1 ) [2025-02-09 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:02:05' and `end` < '2025-02-09 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:02:19] Production.INFO: count ==149 [2025-02-09 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:02:05 - End Time 2025-02-09 10:02:05 [2025-02-09 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436313', 'tblTempUsageDetail_20' ) start [2025-02-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436313', 'tblTempUsageDetail_20' ) end [2025-02-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436313', 'tblTempVendorCDR_20' ) start [2025-02-09 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436313', 'tblTempVendorCDR_20' ) end [2025-02-09 10:02:19] Production.INFO: ProcessCDR(1,14436313,1,1,2) [2025-02-09 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436313', 'tblTempUsageDetail_20' ) start [2025-02-09 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436313', 'tblTempUsageDetail_20' ) end [2025-02-09 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:02:23] Production.INFO: ==14329== Releasing lock... [2025-02-09 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:03:05 [end_date_ymd] => 2025-02-09 10:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:03:05' and `end` < '2025-02-09 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-02-09 10:03:18] Production.INFO: count ==149 [2025-02-09 10:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:03:05 - End Time 2025-02-09 10:03:05 [2025-02-09 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436318', 'tblTempUsageDetail_20' ) start [2025-02-09 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436318', 'tblTempUsageDetail_20' ) end [2025-02-09 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436318', 'tblTempVendorCDR_20' ) start [2025-02-09 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436318', 'tblTempVendorCDR_20' ) end [2025-02-09 10:03:18] Production.INFO: ProcessCDR(1,14436318,1,1,2) [2025-02-09 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436318', 'tblTempUsageDetail_20' ) start [2025-02-09 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436318', 'tblTempUsageDetail_20' ) end [2025-02-09 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:03:22] Production.INFO: ==14408== Releasing lock... [2025-02-09 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:04:05 [end_date_ymd] => 2025-02-09 10:04:05 [RateCDR] => 1 ) [2025-02-09 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:04:05' and `end` < '2025-02-09 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:04:20] Production.INFO: count ==149 [2025-02-09 10:04:20] Production.ERROR: pbx CDR StartTime 2025-02-09 07:04:05 - End Time 2025-02-09 10:04:05 [2025-02-09 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436323', 'tblTempUsageDetail_20' ) start [2025-02-09 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436323', 'tblTempUsageDetail_20' ) end [2025-02-09 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436323', 'tblTempVendorCDR_20' ) start [2025-02-09 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436323', 'tblTempVendorCDR_20' ) end [2025-02-09 10:04:20] Production.INFO: ProcessCDR(1,14436323,1,1,2) [2025-02-09 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436323', 'tblTempUsageDetail_20' ) start [2025-02-09 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436323', 'tblTempUsageDetail_20' ) end [2025-02-09 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:04:23] Production.INFO: ==14488== Releasing lock... [2025-02-09 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:04:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:05:05 [end_date_ymd] => 2025-02-09 10:05:05 [RateCDR] => 1 ) [2025-02-09 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:05:05' and `end` < '2025-02-09 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:05:19] Production.INFO: count ==150 [2025-02-09 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:05:05 - End Time 2025-02-09 10:05:05 [2025-02-09 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436328', 'tblTempUsageDetail_20' ) start [2025-02-09 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436328', 'tblTempUsageDetail_20' ) end [2025-02-09 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436328', 'tblTempVendorCDR_20' ) start [2025-02-09 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436328', 'tblTempVendorCDR_20' ) end [2025-02-09 10:05:19] Production.INFO: ProcessCDR(1,14436328,1,1,2) [2025-02-09 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436328', 'tblTempUsageDetail_20' ) start [2025-02-09 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436328', 'tblTempUsageDetail_20' ) end [2025-02-09 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:05:24] Production.INFO: ==14564== Releasing lock... [2025-02-09 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:05:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:06:05 [end_date_ymd] => 2025-02-09 10:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:06:05' and `end` < '2025-02-09 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-02-09 10:06:17] Production.INFO: count ==147 [2025-02-09 10:06:17] Production.ERROR: pbx CDR StartTime 2025-02-09 07:06:05 - End Time 2025-02-09 10:06:05 [2025-02-09 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436333', 'tblTempUsageDetail_20' ) start [2025-02-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436333', 'tblTempUsageDetail_20' ) end [2025-02-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436333', 'tblTempVendorCDR_20' ) start [2025-02-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436333', 'tblTempVendorCDR_20' ) end [2025-02-09 10:06:18] Production.INFO: ProcessCDR(1,14436333,1,1,2) [2025-02-09 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436333', 'tblTempUsageDetail_20' ) start [2025-02-09 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436333', 'tblTempUsageDetail_20' ) end [2025-02-09 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:06:21] Production.INFO: ==14645== Releasing lock... [2025-02-09 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:07:06 [end_date_ymd] => 2025-02-09 10:07:06 [RateCDR] => 1 ) [2025-02-09 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:07:06' and `end` < '2025-02-09 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:07:20] Production.INFO: count ==147 [2025-02-09 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-09 07:07:06 - End Time 2025-02-09 10:07:06 [2025-02-09 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436338', 'tblTempUsageDetail_20' ) start [2025-02-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436338', 'tblTempUsageDetail_20' ) end [2025-02-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436338', 'tblTempVendorCDR_20' ) start [2025-02-09 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436338', 'tblTempVendorCDR_20' ) end [2025-02-09 10:07:20] Production.INFO: ProcessCDR(1,14436338,1,1,2) [2025-02-09 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436338', 'tblTempUsageDetail_20' ) start [2025-02-09 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436338', 'tblTempUsageDetail_20' ) end [2025-02-09 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:07:24] Production.INFO: ==14728== Releasing lock... [2025-02-09 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:07:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:08:05 [end_date_ymd] => 2025-02-09 10:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:08:05' and `end` < '2025-02-09 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-02-09 10:08:18] Production.INFO: count ==147 [2025-02-09 10:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:08:05 - End Time 2025-02-09 10:08:05 [2025-02-09 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436343', 'tblTempUsageDetail_20' ) start [2025-02-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436343', 'tblTempUsageDetail_20' ) end [2025-02-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436343', 'tblTempVendorCDR_20' ) start [2025-02-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436343', 'tblTempVendorCDR_20' ) end [2025-02-09 10:08:18] Production.INFO: ProcessCDR(1,14436343,1,1,2) [2025-02-09 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436343', 'tblTempUsageDetail_20' ) start [2025-02-09 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436343', 'tblTempUsageDetail_20' ) end [2025-02-09 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:08:22] Production.INFO: ==14807== Releasing lock... [2025-02-09 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:09:05 [end_date_ymd] => 2025-02-09 10:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:09:05' and `end` < '2025-02-09 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-02-09 10:09:18] Production.INFO: count ==148 [2025-02-09 10:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:09:05 - End Time 2025-02-09 10:09:05 [2025-02-09 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436348', 'tblTempUsageDetail_20' ) start [2025-02-09 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436348', 'tblTempUsageDetail_20' ) end [2025-02-09 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436348', 'tblTempVendorCDR_20' ) start [2025-02-09 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436348', 'tblTempVendorCDR_20' ) end [2025-02-09 10:09:18] Production.INFO: ProcessCDR(1,14436348,1,1,2) [2025-02-09 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436348', 'tblTempUsageDetail_20' ) start [2025-02-09 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436348', 'tblTempUsageDetail_20' ) end [2025-02-09 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:09:23] Production.INFO: ==14927== Releasing lock... [2025-02-09 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-09 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:10:06 [end_date_ymd] => 2025-02-09 10:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:10:06' and `end` < '2025-02-09 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-02-09 10:10:19] Production.INFO: count ==160 [2025-02-09 10:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:10:06 - End Time 2025-02-09 10:10:06 [2025-02-09 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436354', 'tblTempUsageDetail_20' ) start [2025-02-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436354', 'tblTempUsageDetail_20' ) end [2025-02-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436354', 'tblTempVendorCDR_20' ) start [2025-02-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436354', 'tblTempVendorCDR_20' ) end [2025-02-09 10:10:19] Production.INFO: ProcessCDR(1,14436354,1,1,2) [2025-02-09 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436354', 'tblTempUsageDetail_20' ) start [2025-02-09 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436354', 'tblTempUsageDetail_20' ) end [2025-02-09 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:10:24] Production.INFO: ==15008== Releasing lock... [2025-02-09 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:10:24] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:11:05 [end_date_ymd] => 2025-02-09 10:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:11:05' and `end` < '2025-02-09 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-02-09 10:11:19] Production.INFO: count ==171 [2025-02-09 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:11:05 - End Time 2025-02-09 10:11:05 [2025-02-09 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436359', 'tblTempUsageDetail_20' ) start [2025-02-09 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436359', 'tblTempUsageDetail_20' ) end [2025-02-09 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436359', 'tblTempVendorCDR_20' ) start [2025-02-09 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436359', 'tblTempVendorCDR_20' ) end [2025-02-09 10:11:19] Production.INFO: ProcessCDR(1,14436359,1,1,2) [2025-02-09 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436359', 'tblTempUsageDetail_20' ) start [2025-02-09 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436359', 'tblTempUsageDetail_20' ) end [2025-02-09 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:11:25] Production.INFO: ==15093== Releasing lock... [2025-02-09 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:11:25] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:12:05 [end_date_ymd] => 2025-02-09 10:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:12:05' and `end` < '2025-02-09 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-02-09 10:12:18] Production.INFO: count ==172 [2025-02-09 10:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:12:05 - End Time 2025-02-09 10:12:05 [2025-02-09 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436364', 'tblTempUsageDetail_20' ) start [2025-02-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436364', 'tblTempUsageDetail_20' ) end [2025-02-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436364', 'tblTempVendorCDR_20' ) start [2025-02-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436364', 'tblTempVendorCDR_20' ) end [2025-02-09 10:12:18] Production.INFO: ProcessCDR(1,14436364,1,1,2) [2025-02-09 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436364', 'tblTempUsageDetail_20' ) start [2025-02-09 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436364', 'tblTempUsageDetail_20' ) end [2025-02-09 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:12:23] Production.INFO: ==15174== Releasing lock... [2025-02-09 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:12:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:13:05 [end_date_ymd] => 2025-02-09 10:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:13:05' and `end` < '2025-02-09 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-02-09 10:13:19] Production.INFO: count ==172 [2025-02-09 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:13:05 - End Time 2025-02-09 10:13:05 [2025-02-09 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436369', 'tblTempUsageDetail_20' ) start [2025-02-09 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436369', 'tblTempUsageDetail_20' ) end [2025-02-09 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436369', 'tblTempVendorCDR_20' ) start [2025-02-09 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436369', 'tblTempVendorCDR_20' ) end [2025-02-09 10:13:19] Production.INFO: ProcessCDR(1,14436369,1,1,2) [2025-02-09 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436369', 'tblTempUsageDetail_20' ) start [2025-02-09 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436369', 'tblTempUsageDetail_20' ) end [2025-02-09 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:13:23] Production.INFO: ==15260== Releasing lock... [2025-02-09 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:13:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:14:05 [end_date_ymd] => 2025-02-09 10:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:14:05' and `end` < '2025-02-09 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-02-09 10:14:18] Production.INFO: count ==174 [2025-02-09 10:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:14:05 - End Time 2025-02-09 10:14:05 [2025-02-09 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436374', 'tblTempUsageDetail_20' ) start [2025-02-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436374', 'tblTempUsageDetail_20' ) end [2025-02-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436374', 'tblTempVendorCDR_20' ) start [2025-02-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436374', 'tblTempVendorCDR_20' ) end [2025-02-09 10:14:18] Production.INFO: ProcessCDR(1,14436374,1,1,2) [2025-02-09 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436374', 'tblTempUsageDetail_20' ) start [2025-02-09 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436374', 'tblTempUsageDetail_20' ) end [2025-02-09 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:14:23] Production.INFO: ==15336== Releasing lock... [2025-02-09 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:14:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:15:05 [end_date_ymd] => 2025-02-09 10:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:15:05' and `end` < '2025-02-09 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-02-09 10:15:18] Production.INFO: count ==177 [2025-02-09 10:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:15:05 - End Time 2025-02-09 10:15:05 [2025-02-09 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436379', 'tblTempUsageDetail_20' ) start [2025-02-09 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436379', 'tblTempUsageDetail_20' ) end [2025-02-09 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436379', 'tblTempVendorCDR_20' ) start [2025-02-09 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436379', 'tblTempVendorCDR_20' ) end [2025-02-09 10:15:18] Production.INFO: ProcessCDR(1,14436379,1,1,2) [2025-02-09 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436379', 'tblTempUsageDetail_20' ) start [2025-02-09 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436379', 'tblTempUsageDetail_20' ) end [2025-02-09 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:15:23] Production.INFO: ==15417== Releasing lock... [2025-02-09 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:15:23] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:16:05 [end_date_ymd] => 2025-02-09 10:16:05 [RateCDR] => 1 ) [2025-02-09 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:16:05' and `end` < '2025-02-09 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:16:18] Production.INFO: count ==182 [2025-02-09 10:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:16:05 - End Time 2025-02-09 10:16:05 [2025-02-09 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436384', 'tblTempUsageDetail_20' ) start [2025-02-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436384', 'tblTempUsageDetail_20' ) end [2025-02-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436384', 'tblTempVendorCDR_20' ) start [2025-02-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436384', 'tblTempVendorCDR_20' ) end [2025-02-09 10:16:18] Production.INFO: ProcessCDR(1,14436384,1,1,2) [2025-02-09 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436384', 'tblTempUsageDetail_20' ) start [2025-02-09 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436384', 'tblTempUsageDetail_20' ) end [2025-02-09 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:16:23] Production.INFO: ==15499== Releasing lock... [2025-02-09 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:16:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:17:06 [end_date_ymd] => 2025-02-09 10:17:06 [RateCDR] => 1 ) [2025-02-09 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:17:06' and `end` < '2025-02-09 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:17:19] Production.INFO: count ==182 [2025-02-09 10:17:20] Production.ERROR: pbx CDR StartTime 2025-02-09 07:17:06 - End Time 2025-02-09 10:17:06 [2025-02-09 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436389', 'tblTempUsageDetail_20' ) start [2025-02-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436389', 'tblTempUsageDetail_20' ) end [2025-02-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436389', 'tblTempVendorCDR_20' ) start [2025-02-09 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436389', 'tblTempVendorCDR_20' ) end [2025-02-09 10:17:20] Production.INFO: ProcessCDR(1,14436389,1,1,2) [2025-02-09 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436389', 'tblTempUsageDetail_20' ) start [2025-02-09 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436389', 'tblTempUsageDetail_20' ) end [2025-02-09 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:17:23] Production.INFO: ==15580== Releasing lock... [2025-02-09 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:17:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:18:05 [end_date_ymd] => 2025-02-09 10:18:05 [RateCDR] => 1 ) [2025-02-09 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:18:05' and `end` < '2025-02-09 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:18:18] Production.INFO: count ==183 [2025-02-09 10:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:18:05 - End Time 2025-02-09 10:18:05 [2025-02-09 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436394', 'tblTempUsageDetail_20' ) start [2025-02-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436394', 'tblTempUsageDetail_20' ) end [2025-02-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436394', 'tblTempVendorCDR_20' ) start [2025-02-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436394', 'tblTempVendorCDR_20' ) end [2025-02-09 10:18:18] Production.INFO: ProcessCDR(1,14436394,1,1,2) [2025-02-09 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436394', 'tblTempUsageDetail_20' ) start [2025-02-09 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436394', 'tblTempUsageDetail_20' ) end [2025-02-09 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:18:23] Production.INFO: ==15660== Releasing lock... [2025-02-09 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:18:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:19:05 [end_date_ymd] => 2025-02-09 10:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:19:05' and `end` < '2025-02-09 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-02-09 10:19:18] Production.INFO: count ==182 [2025-02-09 10:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:19:05 - End Time 2025-02-09 10:19:05 [2025-02-09 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436399', 'tblTempUsageDetail_20' ) start [2025-02-09 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436399', 'tblTempUsageDetail_20' ) end [2025-02-09 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436399', 'tblTempVendorCDR_20' ) start [2025-02-09 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436399', 'tblTempVendorCDR_20' ) end [2025-02-09 10:19:18] Production.INFO: ProcessCDR(1,14436399,1,1,2) [2025-02-09 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436399', 'tblTempUsageDetail_20' ) start [2025-02-09 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436399', 'tblTempUsageDetail_20' ) end [2025-02-09 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:19:21] Production.INFO: ==15739== Releasing lock... [2025-02-09 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:20:06 [end_date_ymd] => 2025-02-09 10:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:20:06' and `end` < '2025-02-09 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-02-09 10:20:19] Production.INFO: count ==186 [2025-02-09 10:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:20:06 - End Time 2025-02-09 10:20:06 [2025-02-09 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436405', 'tblTempUsageDetail_20' ) start [2025-02-09 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436405', 'tblTempUsageDetail_20' ) end [2025-02-09 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436405', 'tblTempVendorCDR_20' ) start [2025-02-09 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436405', 'tblTempVendorCDR_20' ) end [2025-02-09 10:20:19] Production.INFO: ProcessCDR(1,14436405,1,1,2) [2025-02-09 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436405', 'tblTempUsageDetail_20' ) start [2025-02-09 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436405', 'tblTempUsageDetail_20' ) end [2025-02-09 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:20:22] Production.INFO: ==15828== Releasing lock... [2025-02-09 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:21:05 [end_date_ymd] => 2025-02-09 10:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:21:05' and `end` < '2025-02-09 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-02-09 10:21:18] Production.INFO: count ==201 [2025-02-09 10:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:21:05 - End Time 2025-02-09 10:21:05 [2025-02-09 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436410', 'tblTempUsageDetail_20' ) start [2025-02-09 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436410', 'tblTempUsageDetail_20' ) end [2025-02-09 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436410', 'tblTempVendorCDR_20' ) start [2025-02-09 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436410', 'tblTempVendorCDR_20' ) end [2025-02-09 10:21:18] Production.INFO: ProcessCDR(1,14436410,1,1,2) [2025-02-09 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436410', 'tblTempUsageDetail_20' ) start [2025-02-09 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436410', 'tblTempUsageDetail_20' ) end [2025-02-09 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:21:22] Production.INFO: ==15911== Releasing lock... [2025-02-09 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:22:05 [end_date_ymd] => 2025-02-09 10:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:22:05' and `end` < '2025-02-09 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-02-09 10:22:19] Production.INFO: count ==201 [2025-02-09 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:22:05 - End Time 2025-02-09 10:22:05 [2025-02-09 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436415', 'tblTempUsageDetail_20' ) start [2025-02-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436415', 'tblTempUsageDetail_20' ) end [2025-02-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436415', 'tblTempVendorCDR_20' ) start [2025-02-09 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436415', 'tblTempVendorCDR_20' ) end [2025-02-09 10:22:19] Production.INFO: ProcessCDR(1,14436415,1,1,2) [2025-02-09 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436415', 'tblTempUsageDetail_20' ) start [2025-02-09 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436415', 'tblTempUsageDetail_20' ) end [2025-02-09 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:22:23] Production.INFO: ==15995== Releasing lock... [2025-02-09 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:22:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:23:05 [end_date_ymd] => 2025-02-09 10:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:23:05' and `end` < '2025-02-09 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-02-09 10:23:19] Production.INFO: count ==201 [2025-02-09 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:23:05 - End Time 2025-02-09 10:23:05 [2025-02-09 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436420', 'tblTempUsageDetail_20' ) start [2025-02-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436420', 'tblTempUsageDetail_20' ) end [2025-02-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436420', 'tblTempVendorCDR_20' ) start [2025-02-09 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436420', 'tblTempVendorCDR_20' ) end [2025-02-09 10:23:19] Production.INFO: ProcessCDR(1,14436420,1,1,2) [2025-02-09 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436420', 'tblTempUsageDetail_20' ) start [2025-02-09 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436420', 'tblTempUsageDetail_20' ) end [2025-02-09 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:23:22] Production.INFO: ==16077== Releasing lock... [2025-02-09 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:24:06 [end_date_ymd] => 2025-02-09 10:24:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:24:06' and `end` < '2025-02-09 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-02-09 10:24:19] Production.INFO: count ==206 [2025-02-09 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:24:06 - End Time 2025-02-09 10:24:06 [2025-02-09 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436425', 'tblTempUsageDetail_20' ) start [2025-02-09 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436425', 'tblTempUsageDetail_20' ) end [2025-02-09 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436425', 'tblTempVendorCDR_20' ) start [2025-02-09 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436425', 'tblTempVendorCDR_20' ) end [2025-02-09 10:24:19] Production.INFO: ProcessCDR(1,14436425,1,1,2) [2025-02-09 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436425', 'tblTempUsageDetail_20' ) start [2025-02-09 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436425', 'tblTempUsageDetail_20' ) end [2025-02-09 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:24:22] Production.INFO: ==16155== Releasing lock... [2025-02-09 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:24:22] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:25:05 [end_date_ymd] => 2025-02-09 10:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:25:05' and `end` < '2025-02-09 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-02-09 10:25:18] Production.INFO: count ==206 [2025-02-09 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:25:05 - End Time 2025-02-09 10:25:05 [2025-02-09 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436430', 'tblTempUsageDetail_20' ) start [2025-02-09 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436430', 'tblTempUsageDetail_20' ) end [2025-02-09 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436430', 'tblTempVendorCDR_20' ) start [2025-02-09 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436430', 'tblTempVendorCDR_20' ) end [2025-02-09 10:25:18] Production.INFO: ProcessCDR(1,14436430,1,1,2) [2025-02-09 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436430', 'tblTempUsageDetail_20' ) start [2025-02-09 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436430', 'tblTempUsageDetail_20' ) end [2025-02-09 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:25:21] Production.INFO: ==16276== Releasing lock... [2025-02-09 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:26:05 [end_date_ymd] => 2025-02-09 10:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:26:05' and `end` < '2025-02-09 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-02-09 10:26:18] Production.INFO: count ==206 [2025-02-09 10:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:26:05 - End Time 2025-02-09 10:26:05 [2025-02-09 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436435', 'tblTempUsageDetail_20' ) start [2025-02-09 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436435', 'tblTempUsageDetail_20' ) end [2025-02-09 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436435', 'tblTempVendorCDR_20' ) start [2025-02-09 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436435', 'tblTempVendorCDR_20' ) end [2025-02-09 10:26:18] Production.INFO: ProcessCDR(1,14436435,1,1,2) [2025-02-09 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436435', 'tblTempUsageDetail_20' ) start [2025-02-09 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436435', 'tblTempUsageDetail_20' ) end [2025-02-09 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:26:21] Production.INFO: ==16359== Releasing lock... [2025-02-09 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:27:05 [end_date_ymd] => 2025-02-09 10:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:27:05' and `end` < '2025-02-09 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-02-09 10:27:18] Production.INFO: count ==206 [2025-02-09 10:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:27:05 - End Time 2025-02-09 10:27:05 [2025-02-09 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436440', 'tblTempUsageDetail_20' ) start [2025-02-09 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436440', 'tblTempUsageDetail_20' ) end [2025-02-09 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436440', 'tblTempVendorCDR_20' ) start [2025-02-09 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436440', 'tblTempVendorCDR_20' ) end [2025-02-09 10:27:18] Production.INFO: ProcessCDR(1,14436440,1,1,2) [2025-02-09 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436440', 'tblTempUsageDetail_20' ) start [2025-02-09 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436440', 'tblTempUsageDetail_20' ) end [2025-02-09 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:27:21] Production.INFO: ==16438== Releasing lock... [2025-02-09 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-09 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:28:05 [end_date_ymd] => 2025-02-09 10:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:28:05' and `end` < '2025-02-09 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-02-09 10:28:18] Production.INFO: count ==208 [2025-02-09 10:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:28:05 - End Time 2025-02-09 10:28:05 [2025-02-09 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436445', 'tblTempUsageDetail_20' ) start [2025-02-09 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436445', 'tblTempUsageDetail_20' ) end [2025-02-09 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436445', 'tblTempVendorCDR_20' ) start [2025-02-09 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436445', 'tblTempVendorCDR_20' ) end [2025-02-09 10:28:18] Production.INFO: ProcessCDR(1,14436445,1,1,2) [2025-02-09 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436445', 'tblTempUsageDetail_20' ) start [2025-02-09 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436445', 'tblTempUsageDetail_20' ) end [2025-02-09 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:28:21] Production.INFO: ==16519== Releasing lock... [2025-02-09 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:29:05 [end_date_ymd] => 2025-02-09 10:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:29:05' and `end` < '2025-02-09 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-02-09 10:29:17] Production.INFO: count ==211 [2025-02-09 10:29:17] Production.ERROR: pbx CDR StartTime 2025-02-09 07:29:05 - End Time 2025-02-09 10:29:05 [2025-02-09 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436450', 'tblTempUsageDetail_20' ) start [2025-02-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436450', 'tblTempUsageDetail_20' ) end [2025-02-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436450', 'tblTempVendorCDR_20' ) start [2025-02-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436450', 'tblTempVendorCDR_20' ) end [2025-02-09 10:29:17] Production.INFO: ProcessCDR(1,14436450,1,1,2) [2025-02-09 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436450', 'tblTempUsageDetail_20' ) start [2025-02-09 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436450', 'tblTempUsageDetail_20' ) end [2025-02-09 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:29:21] Production.INFO: ==16600== Releasing lock... [2025-02-09 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:30:07 [end_date_ymd] => 2025-02-09 10:30:07 [RateCDR] => 1 ) [2025-02-09 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:30:07' and `end` < '2025-02-09 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:30:20] Production.INFO: count ==214 [2025-02-09 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-09 07:30:07 - End Time 2025-02-09 10:30:07 [2025-02-09 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436456', 'tblTempUsageDetail_20' ) start [2025-02-09 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436456', 'tblTempUsageDetail_20' ) end [2025-02-09 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436456', 'tblTempVendorCDR_20' ) start [2025-02-09 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436456', 'tblTempVendorCDR_20' ) end [2025-02-09 10:30:20] Production.INFO: ProcessCDR(1,14436456,1,1,2) [2025-02-09 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436456', 'tblTempUsageDetail_20' ) start [2025-02-09 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436456', 'tblTempUsageDetail_20' ) end [2025-02-09 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:30:23] Production.INFO: ==16685== Releasing lock... [2025-02-09 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:31:05 [end_date_ymd] => 2025-02-09 10:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:31:05' and `end` < '2025-02-09 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-02-09 10:31:18] Production.INFO: count ==214 [2025-02-09 10:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:31:05 - End Time 2025-02-09 10:31:05 [2025-02-09 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436461', 'tblTempUsageDetail_20' ) start [2025-02-09 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436461', 'tblTempUsageDetail_20' ) end [2025-02-09 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436461', 'tblTempVendorCDR_20' ) start [2025-02-09 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436461', 'tblTempVendorCDR_20' ) end [2025-02-09 10:31:18] Production.INFO: ProcessCDR(1,14436461,1,1,2) [2025-02-09 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436461', 'tblTempUsageDetail_20' ) start [2025-02-09 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436461', 'tblTempUsageDetail_20' ) end [2025-02-09 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:31:21] Production.INFO: ==16766== Releasing lock... [2025-02-09 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:32:05 [end_date_ymd] => 2025-02-09 10:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:32:05' and `end` < '2025-02-09 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-02-09 10:32:18] Production.INFO: count ==215 [2025-02-09 10:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:32:05 - End Time 2025-02-09 10:32:05 [2025-02-09 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436466', 'tblTempUsageDetail_20' ) start [2025-02-09 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436466', 'tblTempUsageDetail_20' ) end [2025-02-09 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436466', 'tblTempVendorCDR_20' ) start [2025-02-09 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436466', 'tblTempVendorCDR_20' ) end [2025-02-09 10:32:18] Production.INFO: ProcessCDR(1,14436466,1,1,2) [2025-02-09 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436466', 'tblTempUsageDetail_20' ) start [2025-02-09 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436466', 'tblTempUsageDetail_20' ) end [2025-02-09 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:32:22] Production.INFO: ==16851== Releasing lock... [2025-02-09 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:33:04 [end_date_ymd] => 2025-02-09 10:33:04 [RateCDR] => 1 ) [2025-02-09 10:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:33:04' and `end` < '2025-02-09 10:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:33:17] Production.INFO: count ==215 [2025-02-09 10:33:17] Production.ERROR: pbx CDR StartTime 2025-02-09 07:33:04 - End Time 2025-02-09 10:33:04 [2025-02-09 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436471', 'tblTempUsageDetail_20' ) start [2025-02-09 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436471', 'tblTempUsageDetail_20' ) end [2025-02-09 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436471', 'tblTempVendorCDR_20' ) start [2025-02-09 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436471', 'tblTempVendorCDR_20' ) end [2025-02-09 10:33:17] Production.INFO: ProcessCDR(1,14436471,1,1,2) [2025-02-09 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436471', 'tblTempUsageDetail_20' ) start [2025-02-09 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436471', 'tblTempUsageDetail_20' ) end [2025-02-09 10:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:33:20] Production.INFO: ==16931== Releasing lock... [2025-02-09 10:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:34:05 [end_date_ymd] => 2025-02-09 10:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:34:05' and `end` < '2025-02-09 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-02-09 10:34:21] Production.INFO: count ==215 [2025-02-09 10:34:21] Production.ERROR: pbx CDR StartTime 2025-02-09 07:34:05 - End Time 2025-02-09 10:34:05 [2025-02-09 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436476', 'tblTempUsageDetail_20' ) start [2025-02-09 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436476', 'tblTempUsageDetail_20' ) end [2025-02-09 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436476', 'tblTempVendorCDR_20' ) start [2025-02-09 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436476', 'tblTempVendorCDR_20' ) end [2025-02-09 10:34:21] Production.INFO: ProcessCDR(1,14436476,1,1,2) [2025-02-09 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436476', 'tblTempUsageDetail_20' ) start [2025-02-09 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436476', 'tblTempUsageDetail_20' ) end [2025-02-09 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:34:24] Production.INFO: ==17015== Releasing lock... [2025-02-09 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:34:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:35:04 [end_date_ymd] => 2025-02-09 10:35:04 [RateCDR] => 1 ) [2025-02-09 10: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-02-09 07:35:04' and `end` < '2025-02-09 10: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-02-09 10:35:17] Production.INFO: count ==216 [2025-02-09 10:35:17] Production.ERROR: pbx CDR StartTime 2025-02-09 07:35:04 - End Time 2025-02-09 10:35:04 [2025-02-09 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436481', 'tblTempUsageDetail_20' ) start [2025-02-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436481', 'tblTempUsageDetail_20' ) end [2025-02-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436481', 'tblTempVendorCDR_20' ) start [2025-02-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436481', 'tblTempVendorCDR_20' ) end [2025-02-09 10:35:17] Production.INFO: ProcessCDR(1,14436481,1,1,2) [2025-02-09 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436481', 'tblTempUsageDetail_20' ) start [2025-02-09 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436481', 'tblTempUsageDetail_20' ) end [2025-02-09 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:35:22] Production.INFO: ==17096== Releasing lock... [2025-02-09 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:36:05 [end_date_ymd] => 2025-02-09 10:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:36:05' and `end` < '2025-02-09 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:36:18] Production.INFO: count ==219 [2025-02-09 10:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:36:05 - End Time 2025-02-09 10:36:05 [2025-02-09 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436486', 'tblTempUsageDetail_20' ) start [2025-02-09 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436486', 'tblTempUsageDetail_20' ) end [2025-02-09 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436486', 'tblTempVendorCDR_20' ) start [2025-02-09 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436486', 'tblTempVendorCDR_20' ) end [2025-02-09 10:36:18] Production.INFO: ProcessCDR(1,14436486,1,1,2) [2025-02-09 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436486', 'tblTempUsageDetail_20' ) start [2025-02-09 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436486', 'tblTempUsageDetail_20' ) end [2025-02-09 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:36:23] Production.INFO: ==17177== Releasing lock... [2025-02-09 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:36:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:37:05 [end_date_ymd] => 2025-02-09 10:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:37:05' and `end` < '2025-02-09 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-02-09 10:37:19] Production.INFO: count ==222 [2025-02-09 10:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:37:05 - End Time 2025-02-09 10:37:05 [2025-02-09 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436491', 'tblTempUsageDetail_20' ) start [2025-02-09 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436491', 'tblTempUsageDetail_20' ) end [2025-02-09 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436491', 'tblTempVendorCDR_20' ) start [2025-02-09 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436491', 'tblTempVendorCDR_20' ) end [2025-02-09 10:37:19] Production.INFO: ProcessCDR(1,14436491,1,1,2) [2025-02-09 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436491', 'tblTempUsageDetail_20' ) start [2025-02-09 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436491', 'tblTempUsageDetail_20' ) end [2025-02-09 10:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:37:22] Production.INFO: ==17255== Releasing lock... [2025-02-09 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:38:05 [end_date_ymd] => 2025-02-09 10:38:05 [RateCDR] => 1 ) [2025-02-09 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:38:05' and `end` < '2025-02-09 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:38:19] Production.INFO: count ==222 [2025-02-09 10:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:38:05 - End Time 2025-02-09 10:38:05 [2025-02-09 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436496', 'tblTempUsageDetail_20' ) start [2025-02-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436496', 'tblTempUsageDetail_20' ) end [2025-02-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436496', 'tblTempVendorCDR_20' ) start [2025-02-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436496', 'tblTempVendorCDR_20' ) end [2025-02-09 10:38:19] Production.INFO: ProcessCDR(1,14436496,1,1,2) [2025-02-09 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436496', 'tblTempUsageDetail_20' ) start [2025-02-09 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436496', 'tblTempUsageDetail_20' ) end [2025-02-09 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:38:23] Production.INFO: ==17331== Releasing lock... [2025-02-09 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:38:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:39:04 [end_date_ymd] => 2025-02-09 10:39:04 [RateCDR] => 1 ) [2025-02-09 10: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-02-09 07:39:04' and `end` < '2025-02-09 10: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-02-09 10:39:17] Production.INFO: count ==222 [2025-02-09 10:39:17] Production.ERROR: pbx CDR StartTime 2025-02-09 07:39:04 - End Time 2025-02-09 10:39:04 [2025-02-09 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436501', 'tblTempUsageDetail_20' ) start [2025-02-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436501', 'tblTempUsageDetail_20' ) end [2025-02-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436501', 'tblTempVendorCDR_20' ) start [2025-02-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436501', 'tblTempVendorCDR_20' ) end [2025-02-09 10:39:17] Production.INFO: ProcessCDR(1,14436501,1,1,2) [2025-02-09 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436501', 'tblTempUsageDetail_20' ) start [2025-02-09 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436501', 'tblTempUsageDetail_20' ) end [2025-02-09 10:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:39:21] Production.INFO: ==17407== Releasing lock... [2025-02-09 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-09 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:40:05 [end_date_ymd] => 2025-02-09 10:40:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:40:05' and `end` < '2025-02-09 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-02-09 10:40:18] Production.INFO: count ==232 [2025-02-09 10:40:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:40:05 - End Time 2025-02-09 10:40:05 [2025-02-09 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436506', 'tblTempUsageDetail_20' ) start [2025-02-09 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436506', 'tblTempUsageDetail_20' ) end [2025-02-09 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436506', 'tblTempVendorCDR_20' ) start [2025-02-09 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436506', 'tblTempVendorCDR_20' ) end [2025-02-09 10:40:18] Production.INFO: ProcessCDR(1,14436506,1,1,2) [2025-02-09 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436506', 'tblTempUsageDetail_20' ) start [2025-02-09 10:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436506', 'tblTempUsageDetail_20' ) end [2025-02-09 10:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:40:21] Production.INFO: ==17525== Releasing lock... [2025-02-09 10:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:41:05 [end_date_ymd] => 2025-02-09 10:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:41:05' and `end` < '2025-02-09 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-02-09 10:41:18] Production.INFO: count ==258 [2025-02-09 10:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:41:05 - End Time 2025-02-09 10:41:05 [2025-02-09 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436512', 'tblTempUsageDetail_20' ) start [2025-02-09 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436512', 'tblTempUsageDetail_20' ) end [2025-02-09 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436512', 'tblTempVendorCDR_20' ) start [2025-02-09 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436512', 'tblTempVendorCDR_20' ) end [2025-02-09 10:41:18] Production.INFO: ProcessCDR(1,14436512,1,1,2) [2025-02-09 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436512', 'tblTempUsageDetail_20' ) start [2025-02-09 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436512', 'tblTempUsageDetail_20' ) end [2025-02-09 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:41:21] Production.INFO: ==17603== Releasing lock... [2025-02-09 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:42:05 [end_date_ymd] => 2025-02-09 10:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:42:05' and `end` < '2025-02-09 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-02-09 10:42:18] Production.INFO: count ==261 [2025-02-09 10:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:42:05 - End Time 2025-02-09 10:42:05 [2025-02-09 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436517', 'tblTempUsageDetail_20' ) start [2025-02-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436517', 'tblTempUsageDetail_20' ) end [2025-02-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436517', 'tblTempVendorCDR_20' ) start [2025-02-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436517', 'tblTempVendorCDR_20' ) end [2025-02-09 10:42:18] Production.INFO: ProcessCDR(1,14436517,1,1,2) [2025-02-09 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436517', 'tblTempUsageDetail_20' ) start [2025-02-09 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436517', 'tblTempUsageDetail_20' ) end [2025-02-09 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:42:22] Production.INFO: ==17678== Releasing lock... [2025-02-09 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-09 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:43:05 [end_date_ymd] => 2025-02-09 10:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:43:05' and `end` < '2025-02-09 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-02-09 10:43:18] Production.INFO: count ==259 [2025-02-09 10:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:43:05 - End Time 2025-02-09 10:43:05 [2025-02-09 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436522', 'tblTempUsageDetail_20' ) start [2025-02-09 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436522', 'tblTempUsageDetail_20' ) end [2025-02-09 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436522', 'tblTempVendorCDR_20' ) start [2025-02-09 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436522', 'tblTempVendorCDR_20' ) end [2025-02-09 10:43:18] Production.INFO: ProcessCDR(1,14436522,1,1,2) [2025-02-09 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436522', 'tblTempUsageDetail_20' ) start [2025-02-09 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436522', 'tblTempUsageDetail_20' ) end [2025-02-09 10:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:43:21] Production.INFO: ==17752== Releasing lock... [2025-02-09 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:44:05 [end_date_ymd] => 2025-02-09 10:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:44:05' and `end` < '2025-02-09 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-02-09 10:44:18] Production.INFO: count ==259 [2025-02-09 10:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:44:05 - End Time 2025-02-09 10:44:05 [2025-02-09 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436527', 'tblTempUsageDetail_20' ) start [2025-02-09 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436527', 'tblTempUsageDetail_20' ) end [2025-02-09 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436527', 'tblTempVendorCDR_20' ) start [2025-02-09 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436527', 'tblTempVendorCDR_20' ) end [2025-02-09 10:44:18] Production.INFO: ProcessCDR(1,14436527,1,1,2) [2025-02-09 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436527', 'tblTempUsageDetail_20' ) start [2025-02-09 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436527', 'tblTempUsageDetail_20' ) end [2025-02-09 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:44:21] Production.INFO: ==17827== Releasing lock... [2025-02-09 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:45:05 [end_date_ymd] => 2025-02-09 10:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:45:05' and `end` < '2025-02-09 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-02-09 10:45:18] Production.INFO: count ==264 [2025-02-09 10:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:45:05 - End Time 2025-02-09 10:45:05 [2025-02-09 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436532', 'tblTempUsageDetail_20' ) start [2025-02-09 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436532', 'tblTempUsageDetail_20' ) end [2025-02-09 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436532', 'tblTempVendorCDR_20' ) start [2025-02-09 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436532', 'tblTempVendorCDR_20' ) end [2025-02-09 10:45:18] Production.INFO: ProcessCDR(1,14436532,1,1,2) [2025-02-09 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436532', 'tblTempUsageDetail_20' ) start [2025-02-09 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436532', 'tblTempUsageDetail_20' ) end [2025-02-09 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:45:22] Production.INFO: ==17903== Releasing lock... [2025-02-09 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:46:05 [end_date_ymd] => 2025-02-09 10:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:46:05' and `end` < '2025-02-09 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-02-09 10:46:19] Production.INFO: count ==279 [2025-02-09 10:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:46:05 - End Time 2025-02-09 10:46:05 [2025-02-09 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436537', 'tblTempUsageDetail_20' ) start [2025-02-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436537', 'tblTempUsageDetail_20' ) end [2025-02-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436537', 'tblTempVendorCDR_20' ) start [2025-02-09 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436537', 'tblTempVendorCDR_20' ) end [2025-02-09 10:46:19] Production.INFO: ProcessCDR(1,14436537,1,1,2) [2025-02-09 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436537', 'tblTempUsageDetail_20' ) start [2025-02-09 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436537', 'tblTempUsageDetail_20' ) end [2025-02-09 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:46:22] Production.INFO: ==17974== Releasing lock... [2025-02-09 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:46:22] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:47:05 [end_date_ymd] => 2025-02-09 10:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:47:05' and `end` < '2025-02-09 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-02-09 10:47:18] Production.INFO: count ==279 [2025-02-09 10:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:47:05 - End Time 2025-02-09 10:47:05 [2025-02-09 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436542', 'tblTempUsageDetail_20' ) start [2025-02-09 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436542', 'tblTempUsageDetail_20' ) end [2025-02-09 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436542', 'tblTempVendorCDR_20' ) start [2025-02-09 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436542', 'tblTempVendorCDR_20' ) end [2025-02-09 10:47:18] Production.INFO: ProcessCDR(1,14436542,1,1,2) [2025-02-09 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436542', 'tblTempUsageDetail_20' ) start [2025-02-09 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436542', 'tblTempUsageDetail_20' ) end [2025-02-09 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:47:21] Production.INFO: ==18057== Releasing lock... [2025-02-09 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:48:05 [end_date_ymd] => 2025-02-09 10:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:48:05' and `end` < '2025-02-09 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-02-09 10:48:19] Production.INFO: count ==279 [2025-02-09 10:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:48:05 - End Time 2025-02-09 10:48:05 [2025-02-09 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436547', 'tblTempUsageDetail_20' ) start [2025-02-09 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436547', 'tblTempUsageDetail_20' ) end [2025-02-09 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436547', 'tblTempVendorCDR_20' ) start [2025-02-09 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436547', 'tblTempVendorCDR_20' ) end [2025-02-09 10:48:19] Production.INFO: ProcessCDR(1,14436547,1,1,2) [2025-02-09 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436547', 'tblTempUsageDetail_20' ) start [2025-02-09 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436547', 'tblTempUsageDetail_20' ) end [2025-02-09 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:48:22] Production.INFO: ==18132== Releasing lock... [2025-02-09 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:48:22] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:49:05 [end_date_ymd] => 2025-02-09 10:49:05 [RateCDR] => 1 ) [2025-02-09 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:49:05' and `end` < '2025-02-09 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:49:18] Production.INFO: count ==280 [2025-02-09 10:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:49:05 - End Time 2025-02-09 10:49:05 [2025-02-09 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436552', 'tblTempUsageDetail_20' ) start [2025-02-09 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436552', 'tblTempUsageDetail_20' ) end [2025-02-09 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436552', 'tblTempVendorCDR_20' ) start [2025-02-09 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436552', 'tblTempVendorCDR_20' ) end [2025-02-09 10:49:18] Production.INFO: ProcessCDR(1,14436552,1,1,2) [2025-02-09 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436552', 'tblTempUsageDetail_20' ) start [2025-02-09 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436552', 'tblTempUsageDetail_20' ) end [2025-02-09 10:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:49:23] Production.INFO: ==18212== Releasing lock... [2025-02-09 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:49:23] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:50:06 [end_date_ymd] => 2025-02-09 10:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:50:06' and `end` < '2025-02-09 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-02-09 10:50:19] Production.INFO: count ==279 [2025-02-09 10:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:50:06 - End Time 2025-02-09 10:50:06 [2025-02-09 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436558', 'tblTempUsageDetail_20' ) start [2025-02-09 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436558', 'tblTempUsageDetail_20' ) end [2025-02-09 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436558', 'tblTempVendorCDR_20' ) start [2025-02-09 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436558', 'tblTempVendorCDR_20' ) end [2025-02-09 10:50:19] Production.INFO: ProcessCDR(1,14436558,1,1,2) [2025-02-09 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436558', 'tblTempUsageDetail_20' ) start [2025-02-09 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436558', 'tblTempUsageDetail_20' ) end [2025-02-09 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:50:22] Production.INFO: ==18284== Releasing lock... [2025-02-09 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-09 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:51:05 [end_date_ymd] => 2025-02-09 10:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:51:05' and `end` < '2025-02-09 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-02-09 10:51:19] Production.INFO: count ==285 [2025-02-09 10:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:51:05 - End Time 2025-02-09 10:51:05 [2025-02-09 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436563', 'tblTempUsageDetail_20' ) start [2025-02-09 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436563', 'tblTempUsageDetail_20' ) end [2025-02-09 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436563', 'tblTempVendorCDR_20' ) start [2025-02-09 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436563', 'tblTempVendorCDR_20' ) end [2025-02-09 10:51:19] Production.INFO: ProcessCDR(1,14436563,1,1,2) [2025-02-09 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436563', 'tblTempUsageDetail_20' ) start [2025-02-09 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436563', 'tblTempUsageDetail_20' ) end [2025-02-09 10:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:51:22] Production.INFO: ==18369== Releasing lock... [2025-02-09 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:51:22] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:52:05 [end_date_ymd] => 2025-02-09 10:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:52:05' and `end` < '2025-02-09 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-02-09 10:52:18] Production.INFO: count ==285 [2025-02-09 10:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:52:05 - End Time 2025-02-09 10:52:05 [2025-02-09 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436568', 'tblTempUsageDetail_20' ) start [2025-02-09 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436568', 'tblTempUsageDetail_20' ) end [2025-02-09 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436568', 'tblTempVendorCDR_20' ) start [2025-02-09 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436568', 'tblTempVendorCDR_20' ) end [2025-02-09 10:52:18] Production.INFO: ProcessCDR(1,14436568,1,1,2) [2025-02-09 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436568', 'tblTempUsageDetail_20' ) start [2025-02-09 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436568', 'tblTempUsageDetail_20' ) end [2025-02-09 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:52:21] Production.INFO: ==18441== Releasing lock... [2025-02-09 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:52:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:53:05 [end_date_ymd] => 2025-02-09 10:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:53:05' and `end` < '2025-02-09 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-02-09 10:53:18] Production.INFO: count ==287 [2025-02-09 10:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:53:05 - End Time 2025-02-09 10:53:05 [2025-02-09 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436573', 'tblTempUsageDetail_20' ) start [2025-02-09 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436573', 'tblTempUsageDetail_20' ) end [2025-02-09 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436573', 'tblTempVendorCDR_20' ) start [2025-02-09 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436573', 'tblTempVendorCDR_20' ) end [2025-02-09 10:53:18] Production.INFO: ProcessCDR(1,14436573,1,1,2) [2025-02-09 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436573', 'tblTempUsageDetail_20' ) start [2025-02-09 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436573', 'tblTempUsageDetail_20' ) end [2025-02-09 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:53:22] Production.INFO: ==18514== Releasing lock... [2025-02-09 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:53:22] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:54:05 [end_date_ymd] => 2025-02-09 10:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:54:05' and `end` < '2025-02-09 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-02-09 10:54:18] Production.INFO: count ==289 [2025-02-09 10:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:54:05 - End Time 2025-02-09 10:54:05 [2025-02-09 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436578', 'tblTempUsageDetail_20' ) start [2025-02-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436578', 'tblTempUsageDetail_20' ) end [2025-02-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436578', 'tblTempVendorCDR_20' ) start [2025-02-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436578', 'tblTempVendorCDR_20' ) end [2025-02-09 10:54:18] Production.INFO: ProcessCDR(1,14436578,1,1,2) [2025-02-09 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436578', 'tblTempUsageDetail_20' ) start [2025-02-09 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436578', 'tblTempUsageDetail_20' ) end [2025-02-09 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:54:21] Production.INFO: ==18586== Releasing lock... [2025-02-09 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:54:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:55:04 [end_date_ymd] => 2025-02-09 10:55:04 [RateCDR] => 1 ) [2025-02-09 10: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-02-09 07:55:04' and `end` < '2025-02-09 10: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-02-09 10:55:17] Production.INFO: count ==291 [2025-02-09 10:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:55:04 - End Time 2025-02-09 10:55:04 [2025-02-09 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436583', 'tblTempUsageDetail_20' ) start [2025-02-09 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436583', 'tblTempUsageDetail_20' ) end [2025-02-09 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436583', 'tblTempVendorCDR_20' ) start [2025-02-09 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436583', 'tblTempVendorCDR_20' ) end [2025-02-09 10:55:18] Production.INFO: ProcessCDR(1,14436583,1,1,2) [2025-02-09 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436583', 'tblTempUsageDetail_20' ) start [2025-02-09 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436583', 'tblTempUsageDetail_20' ) end [2025-02-09 10:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:55:22] Production.INFO: ==18697== Releasing lock... [2025-02-09 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:56:06 [end_date_ymd] => 2025-02-09 10:56:06 [RateCDR] => 1 ) [2025-02-09 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:56:06' and `end` < '2025-02-09 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:56:18] Production.INFO: count ==298 [2025-02-09 10:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:56:06 - End Time 2025-02-09 10:56:06 [2025-02-09 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436588', 'tblTempUsageDetail_20' ) start [2025-02-09 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436588', 'tblTempUsageDetail_20' ) end [2025-02-09 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436588', 'tblTempVendorCDR_20' ) start [2025-02-09 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436588', 'tblTempVendorCDR_20' ) end [2025-02-09 10:56:18] Production.INFO: ProcessCDR(1,14436588,1,1,2) [2025-02-09 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436588', 'tblTempUsageDetail_20' ) start [2025-02-09 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436588', 'tblTempUsageDetail_20' ) end [2025-02-09 10:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:56:21] Production.INFO: ==18774== Releasing lock... [2025-02-09 10:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:56:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:57:05 [end_date_ymd] => 2025-02-09 10:57:05 [RateCDR] => 1 ) [2025-02-09 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:57:05' and `end` < '2025-02-09 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:57:19] Production.INFO: count ==298 [2025-02-09 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 07:57:05 - End Time 2025-02-09 10:57:05 [2025-02-09 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436593', 'tblTempUsageDetail_20' ) start [2025-02-09 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436593', 'tblTempUsageDetail_20' ) end [2025-02-09 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436593', 'tblTempVendorCDR_20' ) start [2025-02-09 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436593', 'tblTempVendorCDR_20' ) end [2025-02-09 10:57:19] Production.INFO: ProcessCDR(1,14436593,1,1,2) [2025-02-09 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436593', 'tblTempUsageDetail_20' ) start [2025-02-09 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436593', 'tblTempUsageDetail_20' ) end [2025-02-09 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:57:22] Production.INFO: ==18845== Releasing lock... [2025-02-09 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-09 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:58:05 [end_date_ymd] => 2025-02-09 10:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 07:58:05' and `end` < '2025-02-09 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-02-09 10:58:18] Production.INFO: count ==299 [2025-02-09 10:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 07:58:05 - End Time 2025-02-09 10:58:05 [2025-02-09 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436598', 'tblTempUsageDetail_20' ) start [2025-02-09 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436598', 'tblTempUsageDetail_20' ) end [2025-02-09 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436598', 'tblTempVendorCDR_20' ) start [2025-02-09 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436598', 'tblTempVendorCDR_20' ) end [2025-02-09 10:58:18] Production.INFO: ProcessCDR(1,14436598,1,1,2) [2025-02-09 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436598', 'tblTempUsageDetail_20' ) start [2025-02-09 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436598', 'tblTempUsageDetail_20' ) end [2025-02-09 10:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:58:22] Production.INFO: ==18921== Releasing lock... [2025-02-09 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-09 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 07:59:04 [end_date_ymd] => 2025-02-09 10:59:04 [RateCDR] => 1 ) [2025-02-09 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 07:59:04' and `end` < '2025-02-09 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 10:59:17] Production.INFO: count ==299 [2025-02-09 10:59:17] Production.ERROR: pbx CDR StartTime 2025-02-09 07:59:04 - End Time 2025-02-09 10:59:04 [2025-02-09 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436603', 'tblTempUsageDetail_20' ) start [2025-02-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436603', 'tblTempUsageDetail_20' ) end [2025-02-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436603', 'tblTempVendorCDR_20' ) start [2025-02-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436603', 'tblTempVendorCDR_20' ) end [2025-02-09 10:59:17] Production.INFO: ProcessCDR(1,14436603,1,1,2) [2025-02-09 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 10:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436603', 'tblTempUsageDetail_20' ) start [2025-02-09 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436603', 'tblTempUsageDetail_20' ) end [2025-02-09 10:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 10:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 10:59:21] Production.INFO: ==19011== Releasing lock... [2025-02-09 10:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 10:59:21] Production.INFO: 30 MB #Memory Used# [2025-02-09 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:00:07 [end_date_ymd] => 2025-02-09 11:00:07 [RateCDR] => 1 ) [2025-02-09 11: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-02-09 08:00:07' and `end` < '2025-02-09 11: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-02-09 11:00:20] Production.INFO: count ==307 [2025-02-09 11:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 08:00:07 - End Time 2025-02-09 11:00:07 [2025-02-09 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436609', 'tblTempUsageDetail_20' ) start [2025-02-09 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436609', 'tblTempUsageDetail_20' ) end [2025-02-09 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436609', 'tblTempVendorCDR_20' ) start [2025-02-09 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436609', 'tblTempVendorCDR_20' ) end [2025-02-09 11:00:20] Production.INFO: ProcessCDR(1,14436609,1,1,2) [2025-02-09 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436609', 'tblTempUsageDetail_20' ) start [2025-02-09 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436609', 'tblTempUsageDetail_20' ) end [2025-02-09 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:00:23] Production.INFO: ==19104== Releasing lock... [2025-02-09 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:01:04 [end_date_ymd] => 2025-02-09 11:01:04 [RateCDR] => 1 ) [2025-02-09 11:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:01:04' and `end` < '2025-02-09 11:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:01:17] Production.INFO: count ==315 [2025-02-09 11:01:17] Production.ERROR: pbx CDR StartTime 2025-02-09 08:01:04 - End Time 2025-02-09 11:01:04 [2025-02-09 11:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436614', 'tblTempUsageDetail_20' ) start [2025-02-09 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436614', 'tblTempUsageDetail_20' ) end [2025-02-09 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436614', 'tblTempVendorCDR_20' ) start [2025-02-09 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436614', 'tblTempVendorCDR_20' ) end [2025-02-09 11:01:17] Production.INFO: ProcessCDR(1,14436614,1,1,2) [2025-02-09 11:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436614', 'tblTempUsageDetail_20' ) start [2025-02-09 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436614', 'tblTempUsageDetail_20' ) end [2025-02-09 11:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:01:21] Production.INFO: ==19238== Releasing lock... [2025-02-09 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:02:06 [end_date_ymd] => 2025-02-09 11:02:06 [RateCDR] => 1 ) [2025-02-09 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:02:06' and `end` < '2025-02-09 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:02:18] Production.INFO: count ==315 [2025-02-09 11:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:02:06 - End Time 2025-02-09 11:02:06 [2025-02-09 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436619', 'tblTempUsageDetail_20' ) start [2025-02-09 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436619', 'tblTempUsageDetail_20' ) end [2025-02-09 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436619', 'tblTempVendorCDR_20' ) start [2025-02-09 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436619', 'tblTempVendorCDR_20' ) end [2025-02-09 11:02:18] Production.INFO: ProcessCDR(1,14436619,1,1,2) [2025-02-09 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436619', 'tblTempUsageDetail_20' ) start [2025-02-09 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436619', 'tblTempUsageDetail_20' ) end [2025-02-09 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:02:22] Production.INFO: ==19350== Releasing lock... [2025-02-09 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-09 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:03:05 [end_date_ymd] => 2025-02-09 11:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:03:05' and `end` < '2025-02-09 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-02-09 11:03:19] Production.INFO: count ==317 [2025-02-09 11:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:03:05 - End Time 2025-02-09 11:03:05 [2025-02-09 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436624', 'tblTempUsageDetail_20' ) start [2025-02-09 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436624', 'tblTempUsageDetail_20' ) end [2025-02-09 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436624', 'tblTempVendorCDR_20' ) start [2025-02-09 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436624', 'tblTempVendorCDR_20' ) end [2025-02-09 11:03:19] Production.INFO: ProcessCDR(1,14436624,1,1,2) [2025-02-09 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436624', 'tblTempUsageDetail_20' ) start [2025-02-09 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436624', 'tblTempUsageDetail_20' ) end [2025-02-09 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:03:24] Production.INFO: ==19423== Releasing lock... [2025-02-09 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:03:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-09 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:04:06 [end_date_ymd] => 2025-02-09 11:04:06 [RateCDR] => 1 ) [2025-02-09 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:04:06' and `end` < '2025-02-09 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:04:19] Production.INFO: count ==317 [2025-02-09 11:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:04:06 - End Time 2025-02-09 11:04:06 [2025-02-09 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436629', 'tblTempUsageDetail_20' ) start [2025-02-09 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436629', 'tblTempUsageDetail_20' ) end [2025-02-09 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436629', 'tblTempVendorCDR_20' ) start [2025-02-09 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436629', 'tblTempVendorCDR_20' ) end [2025-02-09 11:04:19] Production.INFO: ProcessCDR(1,14436629,1,1,2) [2025-02-09 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436629', 'tblTempUsageDetail_20' ) start [2025-02-09 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436629', 'tblTempUsageDetail_20' ) end [2025-02-09 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:04:22] Production.INFO: ==19499== Releasing lock... [2025-02-09 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-09 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:05:05 [end_date_ymd] => 2025-02-09 11:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:05:05' and `end` < '2025-02-09 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-02-09 11:05:18] Production.INFO: count ==324 [2025-02-09 11:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:05:05 - End Time 2025-02-09 11:05:05 [2025-02-09 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436634', 'tblTempUsageDetail_20' ) start [2025-02-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436634', 'tblTempUsageDetail_20' ) end [2025-02-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436634', 'tblTempVendorCDR_20' ) start [2025-02-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436634', 'tblTempVendorCDR_20' ) end [2025-02-09 11:05:18] Production.INFO: ProcessCDR(1,14436634,1,1,2) [2025-02-09 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436634', 'tblTempUsageDetail_20' ) start [2025-02-09 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436634', 'tblTempUsageDetail_20' ) end [2025-02-09 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:05:22] Production.INFO: ==19650== Releasing lock... [2025-02-09 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:06:05 [end_date_ymd] => 2025-02-09 11:06:05 [RateCDR] => 1 ) [2025-02-09 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:06:05' and `end` < '2025-02-09 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:06:18] Production.INFO: count ==329 [2025-02-09 11:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:06:05 - End Time 2025-02-09 11:06:05 [2025-02-09 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436639', 'tblTempUsageDetail_20' ) start [2025-02-09 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436639', 'tblTempUsageDetail_20' ) end [2025-02-09 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436639', 'tblTempVendorCDR_20' ) start [2025-02-09 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436639', 'tblTempVendorCDR_20' ) end [2025-02-09 11:06:18] Production.INFO: ProcessCDR(1,14436639,1,1,2) [2025-02-09 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436639', 'tblTempUsageDetail_20' ) start [2025-02-09 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436639', 'tblTempUsageDetail_20' ) end [2025-02-09 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:06:21] Production.INFO: ==19724== Releasing lock... [2025-02-09 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-09 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:07:05 [end_date_ymd] => 2025-02-09 11:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:07:05' and `end` < '2025-02-09 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-02-09 11:07:18] Production.INFO: count ==340 [2025-02-09 11:07:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:07:05 - End Time 2025-02-09 11:07:05 [2025-02-09 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436644', 'tblTempUsageDetail_20' ) start [2025-02-09 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436644', 'tblTempUsageDetail_20' ) end [2025-02-09 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436644', 'tblTempVendorCDR_20' ) start [2025-02-09 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436644', 'tblTempVendorCDR_20' ) end [2025-02-09 11:07:18] Production.INFO: ProcessCDR(1,14436644,1,1,2) [2025-02-09 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436644', 'tblTempUsageDetail_20' ) start [2025-02-09 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436644', 'tblTempUsageDetail_20' ) end [2025-02-09 11:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:07:22] Production.INFO: ==19798== Releasing lock... [2025-02-09 11:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:08:05 [end_date_ymd] => 2025-02-09 11:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:08:05' and `end` < '2025-02-09 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-02-09 11:08:18] Production.INFO: count ==347 [2025-02-09 11:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:08:05 - End Time 2025-02-09 11:08:05 [2025-02-09 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436649', 'tblTempUsageDetail_20' ) start [2025-02-09 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436649', 'tblTempUsageDetail_20' ) end [2025-02-09 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436649', 'tblTempVendorCDR_20' ) start [2025-02-09 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436649', 'tblTempVendorCDR_20' ) end [2025-02-09 11:08:18] Production.INFO: ProcessCDR(1,14436649,1,1,2) [2025-02-09 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436649', 'tblTempUsageDetail_20' ) start [2025-02-09 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436649', 'tblTempUsageDetail_20' ) end [2025-02-09 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:08:22] Production.INFO: ==19950== Releasing lock... [2025-02-09 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:08:22] Production.INFO: 31 MB #Memory Used# [2025-02-09 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:09:05 [end_date_ymd] => 2025-02-09 11:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:09:05' and `end` < '2025-02-09 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-02-09 11:09:18] Production.INFO: count ==347 [2025-02-09 11:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:09:05 - End Time 2025-02-09 11:09:05 [2025-02-09 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436654', 'tblTempUsageDetail_20' ) start [2025-02-09 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436654', 'tblTempUsageDetail_20' ) end [2025-02-09 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436654', 'tblTempVendorCDR_20' ) start [2025-02-09 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436654', 'tblTempVendorCDR_20' ) end [2025-02-09 11:09:18] Production.INFO: ProcessCDR(1,14436654,1,1,2) [2025-02-09 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436654', 'tblTempUsageDetail_20' ) start [2025-02-09 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436654', 'tblTempUsageDetail_20' ) end [2025-02-09 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:09:22] Production.INFO: ==20024== Releasing lock... [2025-02-09 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:09:22] Production.INFO: 31 MB #Memory Used# [2025-02-09 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:10:06 [end_date_ymd] => 2025-02-09 11:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:10:06' and `end` < '2025-02-09 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-02-09 11:10:19] Production.INFO: count ==360 [2025-02-09 11:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:10:06 - End Time 2025-02-09 11:10:06 [2025-02-09 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436659', 'tblTempUsageDetail_20' ) start [2025-02-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436659', 'tblTempUsageDetail_20' ) end [2025-02-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436659', 'tblTempVendorCDR_20' ) start [2025-02-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436659', 'tblTempVendorCDR_20' ) end [2025-02-09 11:10:19] Production.INFO: ProcessCDR(1,14436659,1,1,2) [2025-02-09 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436659', 'tblTempUsageDetail_20' ) start [2025-02-09 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436659', 'tblTempUsageDetail_20' ) end [2025-02-09 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:10:25] Production.INFO: ==20106== Releasing lock... [2025-02-09 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:10:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:11:05 [end_date_ymd] => 2025-02-09 11:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:11:05' and `end` < '2025-02-09 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-02-09 11:11:19] Production.INFO: count ==381 [2025-02-09 11:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:11:05 - End Time 2025-02-09 11:11:05 [2025-02-09 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436665', 'tblTempUsageDetail_20' ) start [2025-02-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436665', 'tblTempUsageDetail_20' ) end [2025-02-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436665', 'tblTempVendorCDR_20' ) start [2025-02-09 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436665', 'tblTempVendorCDR_20' ) end [2025-02-09 11:11:19] Production.INFO: ProcessCDR(1,14436665,1,1,2) [2025-02-09 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436665', 'tblTempUsageDetail_20' ) start [2025-02-09 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436665', 'tblTempUsageDetail_20' ) end [2025-02-09 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:11:23] Production.INFO: ==20221== Releasing lock... [2025-02-09 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:11:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:12:05 [end_date_ymd] => 2025-02-09 11:12:05 [RateCDR] => 1 ) [2025-02-09 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:12:05' and `end` < '2025-02-09 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:12:18] Production.INFO: count ==385 [2025-02-09 11:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:12:05 - End Time 2025-02-09 11:12:05 [2025-02-09 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436670', 'tblTempUsageDetail_20' ) start [2025-02-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436670', 'tblTempUsageDetail_20' ) end [2025-02-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436670', 'tblTempVendorCDR_20' ) start [2025-02-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436670', 'tblTempVendorCDR_20' ) end [2025-02-09 11:12:18] Production.INFO: ProcessCDR(1,14436670,1,1,2) [2025-02-09 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436670', 'tblTempUsageDetail_20' ) start [2025-02-09 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436670', 'tblTempUsageDetail_20' ) end [2025-02-09 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:12:23] Production.INFO: ==20369== Releasing lock... [2025-02-09 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:12:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-09 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:13:06 [end_date_ymd] => 2025-02-09 11:13:06 [RateCDR] => 1 ) [2025-02-09 11: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-02-09 08:13:06' and `end` < '2025-02-09 11: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-02-09 11:13:19] Production.INFO: count ==392 [2025-02-09 11:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:13:06 - End Time 2025-02-09 11:13:06 [2025-02-09 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436675', 'tblTempUsageDetail_20' ) start [2025-02-09 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436675', 'tblTempUsageDetail_20' ) end [2025-02-09 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436675', 'tblTempVendorCDR_20' ) start [2025-02-09 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436675', 'tblTempVendorCDR_20' ) end [2025-02-09 11:13:19] Production.INFO: ProcessCDR(1,14436675,1,1,2) [2025-02-09 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436675', 'tblTempUsageDetail_20' ) start [2025-02-09 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436675', 'tblTempUsageDetail_20' ) end [2025-02-09 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:13:22] Production.INFO: ==20444== Releasing lock... [2025-02-09 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:14:05 [end_date_ymd] => 2025-02-09 11:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:14:05' and `end` < '2025-02-09 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-02-09 11:14:18] Production.INFO: count ==399 [2025-02-09 11:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:14:05 - End Time 2025-02-09 11:14:05 [2025-02-09 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436680', 'tblTempUsageDetail_20' ) start [2025-02-09 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436680', 'tblTempUsageDetail_20' ) end [2025-02-09 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436680', 'tblTempVendorCDR_20' ) start [2025-02-09 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436680', 'tblTempVendorCDR_20' ) end [2025-02-09 11:14:18] Production.INFO: ProcessCDR(1,14436680,1,1,2) [2025-02-09 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436680', 'tblTempUsageDetail_20' ) start [2025-02-09 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436680', 'tblTempUsageDetail_20' ) end [2025-02-09 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:14:22] Production.INFO: ==20521== Releasing lock... [2025-02-09 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:15:05 [end_date_ymd] => 2025-02-09 11:15:05 [RateCDR] => 1 ) [2025-02-09 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:15:05' and `end` < '2025-02-09 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:15:18] Production.INFO: count ==399 [2025-02-09 11:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:15:05 - End Time 2025-02-09 11:15:05 [2025-02-09 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436685', 'tblTempUsageDetail_20' ) start [2025-02-09 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436685', 'tblTempUsageDetail_20' ) end [2025-02-09 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436685', 'tblTempVendorCDR_20' ) start [2025-02-09 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436685', 'tblTempVendorCDR_20' ) end [2025-02-09 11:15:18] Production.INFO: ProcessCDR(1,14436685,1,1,2) [2025-02-09 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436685', 'tblTempUsageDetail_20' ) start [2025-02-09 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436685', 'tblTempUsageDetail_20' ) end [2025-02-09 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:15:22] Production.INFO: ==20675== Releasing lock... [2025-02-09 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:15:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:16:05 [end_date_ymd] => 2025-02-09 11:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:16:05' and `end` < '2025-02-09 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-02-09 11:16:18] Production.INFO: count ==398 [2025-02-09 11:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:16:05 - End Time 2025-02-09 11:16:05 [2025-02-09 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436690', 'tblTempUsageDetail_20' ) start [2025-02-09 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436690', 'tblTempUsageDetail_20' ) end [2025-02-09 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436690', 'tblTempVendorCDR_20' ) start [2025-02-09 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436690', 'tblTempVendorCDR_20' ) end [2025-02-09 11:16:18] Production.INFO: ProcessCDR(1,14436690,1,1,2) [2025-02-09 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436690', 'tblTempUsageDetail_20' ) start [2025-02-09 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436690', 'tblTempUsageDetail_20' ) end [2025-02-09 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:16:22] Production.INFO: ==20748== Releasing lock... [2025-02-09 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:17:06 [end_date_ymd] => 2025-02-09 11:17:06 [RateCDR] => 1 ) [2025-02-09 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:17:06' and `end` < '2025-02-09 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:17:19] Production.INFO: count ==398 [2025-02-09 11:17:20] Production.ERROR: pbx CDR StartTime 2025-02-09 08:17:06 - End Time 2025-02-09 11:17:06 [2025-02-09 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436695', 'tblTempUsageDetail_20' ) start [2025-02-09 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436695', 'tblTempUsageDetail_20' ) end [2025-02-09 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436695', 'tblTempVendorCDR_20' ) start [2025-02-09 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436695', 'tblTempVendorCDR_20' ) end [2025-02-09 11:17:20] Production.INFO: ProcessCDR(1,14436695,1,1,2) [2025-02-09 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436695', 'tblTempUsageDetail_20' ) start [2025-02-09 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436695', 'tblTempUsageDetail_20' ) end [2025-02-09 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:17:23] Production.INFO: ==20826== Releasing lock... [2025-02-09 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:17:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:18:05 [end_date_ymd] => 2025-02-09 11:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:18:05' and `end` < '2025-02-09 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-02-09 11:18:19] Production.INFO: count ==403 [2025-02-09 11:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:18:05 - End Time 2025-02-09 11:18:05 [2025-02-09 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436700', 'tblTempUsageDetail_20' ) start [2025-02-09 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436700', 'tblTempUsageDetail_20' ) end [2025-02-09 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436700', 'tblTempVendorCDR_20' ) start [2025-02-09 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436700', 'tblTempVendorCDR_20' ) end [2025-02-09 11:18:19] Production.INFO: ProcessCDR(1,14436700,1,1,2) [2025-02-09 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436700', 'tblTempUsageDetail_20' ) start [2025-02-09 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436700', 'tblTempUsageDetail_20' ) end [2025-02-09 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:18:23] Production.INFO: ==20900== Releasing lock... [2025-02-09 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:18:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:19:06 [end_date_ymd] => 2025-02-09 11:19:06 [RateCDR] => 1 ) [2025-02-09 11: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-02-09 08:19:06' and `end` < '2025-02-09 11: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-02-09 11:19:20] Production.INFO: count ==407 [2025-02-09 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-09 08:19:06 - End Time 2025-02-09 11:19:06 [2025-02-09 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436705', 'tblTempUsageDetail_20' ) start [2025-02-09 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436705', 'tblTempUsageDetail_20' ) end [2025-02-09 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436705', 'tblTempVendorCDR_20' ) start [2025-02-09 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436705', 'tblTempVendorCDR_20' ) end [2025-02-09 11:19:20] Production.INFO: ProcessCDR(1,14436705,1,1,2) [2025-02-09 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436705', 'tblTempUsageDetail_20' ) start [2025-02-09 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436705', 'tblTempUsageDetail_20' ) end [2025-02-09 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:19:25] Production.INFO: ==20981== Releasing lock... [2025-02-09 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:19:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:20:06 [end_date_ymd] => 2025-02-09 11:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:20:06' and `end` < '2025-02-09 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-02-09 11:20:19] Production.INFO: count ==424 [2025-02-09 11:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:20:06 - End Time 2025-02-09 11:20:06 [2025-02-09 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436711', 'tblTempUsageDetail_20' ) start [2025-02-09 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436711', 'tblTempUsageDetail_20' ) end [2025-02-09 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436711', 'tblTempVendorCDR_20' ) start [2025-02-09 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436711', 'tblTempVendorCDR_20' ) end [2025-02-09 11:20:19] Production.INFO: ProcessCDR(1,14436711,1,1,2) [2025-02-09 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436711', 'tblTempUsageDetail_20' ) start [2025-02-09 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436711', 'tblTempUsageDetail_20' ) end [2025-02-09 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:20:25] Production.INFO: ==21060== Releasing lock... [2025-02-09 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:20:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:21:05 [end_date_ymd] => 2025-02-09 11:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:21:05' and `end` < '2025-02-09 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-02-09 11:21:18] Production.INFO: count ==475 [2025-02-09 11:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:21:05 - End Time 2025-02-09 11:21:05 [2025-02-09 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436716', 'tblTempUsageDetail_20' ) start [2025-02-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436716', 'tblTempUsageDetail_20' ) end [2025-02-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436716', 'tblTempVendorCDR_20' ) start [2025-02-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436716', 'tblTempVendorCDR_20' ) end [2025-02-09 11:21:18] Production.INFO: ProcessCDR(1,14436716,1,1,2) [2025-02-09 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436716', 'tblTempUsageDetail_20' ) start [2025-02-09 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436716', 'tblTempUsageDetail_20' ) end [2025-02-09 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:21:22] Production.INFO: ==21137== Releasing lock... [2025-02-09 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:21:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:22:05 [end_date_ymd] => 2025-02-09 11:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:22:05' and `end` < '2025-02-09 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-02-09 11:22:20] Production.INFO: count ==475 [2025-02-09 11:22:20] Production.ERROR: pbx CDR StartTime 2025-02-09 08:22:05 - End Time 2025-02-09 11:22:05 [2025-02-09 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436721', 'tblTempUsageDetail_20' ) start [2025-02-09 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436721', 'tblTempUsageDetail_20' ) end [2025-02-09 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436721', 'tblTempVendorCDR_20' ) start [2025-02-09 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436721', 'tblTempVendorCDR_20' ) end [2025-02-09 11:22:20] Production.INFO: ProcessCDR(1,14436721,1,1,2) [2025-02-09 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436721', 'tblTempUsageDetail_20' ) start [2025-02-09 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436721', 'tblTempUsageDetail_20' ) end [2025-02-09 11:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:22:24] Production.INFO: ==21218== Releasing lock... [2025-02-09 11:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:22:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:23:06 [end_date_ymd] => 2025-02-09 11:23:06 [RateCDR] => 1 ) [2025-02-09 11: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-02-09 08:23:06' and `end` < '2025-02-09 11: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-02-09 11:23:19] Production.INFO: count ==474 [2025-02-09 11:23:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:23:06 - End Time 2025-02-09 11:23:06 [2025-02-09 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436726', 'tblTempUsageDetail_20' ) start [2025-02-09 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436726', 'tblTempUsageDetail_20' ) end [2025-02-09 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436726', 'tblTempVendorCDR_20' ) start [2025-02-09 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436726', 'tblTempVendorCDR_20' ) end [2025-02-09 11:23:19] Production.INFO: ProcessCDR(1,14436726,1,1,2) [2025-02-09 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436726', 'tblTempUsageDetail_20' ) start [2025-02-09 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436726', 'tblTempUsageDetail_20' ) end [2025-02-09 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:23:23] Production.INFO: ==21293== Releasing lock... [2025-02-09 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:24:05 [end_date_ymd] => 2025-02-09 11:24:05 [RateCDR] => 1 ) [2025-02-09 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:24:05' and `end` < '2025-02-09 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-02-09 11:24:19] Production.INFO: count ==474 [2025-02-09 11:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:24:05 - End Time 2025-02-09 11:24:05 [2025-02-09 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436731', 'tblTempUsageDetail_20' ) start [2025-02-09 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436731', 'tblTempUsageDetail_20' ) end [2025-02-09 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436731', 'tblTempVendorCDR_20' ) start [2025-02-09 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436731', 'tblTempVendorCDR_20' ) end [2025-02-09 11:24:19] Production.INFO: ProcessCDR(1,14436731,1,1,2) [2025-02-09 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436731', 'tblTempUsageDetail_20' ) start [2025-02-09 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436731', 'tblTempUsageDetail_20' ) end [2025-02-09 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:24:24] Production.INFO: ==21368== Releasing lock... [2025-02-09 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:24:24] Production.INFO: 32 MB #Memory Used# [2025-02-09 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:25:05 [end_date_ymd] => 2025-02-09 11:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:25:05' and `end` < '2025-02-09 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-02-09 11:25:18] Production.INFO: count ==474 [2025-02-09 11:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:25:05 - End Time 2025-02-09 11:25:05 [2025-02-09 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436736', 'tblTempUsageDetail_20' ) start [2025-02-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436736', 'tblTempUsageDetail_20' ) end [2025-02-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436736', 'tblTempVendorCDR_20' ) start [2025-02-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436736', 'tblTempVendorCDR_20' ) end [2025-02-09 11:25:18] Production.INFO: ProcessCDR(1,14436736,1,1,2) [2025-02-09 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436736', 'tblTempUsageDetail_20' ) start [2025-02-09 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436736', 'tblTempUsageDetail_20' ) end [2025-02-09 11:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:25:22] Production.INFO: ==21446== Releasing lock... [2025-02-09 11:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:25:22] Production.INFO: 32 MB #Memory Used# [2025-02-09 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:26:05 [end_date_ymd] => 2025-02-09 11:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:26:05' and `end` < '2025-02-09 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-02-09 11:26:19] Production.INFO: count ==474 [2025-02-09 11:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:26:05 - End Time 2025-02-09 11:26:05 [2025-02-09 11:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436741', 'tblTempUsageDetail_20' ) start [2025-02-09 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436741', 'tblTempUsageDetail_20' ) end [2025-02-09 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436741', 'tblTempVendorCDR_20' ) start [2025-02-09 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436741', 'tblTempVendorCDR_20' ) end [2025-02-09 11:26:19] Production.INFO: ProcessCDR(1,14436741,1,1,2) [2025-02-09 11:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436741', 'tblTempUsageDetail_20' ) start [2025-02-09 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436741', 'tblTempUsageDetail_20' ) end [2025-02-09 11:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:26:22] Production.INFO: ==21560== Releasing lock... [2025-02-09 11:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:26:22] Production.INFO: 32 MB #Memory Used# [2025-02-09 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:27:05 [end_date_ymd] => 2025-02-09 11:27:05 [RateCDR] => 1 ) [2025-02-09 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:27:05' and `end` < '2025-02-09 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:27:19] Production.INFO: count ==475 [2025-02-09 11:27:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:27:05 - End Time 2025-02-09 11:27:05 [2025-02-09 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436746', 'tblTempUsageDetail_20' ) start [2025-02-09 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436746', 'tblTempUsageDetail_20' ) end [2025-02-09 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436746', 'tblTempVendorCDR_20' ) start [2025-02-09 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436746', 'tblTempVendorCDR_20' ) end [2025-02-09 11:27:19] Production.INFO: ProcessCDR(1,14436746,1,1,2) [2025-02-09 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436746', 'tblTempUsageDetail_20' ) start [2025-02-09 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436746', 'tblTempUsageDetail_20' ) end [2025-02-09 11:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:27:24] Production.INFO: ==21642== Releasing lock... [2025-02-09 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:27:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:28:05 [end_date_ymd] => 2025-02-09 11:28:05 [RateCDR] => 1 ) [2025-02-09 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:28:05' and `end` < '2025-02-09 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:28:19] Production.INFO: count ==475 [2025-02-09 11:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:28:05 - End Time 2025-02-09 11:28:05 [2025-02-09 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436751', 'tblTempUsageDetail_20' ) start [2025-02-09 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436751', 'tblTempUsageDetail_20' ) end [2025-02-09 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436751', 'tblTempVendorCDR_20' ) start [2025-02-09 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436751', 'tblTempVendorCDR_20' ) end [2025-02-09 11:28:19] Production.INFO: ProcessCDR(1,14436751,1,1,2) [2025-02-09 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436751', 'tblTempUsageDetail_20' ) start [2025-02-09 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436751', 'tblTempUsageDetail_20' ) end [2025-02-09 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:28:22] Production.INFO: ==21717== Releasing lock... [2025-02-09 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:29:05 [end_date_ymd] => 2025-02-09 11:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:29:05' and `end` < '2025-02-09 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-02-09 11:29:19] Production.INFO: count ==475 [2025-02-09 11:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:29:05 - End Time 2025-02-09 11:29:05 [2025-02-09 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436756', 'tblTempUsageDetail_20' ) start [2025-02-09 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436756', 'tblTempUsageDetail_20' ) end [2025-02-09 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436756', 'tblTempVendorCDR_20' ) start [2025-02-09 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436756', 'tblTempVendorCDR_20' ) end [2025-02-09 11:29:19] Production.INFO: ProcessCDR(1,14436756,1,1,2) [2025-02-09 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436756', 'tblTempUsageDetail_20' ) start [2025-02-09 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436756', 'tblTempUsageDetail_20' ) end [2025-02-09 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:29:22] Production.INFO: ==21793== Releasing lock... [2025-02-09 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-09 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:30:05 [end_date_ymd] => 2025-02-09 11:30:05 [RateCDR] => 1 ) [2025-02-09 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:30:05' and `end` < '2025-02-09 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:30:18] Production.INFO: count ==474 [2025-02-09 11:30:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:30:05 - End Time 2025-02-09 11:30:05 [2025-02-09 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436762', 'tblTempUsageDetail_20' ) start [2025-02-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436762', 'tblTempUsageDetail_20' ) end [2025-02-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436762', 'tblTempVendorCDR_20' ) start [2025-02-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436762', 'tblTempVendorCDR_20' ) end [2025-02-09 11:30:18] Production.INFO: ProcessCDR(1,14436762,1,1,2) [2025-02-09 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436762', 'tblTempUsageDetail_20' ) start [2025-02-09 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436762', 'tblTempUsageDetail_20' ) end [2025-02-09 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:30:22] Production.INFO: ==21877== Releasing lock... [2025-02-09 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:30:22] Production.INFO: 32 MB #Memory Used# [2025-02-09 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:31:05 [end_date_ymd] => 2025-02-09 11:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:31:05' and `end` < '2025-02-09 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-02-09 11:31:18] Production.INFO: count ==492 [2025-02-09 11:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:31:05 - End Time 2025-02-09 11:31:05 [2025-02-09 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436767', 'tblTempUsageDetail_20' ) start [2025-02-09 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436767', 'tblTempUsageDetail_20' ) end [2025-02-09 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436767', 'tblTempVendorCDR_20' ) start [2025-02-09 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436767', 'tblTempVendorCDR_20' ) end [2025-02-09 11:31:18] Production.INFO: ProcessCDR(1,14436767,1,1,2) [2025-02-09 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436767', 'tblTempUsageDetail_20' ) start [2025-02-09 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436767', 'tblTempUsageDetail_20' ) end [2025-02-09 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:31:21] Production.INFO: ==21957== Releasing lock... [2025-02-09 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:32:04 [end_date_ymd] => 2025-02-09 11:32:04 [RateCDR] => 1 ) [2025-02-09 11:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:32:04' and `end` < '2025-02-09 11:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:32:17] Production.INFO: count ==495 [2025-02-09 11:32:17] Production.ERROR: pbx CDR StartTime 2025-02-09 08:32:04 - End Time 2025-02-09 11:32:04 [2025-02-09 11:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436772', 'tblTempUsageDetail_20' ) start [2025-02-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436772', 'tblTempUsageDetail_20' ) end [2025-02-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436772', 'tblTempVendorCDR_20' ) start [2025-02-09 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436772', 'tblTempVendorCDR_20' ) end [2025-02-09 11:32:18] Production.INFO: ProcessCDR(1,14436772,1,1,2) [2025-02-09 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436772', 'tblTempUsageDetail_20' ) start [2025-02-09 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436772', 'tblTempUsageDetail_20' ) end [2025-02-09 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:32:21] Production.INFO: ==22030== Releasing lock... [2025-02-09 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-09 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:33:05 [end_date_ymd] => 2025-02-09 11:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:33:05' and `end` < '2025-02-09 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-02-09 11:33:18] Production.INFO: count ==496 [2025-02-09 11:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:33:05 - End Time 2025-02-09 11:33:05 [2025-02-09 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436777', 'tblTempUsageDetail_20' ) start [2025-02-09 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436777', 'tblTempUsageDetail_20' ) end [2025-02-09 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436777', 'tblTempVendorCDR_20' ) start [2025-02-09 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436777', 'tblTempVendorCDR_20' ) end [2025-02-09 11:33:18] Production.INFO: ProcessCDR(1,14436777,1,1,2) [2025-02-09 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436777', 'tblTempUsageDetail_20' ) start [2025-02-09 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436777', 'tblTempUsageDetail_20' ) end [2025-02-09 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:33:23] Production.INFO: ==22117== Releasing lock... [2025-02-09 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:33:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:34:05 [end_date_ymd] => 2025-02-09 11:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:34:05' and `end` < '2025-02-09 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-02-09 11:34:18] Production.INFO: count ==496 [2025-02-09 11:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:34:05 - End Time 2025-02-09 11:34:05 [2025-02-09 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436782', 'tblTempUsageDetail_20' ) start [2025-02-09 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436782', 'tblTempUsageDetail_20' ) end [2025-02-09 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436782', 'tblTempVendorCDR_20' ) start [2025-02-09 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436782', 'tblTempVendorCDR_20' ) end [2025-02-09 11:34:18] Production.INFO: ProcessCDR(1,14436782,1,1,2) [2025-02-09 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436782', 'tblTempUsageDetail_20' ) start [2025-02-09 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436782', 'tblTempUsageDetail_20' ) end [2025-02-09 11:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:34:21] Production.INFO: ==22192== Releasing lock... [2025-02-09 11:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:35:05 [end_date_ymd] => 2025-02-09 11:35:05 [RateCDR] => 1 ) [2025-02-09 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:35:05' and `end` < '2025-02-09 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:35:18] Production.INFO: count ==496 [2025-02-09 11:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:35:05 - End Time 2025-02-09 11:35:05 [2025-02-09 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436787', 'tblTempUsageDetail_20' ) start [2025-02-09 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436787', 'tblTempUsageDetail_20' ) end [2025-02-09 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436787', 'tblTempVendorCDR_20' ) start [2025-02-09 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436787', 'tblTempVendorCDR_20' ) end [2025-02-09 11:35:19] Production.INFO: ProcessCDR(1,14436787,1,1,2) [2025-02-09 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436787', 'tblTempUsageDetail_20' ) start [2025-02-09 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436787', 'tblTempUsageDetail_20' ) end [2025-02-09 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:35:22] Production.INFO: ==22268== Releasing lock... [2025-02-09 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:36:05 [end_date_ymd] => 2025-02-09 11:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:36:05' and `end` < '2025-02-09 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-02-09 11:36:18] Production.INFO: count ==496 [2025-02-09 11:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:36:05 - End Time 2025-02-09 11:36:05 [2025-02-09 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436792', 'tblTempUsageDetail_20' ) start [2025-02-09 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436792', 'tblTempUsageDetail_20' ) end [2025-02-09 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436792', 'tblTempVendorCDR_20' ) start [2025-02-09 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436792', 'tblTempVendorCDR_20' ) end [2025-02-09 11:36:18] Production.INFO: ProcessCDR(1,14436792,1,1,2) [2025-02-09 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436792', 'tblTempUsageDetail_20' ) start [2025-02-09 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436792', 'tblTempUsageDetail_20' ) end [2025-02-09 11:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:36:21] Production.INFO: ==22346== Releasing lock... [2025-02-09 11:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-09 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:37:05 [end_date_ymd] => 2025-02-09 11:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:37:05' and `end` < '2025-02-09 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-02-09 11:37:18] Production.INFO: count ==503 [2025-02-09 11:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:37:05 - End Time 2025-02-09 11:37:05 [2025-02-09 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436797', 'tblTempUsageDetail_20' ) start [2025-02-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436797', 'tblTempUsageDetail_20' ) end [2025-02-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436797', 'tblTempVendorCDR_20' ) start [2025-02-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436797', 'tblTempVendorCDR_20' ) end [2025-02-09 11:37:18] Production.INFO: ProcessCDR(1,14436797,1,1,2) [2025-02-09 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436797', 'tblTempUsageDetail_20' ) start [2025-02-09 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436797', 'tblTempUsageDetail_20' ) end [2025-02-09 11:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:37:22] Production.INFO: ==22427== Releasing lock... [2025-02-09 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:38:06 [end_date_ymd] => 2025-02-09 11:38:06 [RateCDR] => 1 ) [2025-02-09 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:38:06' and `end` < '2025-02-09 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:38:19] Production.INFO: count ==503 [2025-02-09 11:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:38:06 - End Time 2025-02-09 11:38:06 [2025-02-09 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436802', 'tblTempUsageDetail_20' ) start [2025-02-09 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436802', 'tblTempUsageDetail_20' ) end [2025-02-09 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436802', 'tblTempVendorCDR_20' ) start [2025-02-09 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436802', 'tblTempVendorCDR_20' ) end [2025-02-09 11:38:19] Production.INFO: ProcessCDR(1,14436802,1,1,2) [2025-02-09 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436802', 'tblTempUsageDetail_20' ) start [2025-02-09 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436802', 'tblTempUsageDetail_20' ) end [2025-02-09 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:38:22] Production.INFO: ==22510== Releasing lock... [2025-02-09 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:39:05 [end_date_ymd] => 2025-02-09 11:39:05 [RateCDR] => 1 ) [2025-02-09 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:39:05' and `end` < '2025-02-09 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:39:18] Production.INFO: count ==503 [2025-02-09 11:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:39:05 - End Time 2025-02-09 11:39:05 [2025-02-09 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436807', 'tblTempUsageDetail_20' ) start [2025-02-09 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436807', 'tblTempUsageDetail_20' ) end [2025-02-09 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436807', 'tblTempVendorCDR_20' ) start [2025-02-09 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436807', 'tblTempVendorCDR_20' ) end [2025-02-09 11:39:19] Production.INFO: ProcessCDR(1,14436807,1,1,2) [2025-02-09 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436807', 'tblTempUsageDetail_20' ) start [2025-02-09 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436807', 'tblTempUsageDetail_20' ) end [2025-02-09 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:39:23] Production.INFO: ==22590== Releasing lock... [2025-02-09 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:40:07 [end_date_ymd] => 2025-02-09 11:40:07 [RateCDR] => 1 ) [2025-02-09 11: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-02-09 08:40:07' and `end` < '2025-02-09 11: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-02-09 11:40:20] Production.INFO: count ==511 [2025-02-09 11:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 08:40:07 - End Time 2025-02-09 11:40:07 [2025-02-09 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436813', 'tblTempUsageDetail_20' ) start [2025-02-09 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436813', 'tblTempUsageDetail_20' ) end [2025-02-09 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436813', 'tblTempVendorCDR_20' ) start [2025-02-09 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436813', 'tblTempVendorCDR_20' ) end [2025-02-09 11:40:20] Production.INFO: ProcessCDR(1,14436813,1,1,2) [2025-02-09 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436813', 'tblTempUsageDetail_20' ) start [2025-02-09 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436813', 'tblTempUsageDetail_20' ) end [2025-02-09 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:40:24] Production.INFO: ==22678== Releasing lock... [2025-02-09 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:40:24] Production.INFO: 32 MB #Memory Used# [2025-02-09 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:41:04 [end_date_ymd] => 2025-02-09 11:41:04 [RateCDR] => 1 ) [2025-02-09 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:41:04' and `end` < '2025-02-09 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:41:20] Production.INFO: count ==532 [2025-02-09 11:41:20] Production.ERROR: pbx CDR StartTime 2025-02-09 08:41:04 - End Time 2025-02-09 11:41:04 [2025-02-09 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436818', 'tblTempUsageDetail_20' ) start [2025-02-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436818', 'tblTempUsageDetail_20' ) end [2025-02-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436818', 'tblTempVendorCDR_20' ) start [2025-02-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436818', 'tblTempVendorCDR_20' ) end [2025-02-09 11:41:20] Production.INFO: ProcessCDR(1,14436818,1,1,2) [2025-02-09 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436818', 'tblTempUsageDetail_20' ) start [2025-02-09 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436818', 'tblTempUsageDetail_20' ) end [2025-02-09 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:41:23] Production.INFO: ==22760== Releasing lock... [2025-02-09 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:41:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:42:05 [end_date_ymd] => 2025-02-09 11:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:42:05' and `end` < '2025-02-09 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-02-09 11:42:18] Production.INFO: count ==533 [2025-02-09 11:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:42:05 - End Time 2025-02-09 11:42:05 [2025-02-09 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436823', 'tblTempUsageDetail_20' ) start [2025-02-09 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436823', 'tblTempUsageDetail_20' ) end [2025-02-09 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436823', 'tblTempVendorCDR_20' ) start [2025-02-09 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436823', 'tblTempVendorCDR_20' ) end [2025-02-09 11:42:19] Production.INFO: ProcessCDR(1,14436823,1,1,2) [2025-02-09 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436823', 'tblTempUsageDetail_20' ) start [2025-02-09 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436823', 'tblTempUsageDetail_20' ) end [2025-02-09 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:42:23] Production.INFO: ==22881== Releasing lock... [2025-02-09 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:42:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:43:05 [end_date_ymd] => 2025-02-09 11:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:43:05' and `end` < '2025-02-09 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-02-09 11:43:17] Production.INFO: count ==539 [2025-02-09 11:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:43:05 - End Time 2025-02-09 11:43:05 [2025-02-09 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436828', 'tblTempUsageDetail_20' ) start [2025-02-09 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436828', 'tblTempUsageDetail_20' ) end [2025-02-09 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436828', 'tblTempVendorCDR_20' ) start [2025-02-09 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436828', 'tblTempVendorCDR_20' ) end [2025-02-09 11:43:18] Production.INFO: ProcessCDR(1,14436828,1,1,2) [2025-02-09 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436828', 'tblTempUsageDetail_20' ) start [2025-02-09 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436828', 'tblTempUsageDetail_20' ) end [2025-02-09 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:43:22] Production.INFO: ==22961== Releasing lock... [2025-02-09 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:43:22] Production.INFO: 32 MB #Memory Used# [2025-02-09 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:44:05 [end_date_ymd] => 2025-02-09 11:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:44:05' and `end` < '2025-02-09 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-02-09 11:44:18] Production.INFO: count ==546 [2025-02-09 11:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:44:05 - End Time 2025-02-09 11:44:05 [2025-02-09 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436833', 'tblTempUsageDetail_20' ) start [2025-02-09 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436833', 'tblTempUsageDetail_20' ) end [2025-02-09 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436833', 'tblTempVendorCDR_20' ) start [2025-02-09 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436833', 'tblTempVendorCDR_20' ) end [2025-02-09 11:44:18] Production.INFO: ProcessCDR(1,14436833,1,1,2) [2025-02-09 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436833', 'tblTempUsageDetail_20' ) start [2025-02-09 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436833', 'tblTempUsageDetail_20' ) end [2025-02-09 11:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:44:22] Production.INFO: ==23049== Releasing lock... [2025-02-09 11:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:45:05 [end_date_ymd] => 2025-02-09 11:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:45:05' and `end` < '2025-02-09 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-02-09 11:45:18] Production.INFO: count ==547 [2025-02-09 11:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:45:05 - End Time 2025-02-09 11:45:05 [2025-02-09 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436838', 'tblTempUsageDetail_20' ) start [2025-02-09 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436838', 'tblTempUsageDetail_20' ) end [2025-02-09 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436838', 'tblTempVendorCDR_20' ) start [2025-02-09 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436838', 'tblTempVendorCDR_20' ) end [2025-02-09 11:45:18] Production.INFO: ProcessCDR(1,14436838,1,1,2) [2025-02-09 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436838', 'tblTempUsageDetail_20' ) start [2025-02-09 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436838', 'tblTempUsageDetail_20' ) end [2025-02-09 11:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:45:21] Production.INFO: ==23131== Releasing lock... [2025-02-09 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:46:05 [end_date_ymd] => 2025-02-09 11:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:46:05' and `end` < '2025-02-09 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-02-09 11:46:18] Production.INFO: count ==550 [2025-02-09 11:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:46:05 - End Time 2025-02-09 11:46:05 [2025-02-09 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436843', 'tblTempUsageDetail_20' ) start [2025-02-09 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436843', 'tblTempUsageDetail_20' ) end [2025-02-09 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436843', 'tblTempVendorCDR_20' ) start [2025-02-09 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436843', 'tblTempVendorCDR_20' ) end [2025-02-09 11:46:18] Production.INFO: ProcessCDR(1,14436843,1,1,2) [2025-02-09 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436843', 'tblTempUsageDetail_20' ) start [2025-02-09 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436843', 'tblTempUsageDetail_20' ) end [2025-02-09 11:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:46:21] Production.INFO: ==23206== Releasing lock... [2025-02-09 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:47:05 [end_date_ymd] => 2025-02-09 11:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:47:05' and `end` < '2025-02-09 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-02-09 11:47:18] Production.INFO: count ==562 [2025-02-09 11:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:47:05 - End Time 2025-02-09 11:47:05 [2025-02-09 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436848', 'tblTempUsageDetail_20' ) start [2025-02-09 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436848', 'tblTempUsageDetail_20' ) end [2025-02-09 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436848', 'tblTempVendorCDR_20' ) start [2025-02-09 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436848', 'tblTempVendorCDR_20' ) end [2025-02-09 11:47:18] Production.INFO: ProcessCDR(1,14436848,1,1,2) [2025-02-09 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436848', 'tblTempUsageDetail_20' ) start [2025-02-09 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436848', 'tblTempUsageDetail_20' ) end [2025-02-09 11:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:47:22] Production.INFO: ==23283== Releasing lock... [2025-02-09 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:48:05 [end_date_ymd] => 2025-02-09 11:48:05 [RateCDR] => 1 ) [2025-02-09 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:48:05' and `end` < '2025-02-09 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:48:18] Production.INFO: count ==566 [2025-02-09 11:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:48:05 - End Time 2025-02-09 11:48:05 [2025-02-09 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436853', 'tblTempUsageDetail_20' ) start [2025-02-09 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436853', 'tblTempUsageDetail_20' ) end [2025-02-09 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436853', 'tblTempVendorCDR_20' ) start [2025-02-09 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436853', 'tblTempVendorCDR_20' ) end [2025-02-09 11:48:18] Production.INFO: ProcessCDR(1,14436853,1,1,2) [2025-02-09 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436853', 'tblTempUsageDetail_20' ) start [2025-02-09 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436853', 'tblTempUsageDetail_20' ) end [2025-02-09 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:48:23] Production.INFO: ==23360== Releasing lock... [2025-02-09 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:48:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:49:04 [end_date_ymd] => 2025-02-09 11:49:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:49:04' and `end` < '2025-02-09 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-02-09 11:49:17] Production.INFO: count ==568 [2025-02-09 11:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:49:04 - End Time 2025-02-09 11:49:04 [2025-02-09 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436858', 'tblTempUsageDetail_20' ) start [2025-02-09 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436858', 'tblTempUsageDetail_20' ) end [2025-02-09 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436858', 'tblTempVendorCDR_20' ) start [2025-02-09 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436858', 'tblTempVendorCDR_20' ) end [2025-02-09 11:49:18] Production.INFO: ProcessCDR(1,14436858,1,1,2) [2025-02-09 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436858', 'tblTempUsageDetail_20' ) start [2025-02-09 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436858', 'tblTempUsageDetail_20' ) end [2025-02-09 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:49:22] Production.INFO: ==23442== Releasing lock... [2025-02-09 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-09 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:50:06 [end_date_ymd] => 2025-02-09 11:50:06 [RateCDR] => 1 ) [2025-02-09 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:50:06' and `end` < '2025-02-09 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:50:19] Production.INFO: count ==574 [2025-02-09 11:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:50:06 - End Time 2025-02-09 11:50:06 [2025-02-09 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436864', 'tblTempUsageDetail_20' ) start [2025-02-09 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436864', 'tblTempUsageDetail_20' ) end [2025-02-09 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436864', 'tblTempVendorCDR_20' ) start [2025-02-09 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436864', 'tblTempVendorCDR_20' ) end [2025-02-09 11:50:19] Production.INFO: ProcessCDR(1,14436864,1,1,2) [2025-02-09 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436864', 'tblTempUsageDetail_20' ) start [2025-02-09 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436864', 'tblTempUsageDetail_20' ) end [2025-02-09 11:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:50:22] Production.INFO: ==23522== Releasing lock... [2025-02-09 11:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:51:06 [end_date_ymd] => 2025-02-09 11:51:06 [RateCDR] => 1 ) [2025-02-09 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:51:06' and `end` < '2025-02-09 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:51:19] Production.INFO: count ==595 [2025-02-09 11:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:51:06 - End Time 2025-02-09 11:51:06 [2025-02-09 11:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436869', 'tblTempUsageDetail_20' ) start [2025-02-09 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436869', 'tblTempUsageDetail_20' ) end [2025-02-09 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436869', 'tblTempVendorCDR_20' ) start [2025-02-09 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436869', 'tblTempVendorCDR_20' ) end [2025-02-09 11:51:19] Production.INFO: ProcessCDR(1,14436869,1,1,2) [2025-02-09 11:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436869', 'tblTempUsageDetail_20' ) start [2025-02-09 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436869', 'tblTempUsageDetail_20' ) end [2025-02-09 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:51:23] Production.INFO: ==23607== Releasing lock... [2025-02-09 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:52:05 [end_date_ymd] => 2025-02-09 11:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:52:05' and `end` < '2025-02-09 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-02-09 11:52:18] Production.INFO: count ==595 [2025-02-09 11:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:52:05 - End Time 2025-02-09 11:52:05 [2025-02-09 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436874', 'tblTempUsageDetail_20' ) start [2025-02-09 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436874', 'tblTempUsageDetail_20' ) end [2025-02-09 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436874', 'tblTempVendorCDR_20' ) start [2025-02-09 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436874', 'tblTempVendorCDR_20' ) end [2025-02-09 11:52:19] Production.INFO: ProcessCDR(1,14436874,1,1,2) [2025-02-09 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436874', 'tblTempUsageDetail_20' ) start [2025-02-09 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436874', 'tblTempUsageDetail_20' ) end [2025-02-09 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:52:22] Production.INFO: ==23680== Releasing lock... [2025-02-09 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:53:05 [end_date_ymd] => 2025-02-09 11:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:53:05' and `end` < '2025-02-09 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-02-09 11:53:19] Production.INFO: count ==595 [2025-02-09 11:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:53:05 - End Time 2025-02-09 11:53:05 [2025-02-09 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436879', 'tblTempUsageDetail_20' ) start [2025-02-09 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436879', 'tblTempUsageDetail_20' ) end [2025-02-09 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436879', 'tblTempVendorCDR_20' ) start [2025-02-09 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436879', 'tblTempVendorCDR_20' ) end [2025-02-09 11:53:19] Production.INFO: ProcessCDR(1,14436879,1,1,2) [2025-02-09 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436879', 'tblTempUsageDetail_20' ) start [2025-02-09 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436879', 'tblTempUsageDetail_20' ) end [2025-02-09 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:53:23] Production.INFO: ==23761== Releasing lock... [2025-02-09 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:53:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:54:04 [end_date_ymd] => 2025-02-09 11:54:04 [RateCDR] => 1 ) [2025-02-09 11:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 08:54:04' and `end` < '2025-02-09 11:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 11:54:17] Production.INFO: count ==596 [2025-02-09 11:54:17] Production.ERROR: pbx CDR StartTime 2025-02-09 08:54:04 - End Time 2025-02-09 11:54:04 [2025-02-09 11:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436884', 'tblTempUsageDetail_20' ) start [2025-02-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436884', 'tblTempUsageDetail_20' ) end [2025-02-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436884', 'tblTempVendorCDR_20' ) start [2025-02-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436884', 'tblTempVendorCDR_20' ) end [2025-02-09 11:54:17] Production.INFO: ProcessCDR(1,14436884,1,1,2) [2025-02-09 11:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436884', 'tblTempUsageDetail_20' ) start [2025-02-09 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436884', 'tblTempUsageDetail_20' ) end [2025-02-09 11:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:54:22] Production.INFO: ==23843== Releasing lock... [2025-02-09 11:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:55:06 [end_date_ymd] => 2025-02-09 11:55:06 [RateCDR] => 1 ) [2025-02-09 11: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-02-09 08:55:06' and `end` < '2025-02-09 11: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-02-09 11:55:19] Production.INFO: count ==597 [2025-02-09 11:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:55:06 - End Time 2025-02-09 11:55:06 [2025-02-09 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436889', 'tblTempUsageDetail_20' ) start [2025-02-09 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436889', 'tblTempUsageDetail_20' ) end [2025-02-09 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436889', 'tblTempVendorCDR_20' ) start [2025-02-09 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436889', 'tblTempVendorCDR_20' ) end [2025-02-09 11:55:19] Production.INFO: ProcessCDR(1,14436889,1,1,2) [2025-02-09 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436889', 'tblTempUsageDetail_20' ) start [2025-02-09 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436889', 'tblTempUsageDetail_20' ) end [2025-02-09 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:55:23] Production.INFO: ==23922== Releasing lock... [2025-02-09 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:56:05 [end_date_ymd] => 2025-02-09 11:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:56:05' and `end` < '2025-02-09 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-02-09 11:56:18] Production.INFO: count ==598 [2025-02-09 11:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:56:05 - End Time 2025-02-09 11:56:05 [2025-02-09 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436894', 'tblTempUsageDetail_20' ) start [2025-02-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436894', 'tblTempUsageDetail_20' ) end [2025-02-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436894', 'tblTempVendorCDR_20' ) start [2025-02-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436894', 'tblTempVendorCDR_20' ) end [2025-02-09 11:56:18] Production.INFO: ProcessCDR(1,14436894,1,1,2) [2025-02-09 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436894', 'tblTempUsageDetail_20' ) start [2025-02-09 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436894', 'tblTempUsageDetail_20' ) end [2025-02-09 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:56:23] Production.INFO: ==24003== Releasing lock... [2025-02-09 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:56:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-09 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:57:05 [end_date_ymd] => 2025-02-09 11:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:57:05' and `end` < '2025-02-09 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-02-09 11:57:18] Production.INFO: count ==604 [2025-02-09 11:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:57:05 - End Time 2025-02-09 11:57:05 [2025-02-09 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436899', 'tblTempUsageDetail_20' ) start [2025-02-09 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436899', 'tblTempUsageDetail_20' ) end [2025-02-09 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436899', 'tblTempVendorCDR_20' ) start [2025-02-09 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436899', 'tblTempVendorCDR_20' ) end [2025-02-09 11:57:18] Production.INFO: ProcessCDR(1,14436899,1,1,2) [2025-02-09 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436899', 'tblTempUsageDetail_20' ) start [2025-02-09 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436899', 'tblTempUsageDetail_20' ) end [2025-02-09 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:57:23] Production.INFO: ==24127== Releasing lock... [2025-02-09 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:57:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:58:05 [end_date_ymd] => 2025-02-09 11:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:58:05' and `end` < '2025-02-09 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-02-09 11:58:18] Production.INFO: count ==609 [2025-02-09 11:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 08:58:05 - End Time 2025-02-09 11:58:05 [2025-02-09 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436904', 'tblTempUsageDetail_20' ) start [2025-02-09 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436904', 'tblTempUsageDetail_20' ) end [2025-02-09 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436904', 'tblTempVendorCDR_20' ) start [2025-02-09 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436904', 'tblTempVendorCDR_20' ) end [2025-02-09 11:58:18] Production.INFO: ProcessCDR(1,14436904,1,1,2) [2025-02-09 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436904', 'tblTempUsageDetail_20' ) start [2025-02-09 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436904', 'tblTempUsageDetail_20' ) end [2025-02-09 11:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:58:21] Production.INFO: ==24206== Releasing lock... [2025-02-09 11:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 08:59:05 [end_date_ymd] => 2025-02-09 11:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 08:59:05' and `end` < '2025-02-09 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-02-09 11:59:18] Production.INFO: count ==613 [2025-02-09 11:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 08:59:05 - End Time 2025-02-09 11:59:05 [2025-02-09 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436909', 'tblTempUsageDetail_20' ) start [2025-02-09 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436909', 'tblTempUsageDetail_20' ) end [2025-02-09 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436909', 'tblTempVendorCDR_20' ) start [2025-02-09 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436909', 'tblTempVendorCDR_20' ) end [2025-02-09 11:59:19] Production.INFO: ProcessCDR(1,14436909,1,1,2) [2025-02-09 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436909', 'tblTempUsageDetail_20' ) start [2025-02-09 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436909', 'tblTempUsageDetail_20' ) end [2025-02-09 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 11:59:23] Production.INFO: ==24285== Releasing lock... [2025-02-09 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 11:59:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:00:06 [end_date_ymd] => 2025-02-09 12:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:00:06' and `end` < '2025-02-09 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-02-09 12:00:19] Production.INFO: count ==620 [2025-02-09 12:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:00:06 - End Time 2025-02-09 12:00:06 [2025-02-09 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436915', 'tblTempUsageDetail_20' ) start [2025-02-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436915', 'tblTempUsageDetail_20' ) end [2025-02-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436915', 'tblTempVendorCDR_20' ) start [2025-02-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436915', 'tblTempVendorCDR_20' ) end [2025-02-09 12:00:19] Production.INFO: ProcessCDR(1,14436915,1,1,2) [2025-02-09 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436915', 'tblTempUsageDetail_20' ) start [2025-02-09 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436915', 'tblTempUsageDetail_20' ) end [2025-02-09 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:00:23] Production.INFO: ==24366== Releasing lock... [2025-02-09 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:00:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:01:05 [end_date_ymd] => 2025-02-09 12:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:01:05' and `end` < '2025-02-09 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-02-09 12:01:19] Production.INFO: count ==654 [2025-02-09 12:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:01:05 - End Time 2025-02-09 12:01:05 [2025-02-09 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436920', 'tblTempUsageDetail_20' ) start [2025-02-09 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436920', 'tblTempUsageDetail_20' ) end [2025-02-09 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436920', 'tblTempVendorCDR_20' ) start [2025-02-09 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436920', 'tblTempVendorCDR_20' ) end [2025-02-09 12:01:19] Production.INFO: ProcessCDR(1,14436920,1,1,2) [2025-02-09 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436920', 'tblTempUsageDetail_20' ) start [2025-02-09 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436920', 'tblTempUsageDetail_20' ) end [2025-02-09 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:01:24] Production.INFO: ==24459== Releasing lock... [2025-02-09 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:02:05 [end_date_ymd] => 2025-02-09 12:02:05 [RateCDR] => 1 ) [2025-02-09 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:02:05' and `end` < '2025-02-09 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:02:18] Production.INFO: count ==665 [2025-02-09 12:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:02:05 - End Time 2025-02-09 12:02:05 [2025-02-09 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436925', 'tblTempUsageDetail_20' ) start [2025-02-09 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436925', 'tblTempUsageDetail_20' ) end [2025-02-09 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436925', 'tblTempVendorCDR_20' ) start [2025-02-09 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436925', 'tblTempVendorCDR_20' ) end [2025-02-09 12:02:18] Production.INFO: ProcessCDR(1,14436925,1,1,2) [2025-02-09 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436925', 'tblTempUsageDetail_20' ) start [2025-02-09 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436925', 'tblTempUsageDetail_20' ) end [2025-02-09 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:02:22] Production.INFO: ==24537== Releasing lock... [2025-02-09 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:03:06 [end_date_ymd] => 2025-02-09 12:03:06 [RateCDR] => 1 ) [2025-02-09 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:03:06' and `end` < '2025-02-09 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:03:19] Production.INFO: count ==666 [2025-02-09 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-09 09:03:06 - End Time 2025-02-09 12:03:06 [2025-02-09 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436930', 'tblTempUsageDetail_20' ) start [2025-02-09 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436930', 'tblTempUsageDetail_20' ) end [2025-02-09 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436930', 'tblTempVendorCDR_20' ) start [2025-02-09 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436930', 'tblTempVendorCDR_20' ) end [2025-02-09 12:03:20] Production.INFO: ProcessCDR(1,14436930,1,1,2) [2025-02-09 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436930', 'tblTempUsageDetail_20' ) start [2025-02-09 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436930', 'tblTempUsageDetail_20' ) end [2025-02-09 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:03:24] Production.INFO: ==24611== Releasing lock... [2025-02-09 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:03:24] Production.INFO: 33 MB #Memory Used# [2025-02-09 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:04:06 [end_date_ymd] => 2025-02-09 12:04:06 [RateCDR] => 1 ) [2025-02-09 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:04:06' and `end` < '2025-02-09 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:04:19] Production.INFO: count ==667 [2025-02-09 12:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:04:06 - End Time 2025-02-09 12:04:06 [2025-02-09 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436935', 'tblTempUsageDetail_20' ) start [2025-02-09 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436935', 'tblTempUsageDetail_20' ) end [2025-02-09 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436935', 'tblTempVendorCDR_20' ) start [2025-02-09 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436935', 'tblTempVendorCDR_20' ) end [2025-02-09 12:04:19] Production.INFO: ProcessCDR(1,14436935,1,1,2) [2025-02-09 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436935', 'tblTempUsageDetail_20' ) start [2025-02-09 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436935', 'tblTempUsageDetail_20' ) end [2025-02-09 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:04:24] Production.INFO: ==24687== Releasing lock... [2025-02-09 12:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:04:24] Production.INFO: 33 MB #Memory Used# [2025-02-09 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:05:05 [end_date_ymd] => 2025-02-09 12:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:05:05' and `end` < '2025-02-09 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-02-09 12:05:18] Production.INFO: count ==672 [2025-02-09 12:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:05:05 - End Time 2025-02-09 12:05:05 [2025-02-09 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436940', 'tblTempUsageDetail_20' ) start [2025-02-09 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436940', 'tblTempUsageDetail_20' ) end [2025-02-09 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436940', 'tblTempVendorCDR_20' ) start [2025-02-09 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436940', 'tblTempVendorCDR_20' ) end [2025-02-09 12:05:18] Production.INFO: ProcessCDR(1,14436940,1,1,2) [2025-02-09 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436940', 'tblTempUsageDetail_20' ) start [2025-02-09 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436940', 'tblTempUsageDetail_20' ) end [2025-02-09 12:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:05:23] Production.INFO: ==24762== Releasing lock... [2025-02-09 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:05:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:06:05 [end_date_ymd] => 2025-02-09 12:06:05 [RateCDR] => 1 ) [2025-02-09 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:06:05' and `end` < '2025-02-09 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:06:19] Production.INFO: count ==673 [2025-02-09 12:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:06:05 - End Time 2025-02-09 12:06:05 [2025-02-09 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436945', 'tblTempUsageDetail_20' ) start [2025-02-09 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436945', 'tblTempUsageDetail_20' ) end [2025-02-09 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436945', 'tblTempVendorCDR_20' ) start [2025-02-09 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436945', 'tblTempVendorCDR_20' ) end [2025-02-09 12:06:19] Production.INFO: ProcessCDR(1,14436945,1,1,2) [2025-02-09 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436945', 'tblTempUsageDetail_20' ) start [2025-02-09 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436945', 'tblTempUsageDetail_20' ) end [2025-02-09 12:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:06:23] Production.INFO: ==24840== Releasing lock... [2025-02-09 12:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:06:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:07:05 [end_date_ymd] => 2025-02-09 12:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:07:05' and `end` < '2025-02-09 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-02-09 12:07:18] Production.INFO: count ==671 [2025-02-09 12:07:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:07:05 - End Time 2025-02-09 12:07:05 [2025-02-09 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436950', 'tblTempUsageDetail_20' ) start [2025-02-09 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436950', 'tblTempUsageDetail_20' ) end [2025-02-09 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436950', 'tblTempVendorCDR_20' ) start [2025-02-09 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436950', 'tblTempVendorCDR_20' ) end [2025-02-09 12:07:18] Production.INFO: ProcessCDR(1,14436950,1,1,2) [2025-02-09 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436950', 'tblTempUsageDetail_20' ) start [2025-02-09 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436950', 'tblTempUsageDetail_20' ) end [2025-02-09 12:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:07:22] Production.INFO: ==24921== Releasing lock... [2025-02-09 12:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:08:06 [end_date_ymd] => 2025-02-09 12:08:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:08:06' and `end` < '2025-02-09 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-02-09 12:08:19] Production.INFO: count ==676 [2025-02-09 12:08:20] Production.ERROR: pbx CDR StartTime 2025-02-09 09:08:06 - End Time 2025-02-09 12:08:06 [2025-02-09 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436955', 'tblTempUsageDetail_20' ) start [2025-02-09 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436955', 'tblTempUsageDetail_20' ) end [2025-02-09 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436955', 'tblTempVendorCDR_20' ) start [2025-02-09 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436955', 'tblTempVendorCDR_20' ) end [2025-02-09 12:08:20] Production.INFO: ProcessCDR(1,14436955,1,1,2) [2025-02-09 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436955', 'tblTempUsageDetail_20' ) start [2025-02-09 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436955', 'tblTempUsageDetail_20' ) end [2025-02-09 12:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:08:23] Production.INFO: ==25000== Releasing lock... [2025-02-09 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:08:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:09:05 [end_date_ymd] => 2025-02-09 12:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:09:05' and `end` < '2025-02-09 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-02-09 12:09:18] Production.INFO: count ==677 [2025-02-09 12:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:09:05 - End Time 2025-02-09 12:09:05 [2025-02-09 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436960', 'tblTempUsageDetail_20' ) start [2025-02-09 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436960', 'tblTempUsageDetail_20' ) end [2025-02-09 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436960', 'tblTempVendorCDR_20' ) start [2025-02-09 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436960', 'tblTempVendorCDR_20' ) end [2025-02-09 12:09:18] Production.INFO: ProcessCDR(1,14436960,1,1,2) [2025-02-09 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436960', 'tblTempUsageDetail_20' ) start [2025-02-09 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436960', 'tblTempUsageDetail_20' ) end [2025-02-09 12:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:09:23] Production.INFO: ==25079== Releasing lock... [2025-02-09 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:09:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:10:07 [end_date_ymd] => 2025-02-09 12:10:07 [RateCDR] => 1 ) [2025-02-09 12: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-02-09 09:10:07' and `end` < '2025-02-09 12: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-02-09 12:10:20] Production.INFO: count ==681 [2025-02-09 12:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 09:10:07 - End Time 2025-02-09 12:10:07 [2025-02-09 12:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436966', 'tblTempUsageDetail_20' ) start [2025-02-09 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436966', 'tblTempUsageDetail_20' ) end [2025-02-09 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436966', 'tblTempVendorCDR_20' ) start [2025-02-09 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436966', 'tblTempVendorCDR_20' ) end [2025-02-09 12:10:20] Production.INFO: ProcessCDR(1,14436966,1,1,2) [2025-02-09 12:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436966', 'tblTempUsageDetail_20' ) start [2025-02-09 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436966', 'tblTempUsageDetail_20' ) end [2025-02-09 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:10:23] Production.INFO: ==25155== Releasing lock... [2025-02-09 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:10:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:11:05 [end_date_ymd] => 2025-02-09 12:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:11:05' and `end` < '2025-02-09 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-02-09 12:11:18] Production.INFO: count ==707 [2025-02-09 12:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:11:05 - End Time 2025-02-09 12:11:05 [2025-02-09 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436971', 'tblTempUsageDetail_20' ) start [2025-02-09 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436971', 'tblTempUsageDetail_20' ) end [2025-02-09 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436971', 'tblTempVendorCDR_20' ) start [2025-02-09 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436971', 'tblTempVendorCDR_20' ) end [2025-02-09 12:11:19] Production.INFO: ProcessCDR(1,14436971,1,1,2) [2025-02-09 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436971', 'tblTempUsageDetail_20' ) start [2025-02-09 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436971', 'tblTempUsageDetail_20' ) end [2025-02-09 12:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:11:24] Production.INFO: ==25232== Releasing lock... [2025-02-09 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:11:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:12:05 [end_date_ymd] => 2025-02-09 12:12:05 [RateCDR] => 1 ) [2025-02-09 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:12:05' and `end` < '2025-02-09 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:12:19] Production.INFO: count ==709 [2025-02-09 12:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:12:05 - End Time 2025-02-09 12:12:05 [2025-02-09 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436976', 'tblTempUsageDetail_20' ) start [2025-02-09 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436976', 'tblTempUsageDetail_20' ) end [2025-02-09 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436976', 'tblTempVendorCDR_20' ) start [2025-02-09 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436976', 'tblTempVendorCDR_20' ) end [2025-02-09 12:12:19] Production.INFO: ProcessCDR(1,14436976,1,1,2) [2025-02-09 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436976', 'tblTempUsageDetail_20' ) start [2025-02-09 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436976', 'tblTempUsageDetail_20' ) end [2025-02-09 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:12:24] Production.INFO: ==25303== Releasing lock... [2025-02-09 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:12:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:13:05 [end_date_ymd] => 2025-02-09 12:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:13:05' and `end` < '2025-02-09 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-02-09 12:13:18] Production.INFO: count ==710 [2025-02-09 12:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:13:05 - End Time 2025-02-09 12:13:05 [2025-02-09 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436981', 'tblTempUsageDetail_20' ) start [2025-02-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436981', 'tblTempUsageDetail_20' ) end [2025-02-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436981', 'tblTempVendorCDR_20' ) start [2025-02-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436981', 'tblTempVendorCDR_20' ) end [2025-02-09 12:13:18] Production.INFO: ProcessCDR(1,14436981,1,1,2) [2025-02-09 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436981', 'tblTempUsageDetail_20' ) start [2025-02-09 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436981', 'tblTempUsageDetail_20' ) end [2025-02-09 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:13:21] Production.INFO: ==25415== Releasing lock... [2025-02-09 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:14:05 [end_date_ymd] => 2025-02-09 12:14:05 [RateCDR] => 1 ) [2025-02-09 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:14:05' and `end` < '2025-02-09 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:14:18] Production.INFO: count ==711 [2025-02-09 12:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:14:05 - End Time 2025-02-09 12:14:05 [2025-02-09 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436986', 'tblTempUsageDetail_20' ) start [2025-02-09 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436986', 'tblTempUsageDetail_20' ) end [2025-02-09 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436986', 'tblTempVendorCDR_20' ) start [2025-02-09 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436986', 'tblTempVendorCDR_20' ) end [2025-02-09 12:14:18] Production.INFO: ProcessCDR(1,14436986,1,1,2) [2025-02-09 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436986', 'tblTempUsageDetail_20' ) start [2025-02-09 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436986', 'tblTempUsageDetail_20' ) end [2025-02-09 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:14:23] Production.INFO: ==25490== Releasing lock... [2025-02-09 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:14:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:15:04 [end_date_ymd] => 2025-02-09 12:15:04 [RateCDR] => 1 ) [2025-02-09 12: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-02-09 09:15:04' and `end` < '2025-02-09 12: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-02-09 12:15:17] Production.INFO: count ==712 [2025-02-09 12:15:17] Production.ERROR: pbx CDR StartTime 2025-02-09 09:15:04 - End Time 2025-02-09 12:15:04 [2025-02-09 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436991', 'tblTempUsageDetail_20' ) start [2025-02-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436991', 'tblTempUsageDetail_20' ) end [2025-02-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436991', 'tblTempVendorCDR_20' ) start [2025-02-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436991', 'tblTempVendorCDR_20' ) end [2025-02-09 12:15:17] Production.INFO: ProcessCDR(1,14436991,1,1,2) [2025-02-09 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436991', 'tblTempUsageDetail_20' ) start [2025-02-09 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436991', 'tblTempUsageDetail_20' ) end [2025-02-09 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:15:22] Production.INFO: ==25565== Releasing lock... [2025-02-09 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:15:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:16:05 [end_date_ymd] => 2025-02-09 12:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:16:05' and `end` < '2025-02-09 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-02-09 12:16:18] Production.INFO: count ==717 [2025-02-09 12:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:16:05 - End Time 2025-02-09 12:16:05 [2025-02-09 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436996', 'tblTempUsageDetail_20' ) start [2025-02-09 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14436996', 'tblTempUsageDetail_20' ) end [2025-02-09 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436996', 'tblTempVendorCDR_20' ) start [2025-02-09 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14436996', 'tblTempVendorCDR_20' ) end [2025-02-09 12:16:18] Production.INFO: ProcessCDR(1,14436996,1,1,2) [2025-02-09 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14436996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14436996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14436996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14436996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436996', 'tblTempUsageDetail_20' ) start [2025-02-09 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14436996', 'tblTempUsageDetail_20' ) end [2025-02-09 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:16:22] Production.INFO: ==25636== Releasing lock... [2025-02-09 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:17:06 [end_date_ymd] => 2025-02-09 12:17:06 [RateCDR] => 1 ) [2025-02-09 12: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-02-09 09:17:06' and `end` < '2025-02-09 12: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-02-09 12:17:20] Production.INFO: count ==721 [2025-02-09 12:17:20] Production.ERROR: pbx CDR StartTime 2025-02-09 09:17:06 - End Time 2025-02-09 12:17:06 [2025-02-09 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437001', 'tblTempUsageDetail_20' ) start [2025-02-09 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437001', 'tblTempUsageDetail_20' ) end [2025-02-09 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437001', 'tblTempVendorCDR_20' ) start [2025-02-09 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437001', 'tblTempVendorCDR_20' ) end [2025-02-09 12:17:20] Production.INFO: ProcessCDR(1,14437001,1,1,2) [2025-02-09 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437001', 'tblTempUsageDetail_20' ) start [2025-02-09 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437001', 'tblTempUsageDetail_20' ) end [2025-02-09 12:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:17:25] Production.INFO: ==25718== Releasing lock... [2025-02-09 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:17:25] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:18:05 [end_date_ymd] => 2025-02-09 12:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:18:05' and `end` < '2025-02-09 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-02-09 12:18:18] Production.INFO: count ==744 [2025-02-09 12:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:18:05 - End Time 2025-02-09 12:18:05 [2025-02-09 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437006', 'tblTempUsageDetail_20' ) start [2025-02-09 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437006', 'tblTempUsageDetail_20' ) end [2025-02-09 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437006', 'tblTempVendorCDR_20' ) start [2025-02-09 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437006', 'tblTempVendorCDR_20' ) end [2025-02-09 12:18:18] Production.INFO: ProcessCDR(1,14437006,1,1,2) [2025-02-09 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437006', 'tblTempUsageDetail_20' ) start [2025-02-09 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437006', 'tblTempUsageDetail_20' ) end [2025-02-09 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:18:22] Production.INFO: ==25804== Releasing lock... [2025-02-09 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:19:05 [end_date_ymd] => 2025-02-09 12:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:19:05' and `end` < '2025-02-09 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-02-09 12:19:18] Production.INFO: count ==743 [2025-02-09 12:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:19:05 - End Time 2025-02-09 12:19:05 [2025-02-09 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437011', 'tblTempUsageDetail_20' ) start [2025-02-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437011', 'tblTempUsageDetail_20' ) end [2025-02-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437011', 'tblTempVendorCDR_20' ) start [2025-02-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437011', 'tblTempVendorCDR_20' ) end [2025-02-09 12:19:18] Production.INFO: ProcessCDR(1,14437011,1,1,2) [2025-02-09 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437011', 'tblTempUsageDetail_20' ) start [2025-02-09 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437011', 'tblTempUsageDetail_20' ) end [2025-02-09 12:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:19:21] Production.INFO: ==25879== Releasing lock... [2025-02-09 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:19:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:20:06 [end_date_ymd] => 2025-02-09 12:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:20:06' and `end` < '2025-02-09 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-02-09 12:20:19] Production.INFO: count ==751 [2025-02-09 12:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:20:06 - End Time 2025-02-09 12:20:06 [2025-02-09 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437017', 'tblTempUsageDetail_20' ) start [2025-02-09 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437017', 'tblTempUsageDetail_20' ) end [2025-02-09 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437017', 'tblTempVendorCDR_20' ) start [2025-02-09 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437017', 'tblTempVendorCDR_20' ) end [2025-02-09 12:20:19] Production.INFO: ProcessCDR(1,14437017,1,1,2) [2025-02-09 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437017', 'tblTempUsageDetail_20' ) start [2025-02-09 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437017', 'tblTempUsageDetail_20' ) end [2025-02-09 12:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:20:22] Production.INFO: ==25961== Releasing lock... [2025-02-09 12:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:20:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:21:05 [end_date_ymd] => 2025-02-09 12:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:21:05' and `end` < '2025-02-09 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-02-09 12:21:19] Production.INFO: count ==785 [2025-02-09 12:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:21:05 - End Time 2025-02-09 12:21:05 [2025-02-09 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437022', 'tblTempUsageDetail_20' ) start [2025-02-09 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437022', 'tblTempUsageDetail_20' ) end [2025-02-09 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437022', 'tblTempVendorCDR_20' ) start [2025-02-09 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437022', 'tblTempVendorCDR_20' ) end [2025-02-09 12:21:19] Production.INFO: ProcessCDR(1,14437022,1,1,2) [2025-02-09 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437022', 'tblTempUsageDetail_20' ) start [2025-02-09 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437022', 'tblTempUsageDetail_20' ) end [2025-02-09 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:21:22] Production.INFO: ==26037== Releasing lock... [2025-02-09 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:21:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:22:04 [end_date_ymd] => 2025-02-09 12:22:04 [RateCDR] => 1 ) [2025-02-09 12: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-02-09 09:22:04' and `end` < '2025-02-09 12: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-02-09 12:22:17] Production.INFO: count ==792 [2025-02-09 12:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:22:04 - End Time 2025-02-09 12:22:04 [2025-02-09 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437027', 'tblTempUsageDetail_20' ) start [2025-02-09 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437027', 'tblTempUsageDetail_20' ) end [2025-02-09 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437027', 'tblTempVendorCDR_20' ) start [2025-02-09 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437027', 'tblTempVendorCDR_20' ) end [2025-02-09 12:22:18] Production.INFO: ProcessCDR(1,14437027,1,1,2) [2025-02-09 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437027', 'tblTempUsageDetail_20' ) start [2025-02-09 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437027', 'tblTempUsageDetail_20' ) end [2025-02-09 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:22:22] Production.INFO: ==26110== Releasing lock... [2025-02-09 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:22:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:23:05 [end_date_ymd] => 2025-02-09 12:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:23:05' and `end` < '2025-02-09 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-02-09 12:23:18] Production.INFO: count ==794 [2025-02-09 12:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:23:05 - End Time 2025-02-09 12:23:05 [2025-02-09 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437032', 'tblTempUsageDetail_20' ) start [2025-02-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437032', 'tblTempUsageDetail_20' ) end [2025-02-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437032', 'tblTempVendorCDR_20' ) start [2025-02-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437032', 'tblTempVendorCDR_20' ) end [2025-02-09 12:23:18] Production.INFO: ProcessCDR(1,14437032,1,1,2) [2025-02-09 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437032', 'tblTempUsageDetail_20' ) start [2025-02-09 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437032', 'tblTempUsageDetail_20' ) end [2025-02-09 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:23:23] Production.INFO: ==26183== Releasing lock... [2025-02-09 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:23:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:24:05 [end_date_ymd] => 2025-02-09 12:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:24:05' and `end` < '2025-02-09 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-02-09 12:24:18] Production.INFO: count ==798 [2025-02-09 12:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:24:05 - End Time 2025-02-09 12:24:05 [2025-02-09 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437037', 'tblTempUsageDetail_20' ) start [2025-02-09 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437037', 'tblTempUsageDetail_20' ) end [2025-02-09 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437037', 'tblTempVendorCDR_20' ) start [2025-02-09 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437037', 'tblTempVendorCDR_20' ) end [2025-02-09 12:24:18] Production.INFO: ProcessCDR(1,14437037,1,1,2) [2025-02-09 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437037', 'tblTempUsageDetail_20' ) start [2025-02-09 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437037', 'tblTempUsageDetail_20' ) end [2025-02-09 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:24:23] Production.INFO: ==26256== Releasing lock... [2025-02-09 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:24:23] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:25:05 [end_date_ymd] => 2025-02-09 12:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:25:05' and `end` < '2025-02-09 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-02-09 12:25:18] Production.INFO: count ==803 [2025-02-09 12:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:25:05 - End Time 2025-02-09 12:25:05 [2025-02-09 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437042', 'tblTempUsageDetail_20' ) start [2025-02-09 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437042', 'tblTempUsageDetail_20' ) end [2025-02-09 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437042', 'tblTempVendorCDR_20' ) start [2025-02-09 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437042', 'tblTempVendorCDR_20' ) end [2025-02-09 12:25:18] Production.INFO: ProcessCDR(1,14437042,1,1,2) [2025-02-09 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437042', 'tblTempUsageDetail_20' ) start [2025-02-09 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437042', 'tblTempUsageDetail_20' ) end [2025-02-09 12:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:25:23] Production.INFO: ==26329== Releasing lock... [2025-02-09 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:25:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:26:05 [end_date_ymd] => 2025-02-09 12:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:26:05' and `end` < '2025-02-09 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-02-09 12:26:19] Production.INFO: count ==804 [2025-02-09 12:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:26:05 - End Time 2025-02-09 12:26:05 [2025-02-09 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437047', 'tblTempUsageDetail_20' ) start [2025-02-09 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437047', 'tblTempUsageDetail_20' ) end [2025-02-09 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437047', 'tblTempVendorCDR_20' ) start [2025-02-09 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437047', 'tblTempVendorCDR_20' ) end [2025-02-09 12:26:19] Production.INFO: ProcessCDR(1,14437047,1,1,2) [2025-02-09 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437047', 'tblTempUsageDetail_20' ) start [2025-02-09 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437047', 'tblTempUsageDetail_20' ) end [2025-02-09 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:26:24] Production.INFO: ==26406== Releasing lock... [2025-02-09 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:26:24] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:27:05 [end_date_ymd] => 2025-02-09 12:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:27:05' and `end` < '2025-02-09 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-02-09 12:27:18] Production.INFO: count ==820 [2025-02-09 12:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:27:05 - End Time 2025-02-09 12:27:05 [2025-02-09 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437052', 'tblTempUsageDetail_20' ) start [2025-02-09 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437052', 'tblTempUsageDetail_20' ) end [2025-02-09 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437052', 'tblTempVendorCDR_20' ) start [2025-02-09 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437052', 'tblTempVendorCDR_20' ) end [2025-02-09 12:27:18] Production.INFO: ProcessCDR(1,14437052,1,1,2) [2025-02-09 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437052', 'tblTempUsageDetail_20' ) start [2025-02-09 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437052', 'tblTempUsageDetail_20' ) end [2025-02-09 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:27:22] Production.INFO: ==26485== Releasing lock... [2025-02-09 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:27:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:28:06 [end_date_ymd] => 2025-02-09 12:28:06 [RateCDR] => 1 ) [2025-02-09 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:28:06' and `end` < '2025-02-09 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:28:19] Production.INFO: count ==821 [2025-02-09 12:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:28:06 - End Time 2025-02-09 12:28:06 [2025-02-09 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437057', 'tblTempUsageDetail_20' ) start [2025-02-09 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437057', 'tblTempUsageDetail_20' ) end [2025-02-09 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437057', 'tblTempVendorCDR_20' ) start [2025-02-09 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437057', 'tblTempVendorCDR_20' ) end [2025-02-09 12:28:19] Production.INFO: ProcessCDR(1,14437057,1,1,2) [2025-02-09 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437057', 'tblTempUsageDetail_20' ) start [2025-02-09 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437057', 'tblTempUsageDetail_20' ) end [2025-02-09 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:28:23] Production.INFO: ==26595== Releasing lock... [2025-02-09 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:28:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:29:05 [end_date_ymd] => 2025-02-09 12:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:29:05' and `end` < '2025-02-09 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-02-09 12:29:18] Production.INFO: count ==826 [2025-02-09 12:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:29:05 - End Time 2025-02-09 12:29:05 [2025-02-09 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437062', 'tblTempUsageDetail_20' ) start [2025-02-09 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437062', 'tblTempUsageDetail_20' ) end [2025-02-09 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437062', 'tblTempVendorCDR_20' ) start [2025-02-09 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437062', 'tblTempVendorCDR_20' ) end [2025-02-09 12:29:18] Production.INFO: ProcessCDR(1,14437062,1,1,2) [2025-02-09 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437062', 'tblTempUsageDetail_20' ) start [2025-02-09 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437062', 'tblTempUsageDetail_20' ) end [2025-02-09 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:29:23] Production.INFO: ==26667== Releasing lock... [2025-02-09 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:29:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:30:06 [end_date_ymd] => 2025-02-09 12:30:06 [RateCDR] => 1 ) [2025-02-09 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:30:06' and `end` < '2025-02-09 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:30:19] Production.INFO: count ==869 [2025-02-09 12:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:30:06 - End Time 2025-02-09 12:30:06 [2025-02-09 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437068', 'tblTempUsageDetail_20' ) start [2025-02-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437068', 'tblTempUsageDetail_20' ) end [2025-02-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437068', 'tblTempVendorCDR_20' ) start [2025-02-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437068', 'tblTempVendorCDR_20' ) end [2025-02-09 12:30:19] Production.INFO: ProcessCDR(1,14437068,1,1,2) [2025-02-09 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437068', 'tblTempUsageDetail_20' ) start [2025-02-09 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437068', 'tblTempUsageDetail_20' ) end [2025-02-09 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:30:23] Production.INFO: ==26739== Releasing lock... [2025-02-09 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:31:05 [end_date_ymd] => 2025-02-09 12:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:31:05' and `end` < '2025-02-09 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-02-09 12:31:18] Production.INFO: count ==924 [2025-02-09 12:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:31:05 - End Time 2025-02-09 12:31:05 [2025-02-09 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437073', 'tblTempUsageDetail_20' ) start [2025-02-09 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437073', 'tblTempUsageDetail_20' ) end [2025-02-09 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437073', 'tblTempVendorCDR_20' ) start [2025-02-09 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437073', 'tblTempVendorCDR_20' ) end [2025-02-09 12:31:18] Production.INFO: ProcessCDR(1,14437073,1,1,2) [2025-02-09 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437073', 'tblTempUsageDetail_20' ) start [2025-02-09 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437073', 'tblTempUsageDetail_20' ) end [2025-02-09 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:31:23] Production.INFO: ==26854== Releasing lock... [2025-02-09 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:31:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:32:05 [end_date_ymd] => 2025-02-09 12:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:32:05' and `end` < '2025-02-09 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-02-09 12:32:18] Production.INFO: count ==932 [2025-02-09 12:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:32:05 - End Time 2025-02-09 12:32:05 [2025-02-09 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437078', 'tblTempUsageDetail_20' ) start [2025-02-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437078', 'tblTempUsageDetail_20' ) end [2025-02-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437078', 'tblTempVendorCDR_20' ) start [2025-02-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437078', 'tblTempVendorCDR_20' ) end [2025-02-09 12:32:18] Production.INFO: ProcessCDR(1,14437078,1,1,2) [2025-02-09 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437078', 'tblTempUsageDetail_20' ) start [2025-02-09 12:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437078', 'tblTempUsageDetail_20' ) end [2025-02-09 12:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:32:21] Production.INFO: ==26926== Releasing lock... [2025-02-09 12:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:32:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:33:05 [end_date_ymd] => 2025-02-09 12:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:33:05' and `end` < '2025-02-09 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-02-09 12:33:18] Production.INFO: count ==933 [2025-02-09 12:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:33:05 - End Time 2025-02-09 12:33:05 [2025-02-09 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437083', 'tblTempUsageDetail_20' ) start [2025-02-09 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437083', 'tblTempUsageDetail_20' ) end [2025-02-09 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437083', 'tblTempVendorCDR_20' ) start [2025-02-09 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437083', 'tblTempVendorCDR_20' ) end [2025-02-09 12:33:19] Production.INFO: ProcessCDR(1,14437083,1,1,2) [2025-02-09 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437083', 'tblTempUsageDetail_20' ) start [2025-02-09 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437083', 'tblTempUsageDetail_20' ) end [2025-02-09 12:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:33:23] Production.INFO: ==26997== Releasing lock... [2025-02-09 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:33:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:34:05 [end_date_ymd] => 2025-02-09 12:34:05 [RateCDR] => 1 ) [2025-02-09 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:34:05' and `end` < '2025-02-09 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:34:18] Production.INFO: count ==933 [2025-02-09 12:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:34:05 - End Time 2025-02-09 12:34:05 [2025-02-09 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437088', 'tblTempUsageDetail_20' ) start [2025-02-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437088', 'tblTempUsageDetail_20' ) end [2025-02-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437088', 'tblTempVendorCDR_20' ) start [2025-02-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437088', 'tblTempVendorCDR_20' ) end [2025-02-09 12:34:18] Production.INFO: ProcessCDR(1,14437088,1,1,2) [2025-02-09 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437088', 'tblTempUsageDetail_20' ) start [2025-02-09 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437088', 'tblTempUsageDetail_20' ) end [2025-02-09 12:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:34:21] Production.INFO: ==27072== Releasing lock... [2025-02-09 12:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:34:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:35:05 [end_date_ymd] => 2025-02-09 12:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:35:05' and `end` < '2025-02-09 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-02-09 12:35:19] Production.INFO: count ==929 [2025-02-09 12:35:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:35:05 - End Time 2025-02-09 12:35:05 [2025-02-09 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437093', 'tblTempUsageDetail_20' ) start [2025-02-09 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437093', 'tblTempUsageDetail_20' ) end [2025-02-09 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437093', 'tblTempVendorCDR_20' ) start [2025-02-09 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437093', 'tblTempVendorCDR_20' ) end [2025-02-09 12:35:19] Production.INFO: ProcessCDR(1,14437093,1,1,2) [2025-02-09 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437093', 'tblTempUsageDetail_20' ) start [2025-02-09 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437093', 'tblTempUsageDetail_20' ) end [2025-02-09 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:35:22] Production.INFO: ==27144== Releasing lock... [2025-02-09 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:35:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:36:05 [end_date_ymd] => 2025-02-09 12:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:36:05' and `end` < '2025-02-09 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-02-09 12:36:19] Production.INFO: count ==931 [2025-02-09 12:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:36:05 - End Time 2025-02-09 12:36:05 [2025-02-09 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437098', 'tblTempUsageDetail_20' ) start [2025-02-09 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437098', 'tblTempUsageDetail_20' ) end [2025-02-09 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437098', 'tblTempVendorCDR_20' ) start [2025-02-09 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437098', 'tblTempVendorCDR_20' ) end [2025-02-09 12:36:19] Production.INFO: ProcessCDR(1,14437098,1,1,2) [2025-02-09 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437098', 'tblTempUsageDetail_20' ) start [2025-02-09 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437098', 'tblTempUsageDetail_20' ) end [2025-02-09 12:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:36:24] Production.INFO: ==27223== Releasing lock... [2025-02-09 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:36:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:37:06 [end_date_ymd] => 2025-02-09 12:37:06 [RateCDR] => 1 ) [2025-02-09 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:37:06' and `end` < '2025-02-09 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:37:18] Production.INFO: count ==939 [2025-02-09 12:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:37:06 - End Time 2025-02-09 12:37:06 [2025-02-09 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437103', 'tblTempUsageDetail_20' ) start [2025-02-09 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437103', 'tblTempUsageDetail_20' ) end [2025-02-09 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437103', 'tblTempVendorCDR_20' ) start [2025-02-09 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437103', 'tblTempVendorCDR_20' ) end [2025-02-09 12:37:19] Production.INFO: ProcessCDR(1,14437103,1,1,2) [2025-02-09 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437103', 'tblTempUsageDetail_20' ) start [2025-02-09 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437103', 'tblTempUsageDetail_20' ) end [2025-02-09 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:37:24] Production.INFO: ==27298== Releasing lock... [2025-02-09 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:37:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:38:05 [end_date_ymd] => 2025-02-09 12:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:38:05' and `end` < '2025-02-09 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-02-09 12:38:18] Production.INFO: count ==967 [2025-02-09 12:38:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:38:05 - End Time 2025-02-09 12:38:05 [2025-02-09 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437108', 'tblTempUsageDetail_20' ) start [2025-02-09 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437108', 'tblTempUsageDetail_20' ) end [2025-02-09 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437108', 'tblTempVendorCDR_20' ) start [2025-02-09 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437108', 'tblTempVendorCDR_20' ) end [2025-02-09 12:38:18] Production.INFO: ProcessCDR(1,14437108,1,1,2) [2025-02-09 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437108', 'tblTempUsageDetail_20' ) start [2025-02-09 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437108', 'tblTempUsageDetail_20' ) end [2025-02-09 12:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:38:21] Production.INFO: ==27373== Releasing lock... [2025-02-09 12:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:38:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-09 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:39:05 [end_date_ymd] => 2025-02-09 12:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:39:05' and `end` < '2025-02-09 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-02-09 12:39:18] Production.INFO: count ==979 [2025-02-09 12:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:39:05 - End Time 2025-02-09 12:39:05 [2025-02-09 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437113', 'tblTempUsageDetail_20' ) start [2025-02-09 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437113', 'tblTempUsageDetail_20' ) end [2025-02-09 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437113', 'tblTempVendorCDR_20' ) start [2025-02-09 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437113', 'tblTempVendorCDR_20' ) end [2025-02-09 12:39:18] Production.INFO: ProcessCDR(1,14437113,1,1,2) [2025-02-09 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437113', 'tblTempUsageDetail_20' ) start [2025-02-09 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437113', 'tblTempUsageDetail_20' ) end [2025-02-09 12:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:39:22] Production.INFO: ==27459== Releasing lock... [2025-02-09 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:39:22] Production.INFO: 36 MB #Memory Used# [2025-02-09 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:40:06 [end_date_ymd] => 2025-02-09 12:40:06 [RateCDR] => 1 ) [2025-02-09 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:40:06' and `end` < '2025-02-09 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:40:19] Production.INFO: count ==983 [2025-02-09 12:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:40:06 - End Time 2025-02-09 12:40:06 [2025-02-09 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437118', 'tblTempUsageDetail_20' ) start [2025-02-09 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437118', 'tblTempUsageDetail_20' ) end [2025-02-09 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437118', 'tblTempVendorCDR_20' ) start [2025-02-09 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437118', 'tblTempVendorCDR_20' ) end [2025-02-09 12:40:19] Production.INFO: ProcessCDR(1,14437118,1,1,2) [2025-02-09 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437118', 'tblTempUsageDetail_20' ) start [2025-02-09 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437118', 'tblTempUsageDetail_20' ) end [2025-02-09 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:40:22] Production.INFO: ==27534== Releasing lock... [2025-02-09 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-09 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:41:05 [end_date_ymd] => 2025-02-09 12:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:41:05' and `end` < '2025-02-09 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-02-09 12:41:19] Production.INFO: count ==1029 [2025-02-09 12:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:41:05 - End Time 2025-02-09 12:41:05 [2025-02-09 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437124', 'tblTempUsageDetail_20' ) start [2025-02-09 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437124', 'tblTempUsageDetail_20' ) end [2025-02-09 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437124', 'tblTempVendorCDR_20' ) start [2025-02-09 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437124', 'tblTempVendorCDR_20' ) end [2025-02-09 12:41:19] Production.INFO: ProcessCDR(1,14437124,1,1,2) [2025-02-09 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437124', 'tblTempUsageDetail_20' ) start [2025-02-09 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437124', 'tblTempUsageDetail_20' ) end [2025-02-09 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:41:22] Production.INFO: ==27618== Releasing lock... [2025-02-09 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:41:22] Production.INFO: 36 MB #Memory Used# [2025-02-09 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:42:06 [end_date_ymd] => 2025-02-09 12:42:06 [RateCDR] => 1 ) [2025-02-09 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:42:06' and `end` < '2025-02-09 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:42:19] Production.INFO: count ==1037 [2025-02-09 12:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:42:06 - End Time 2025-02-09 12:42:06 [2025-02-09 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437129', 'tblTempUsageDetail_20' ) start [2025-02-09 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437129', 'tblTempUsageDetail_20' ) end [2025-02-09 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437129', 'tblTempVendorCDR_20' ) start [2025-02-09 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437129', 'tblTempVendorCDR_20' ) end [2025-02-09 12:42:19] Production.INFO: ProcessCDR(1,14437129,1,1,2) [2025-02-09 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437129', 'tblTempUsageDetail_20' ) start [2025-02-09 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437129', 'tblTempUsageDetail_20' ) end [2025-02-09 12:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:42:23] Production.INFO: ==27702== Releasing lock... [2025-02-09 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:42:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:43:05 [end_date_ymd] => 2025-02-09 12:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:43:05' and `end` < '2025-02-09 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-02-09 12:43:19] Production.INFO: count ==1037 [2025-02-09 12:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:43:05 - End Time 2025-02-09 12:43:05 [2025-02-09 12:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437134', 'tblTempUsageDetail_20' ) start [2025-02-09 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437134', 'tblTempUsageDetail_20' ) end [2025-02-09 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437134', 'tblTempVendorCDR_20' ) start [2025-02-09 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437134', 'tblTempVendorCDR_20' ) end [2025-02-09 12:43:19] Production.INFO: ProcessCDR(1,14437134,1,1,2) [2025-02-09 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437134', 'tblTempUsageDetail_20' ) start [2025-02-09 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437134', 'tblTempUsageDetail_20' ) end [2025-02-09 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:43:23] Production.INFO: ==27828== Releasing lock... [2025-02-09 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:43:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:44:05 [end_date_ymd] => 2025-02-09 12:44:05 [RateCDR] => 1 ) [2025-02-09 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:44:05' and `end` < '2025-02-09 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-02-09 12:44:18] Production.INFO: count ==1037 [2025-02-09 12:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:44:05 - End Time 2025-02-09 12:44:05 [2025-02-09 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437139', 'tblTempUsageDetail_20' ) start [2025-02-09 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437139', 'tblTempUsageDetail_20' ) end [2025-02-09 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437139', 'tblTempVendorCDR_20' ) start [2025-02-09 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437139', 'tblTempVendorCDR_20' ) end [2025-02-09 12:44:19] Production.INFO: ProcessCDR(1,14437139,1,1,2) [2025-02-09 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437139', 'tblTempUsageDetail_20' ) start [2025-02-09 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437139', 'tblTempUsageDetail_20' ) end [2025-02-09 12:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:44:22] Production.INFO: ==27910== Releasing lock... [2025-02-09 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:45:05 [end_date_ymd] => 2025-02-09 12:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:45:05' and `end` < '2025-02-09 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-02-09 12:45:18] Production.INFO: count ==1044 [2025-02-09 12:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:45:05 - End Time 2025-02-09 12:45:05 [2025-02-09 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437144', 'tblTempUsageDetail_20' ) start [2025-02-09 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437144', 'tblTempUsageDetail_20' ) end [2025-02-09 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437144', 'tblTempVendorCDR_20' ) start [2025-02-09 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437144', 'tblTempVendorCDR_20' ) end [2025-02-09 12:45:18] Production.INFO: ProcessCDR(1,14437144,1,1,2) [2025-02-09 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437144', 'tblTempUsageDetail_20' ) start [2025-02-09 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437144', 'tblTempUsageDetail_20' ) end [2025-02-09 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:45:23] Production.INFO: ==28000== Releasing lock... [2025-02-09 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:45:23] Production.INFO: 36 MB #Memory Used# [2025-02-09 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:46:05 [end_date_ymd] => 2025-02-09 12:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:46:05' and `end` < '2025-02-09 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-02-09 12:46:18] Production.INFO: count ==1045 [2025-02-09 12:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:46:05 - End Time 2025-02-09 12:46:05 [2025-02-09 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437149', 'tblTempUsageDetail_20' ) start [2025-02-09 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437149', 'tblTempUsageDetail_20' ) end [2025-02-09 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437149', 'tblTempVendorCDR_20' ) start [2025-02-09 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437149', 'tblTempVendorCDR_20' ) end [2025-02-09 12:46:19] Production.INFO: ProcessCDR(1,14437149,1,1,2) [2025-02-09 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437149', 'tblTempUsageDetail_20' ) start [2025-02-09 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437149', 'tblTempUsageDetail_20' ) end [2025-02-09 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:46:23] Production.INFO: ==28085== Releasing lock... [2025-02-09 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:46:23] Production.INFO: 36 MB #Memory Used# [2025-02-09 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:47:04 [end_date_ymd] => 2025-02-09 12:47:04 [RateCDR] => 1 ) [2025-02-09 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:47:04' and `end` < '2025-02-09 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:47:18] Production.INFO: count ==1052 [2025-02-09 12:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:47:04 - End Time 2025-02-09 12:47:04 [2025-02-09 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437154', 'tblTempUsageDetail_20' ) start [2025-02-09 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437154', 'tblTempUsageDetail_20' ) end [2025-02-09 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437154', 'tblTempVendorCDR_20' ) start [2025-02-09 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437154', 'tblTempVendorCDR_20' ) end [2025-02-09 12:47:18] Production.INFO: ProcessCDR(1,14437154,1,1,2) [2025-02-09 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437154', 'tblTempUsageDetail_20' ) start [2025-02-09 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437154', 'tblTempUsageDetail_20' ) end [2025-02-09 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:47:21] Production.INFO: ==28173== Releasing lock... [2025-02-09 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:47:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:48:05 [end_date_ymd] => 2025-02-09 12:48:05 [RateCDR] => 1 ) [2025-02-09 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:48:05' and `end` < '2025-02-09 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:48:18] Production.INFO: count ==1053 [2025-02-09 12:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:48:05 - End Time 2025-02-09 12:48:05 [2025-02-09 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437159', 'tblTempUsageDetail_20' ) start [2025-02-09 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437159', 'tblTempUsageDetail_20' ) end [2025-02-09 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437159', 'tblTempVendorCDR_20' ) start [2025-02-09 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437159', 'tblTempVendorCDR_20' ) end [2025-02-09 12:48:19] Production.INFO: ProcessCDR(1,14437159,1,1,2) [2025-02-09 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437159', 'tblTempUsageDetail_20' ) start [2025-02-09 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437159', 'tblTempUsageDetail_20' ) end [2025-02-09 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:48:22] Production.INFO: ==28256== Releasing lock... [2025-02-09 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:49:05 [end_date_ymd] => 2025-02-09 12:49:05 [RateCDR] => 1 ) [2025-02-09 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:49:05' and `end` < '2025-02-09 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:49:18] Production.INFO: count ==1054 [2025-02-09 12:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:49:05 - End Time 2025-02-09 12:49:05 [2025-02-09 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437164', 'tblTempUsageDetail_20' ) start [2025-02-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437164', 'tblTempUsageDetail_20' ) end [2025-02-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437164', 'tblTempVendorCDR_20' ) start [2025-02-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437164', 'tblTempVendorCDR_20' ) end [2025-02-09 12:49:18] Production.INFO: ProcessCDR(1,14437164,1,1,2) [2025-02-09 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437164', 'tblTempUsageDetail_20' ) start [2025-02-09 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437164', 'tblTempUsageDetail_20' ) end [2025-02-09 12:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:49:22] Production.INFO: ==28345== Releasing lock... [2025-02-09 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:49:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:50:06 [end_date_ymd] => 2025-02-09 12:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:50:06' and `end` < '2025-02-09 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-02-09 12:50:19] Production.INFO: count ==1056 [2025-02-09 12:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:50:06 - End Time 2025-02-09 12:50:06 [2025-02-09 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437170', 'tblTempUsageDetail_20' ) start [2025-02-09 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437170', 'tblTempUsageDetail_20' ) end [2025-02-09 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437170', 'tblTempVendorCDR_20' ) start [2025-02-09 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437170', 'tblTempVendorCDR_20' ) end [2025-02-09 12:50:19] Production.INFO: ProcessCDR(1,14437170,1,1,2) [2025-02-09 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437170', 'tblTempUsageDetail_20' ) start [2025-02-09 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437170', 'tblTempUsageDetail_20' ) end [2025-02-09 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:50:24] Production.INFO: ==28430== Releasing lock... [2025-02-09 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:50:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:51:05 [end_date_ymd] => 2025-02-09 12:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:51:05' and `end` < '2025-02-09 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-02-09 12:51:19] Production.INFO: count ==1081 [2025-02-09 12:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:51:05 - End Time 2025-02-09 12:51:05 [2025-02-09 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437175', 'tblTempUsageDetail_20' ) start [2025-02-09 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437175', 'tblTempUsageDetail_20' ) end [2025-02-09 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437175', 'tblTempVendorCDR_20' ) start [2025-02-09 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437175', 'tblTempVendorCDR_20' ) end [2025-02-09 12:51:19] Production.INFO: ProcessCDR(1,14437175,1,1,2) [2025-02-09 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437175', 'tblTempUsageDetail_20' ) start [2025-02-09 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437175', 'tblTempUsageDetail_20' ) end [2025-02-09 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:51:22] Production.INFO: ==28523== Releasing lock... [2025-02-09 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:51:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:52:05 [end_date_ymd] => 2025-02-09 12:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:52:05' and `end` < '2025-02-09 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-02-09 12:52:18] Production.INFO: count ==1134 [2025-02-09 12:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:52:05 - End Time 2025-02-09 12:52:05 [2025-02-09 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437180', 'tblTempUsageDetail_20' ) start [2025-02-09 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437180', 'tblTempUsageDetail_20' ) end [2025-02-09 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437180', 'tblTempVendorCDR_20' ) start [2025-02-09 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437180', 'tblTempVendorCDR_20' ) end [2025-02-09 12:52:18] Production.INFO: ProcessCDR(1,14437180,1,1,2) [2025-02-09 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437180', 'tblTempUsageDetail_20' ) start [2025-02-09 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437180', 'tblTempUsageDetail_20' ) end [2025-02-09 12:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:52:21] Production.INFO: ==28605== Releasing lock... [2025-02-09 12:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:52:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:53:05 [end_date_ymd] => 2025-02-09 12:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:53:05' and `end` < '2025-02-09 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-02-09 12:53:19] Production.INFO: count ==1153 [2025-02-09 12:53:20] Production.ERROR: pbx CDR StartTime 2025-02-09 09:53:05 - End Time 2025-02-09 12:53:05 [2025-02-09 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437185', 'tblTempUsageDetail_20' ) start [2025-02-09 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437185', 'tblTempUsageDetail_20' ) end [2025-02-09 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437185', 'tblTempVendorCDR_20' ) start [2025-02-09 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437185', 'tblTempVendorCDR_20' ) end [2025-02-09 12:53:20] Production.INFO: ProcessCDR(1,14437185,1,1,2) [2025-02-09 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437185', 'tblTempUsageDetail_20' ) start [2025-02-09 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437185', 'tblTempUsageDetail_20' ) end [2025-02-09 12:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:53:23] Production.INFO: ==28694== Releasing lock... [2025-02-09 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:53:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:54:05 [end_date_ymd] => 2025-02-09 12:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:54:05' and `end` < '2025-02-09 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-02-09 12:54:18] Production.INFO: count ==1163 [2025-02-09 12:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:54:05 - End Time 2025-02-09 12:54:05 [2025-02-09 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437190', 'tblTempUsageDetail_20' ) start [2025-02-09 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437190', 'tblTempUsageDetail_20' ) end [2025-02-09 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437190', 'tblTempVendorCDR_20' ) start [2025-02-09 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437190', 'tblTempVendorCDR_20' ) end [2025-02-09 12:54:18] Production.INFO: ProcessCDR(1,14437190,1,1,2) [2025-02-09 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437190', 'tblTempUsageDetail_20' ) start [2025-02-09 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437190', 'tblTempUsageDetail_20' ) end [2025-02-09 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:54:23] Production.INFO: ==28793== Releasing lock... [2025-02-09 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:54:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:55:06 [end_date_ymd] => 2025-02-09 12:55:06 [RateCDR] => 1 ) [2025-02-09 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:55:06' and `end` < '2025-02-09 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:55:19] Production.INFO: count ==1170 [2025-02-09 12:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:55:06 - End Time 2025-02-09 12:55:06 [2025-02-09 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437195', 'tblTempUsageDetail_20' ) start [2025-02-09 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437195', 'tblTempUsageDetail_20' ) end [2025-02-09 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437195', 'tblTempVendorCDR_20' ) start [2025-02-09 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437195', 'tblTempVendorCDR_20' ) end [2025-02-09 12:55:19] Production.INFO: ProcessCDR(1,14437195,1,1,2) [2025-02-09 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437195', 'tblTempUsageDetail_20' ) start [2025-02-09 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437195', 'tblTempUsageDetail_20' ) end [2025-02-09 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:55:22] Production.INFO: ==28884== Releasing lock... [2025-02-09 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:56:05 [end_date_ymd] => 2025-02-09 12:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:56:05' and `end` < '2025-02-09 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-02-09 12:56:18] Production.INFO: count ==1176 [2025-02-09 12:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:56:05 - End Time 2025-02-09 12:56:05 [2025-02-09 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437200', 'tblTempUsageDetail_20' ) start [2025-02-09 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437200', 'tblTempUsageDetail_20' ) end [2025-02-09 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437200', 'tblTempVendorCDR_20' ) start [2025-02-09 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437200', 'tblTempVendorCDR_20' ) end [2025-02-09 12:56:19] Production.INFO: ProcessCDR(1,14437200,1,1,2) [2025-02-09 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437200', 'tblTempUsageDetail_20' ) start [2025-02-09 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437200', 'tblTempUsageDetail_20' ) end [2025-02-09 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:56:22] Production.INFO: ==28969== Releasing lock... [2025-02-09 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:56:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:57:05 [end_date_ymd] => 2025-02-09 12:57:05 [RateCDR] => 1 ) [2025-02-09 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 09:57:05' and `end` < '2025-02-09 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 12:57:18] Production.INFO: count ==1178 [2025-02-09 12:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:57:05 - End Time 2025-02-09 12:57:05 [2025-02-09 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437205', 'tblTempUsageDetail_20' ) start [2025-02-09 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437205', 'tblTempUsageDetail_20' ) end [2025-02-09 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437205', 'tblTempVendorCDR_20' ) start [2025-02-09 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437205', 'tblTempVendorCDR_20' ) end [2025-02-09 12:57:19] Production.INFO: ProcessCDR(1,14437205,1,1,2) [2025-02-09 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437205', 'tblTempUsageDetail_20' ) start [2025-02-09 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437205', 'tblTempUsageDetail_20' ) end [2025-02-09 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:57:23] Production.INFO: ==29057== Releasing lock... [2025-02-09 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:57:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:58:05 [end_date_ymd] => 2025-02-09 12:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:58:05' and `end` < '2025-02-09 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-02-09 12:58:18] Production.INFO: count ==1180 [2025-02-09 12:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 09:58:05 - End Time 2025-02-09 12:58:05 [2025-02-09 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437208', 'tblTempUsageDetail_20' ) start [2025-02-09 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437208', 'tblTempUsageDetail_20' ) end [2025-02-09 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437208', 'tblTempVendorCDR_20' ) start [2025-02-09 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437208', 'tblTempVendorCDR_20' ) end [2025-02-09 12:58:19] Production.INFO: ProcessCDR(1,14437208,1,1,2) [2025-02-09 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437208', 'tblTempUsageDetail_20' ) start [2025-02-09 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437208', 'tblTempUsageDetail_20' ) end [2025-02-09 12:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:58:23] Production.INFO: ==29146== Releasing lock... [2025-02-09 12:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 09:59:05 [end_date_ymd] => 2025-02-09 12:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 09:59:05' and `end` < '2025-02-09 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-02-09 12:59:18] Production.INFO: count ==1177 [2025-02-09 12:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 09:59:05 - End Time 2025-02-09 12:59:05 [2025-02-09 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437215', 'tblTempUsageDetail_20' ) start [2025-02-09 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437215', 'tblTempUsageDetail_20' ) end [2025-02-09 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437215', 'tblTempVendorCDR_20' ) start [2025-02-09 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437215', 'tblTempVendorCDR_20' ) end [2025-02-09 12:59:18] Production.INFO: ProcessCDR(1,14437215,1,1,2) [2025-02-09 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437215', 'tblTempUsageDetail_20' ) start [2025-02-09 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437215', 'tblTempUsageDetail_20' ) end [2025-02-09 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 12:59:21] Production.INFO: ==29271== Releasing lock... [2025-02-09 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 12:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:00:05 [end_date_ymd] => 2025-02-09 13:00:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:00:05' and `end` < '2025-02-09 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-02-09 13:00:18] Production.INFO: count ==1178 [2025-02-09 13:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:00:05 - End Time 2025-02-09 13:00:05 [2025-02-09 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437220', 'tblTempUsageDetail_20' ) start [2025-02-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437220', 'tblTempUsageDetail_20' ) end [2025-02-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437220', 'tblTempVendorCDR_20' ) start [2025-02-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437220', 'tblTempVendorCDR_20' ) end [2025-02-09 13:00:19] Production.INFO: ProcessCDR(1,14437220,1,1,2) [2025-02-09 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437220', 'tblTempUsageDetail_20' ) start [2025-02-09 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437220', 'tblTempUsageDetail_20' ) end [2025-02-09 13:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:00:22] Production.INFO: ==29359== Releasing lock... [2025-02-09 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:01:05 [end_date_ymd] => 2025-02-09 13:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:01:05' and `end` < '2025-02-09 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-02-09 13:01:18] Production.INFO: count ==1212 [2025-02-09 13:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:01:05 - End Time 2025-02-09 13:01:05 [2025-02-09 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437226', 'tblTempUsageDetail_20' ) start [2025-02-09 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437226', 'tblTempUsageDetail_20' ) end [2025-02-09 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437226', 'tblTempVendorCDR_20' ) start [2025-02-09 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437226', 'tblTempVendorCDR_20' ) end [2025-02-09 13:01:19] Production.INFO: ProcessCDR(1,14437226,1,1,2) [2025-02-09 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437226', 'tblTempUsageDetail_20' ) start [2025-02-09 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437226', 'tblTempUsageDetail_20' ) end [2025-02-09 13:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:01:22] Production.INFO: ==29460== Releasing lock... [2025-02-09 13:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:01:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:02:05 [end_date_ymd] => 2025-02-09 13:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:02:05' and `end` < '2025-02-09 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-02-09 13:02:19] Production.INFO: count ==1212 [2025-02-09 13:02:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:02:05 - End Time 2025-02-09 13:02:05 [2025-02-09 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437231', 'tblTempUsageDetail_20' ) start [2025-02-09 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437231', 'tblTempUsageDetail_20' ) end [2025-02-09 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437231', 'tblTempVendorCDR_20' ) start [2025-02-09 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437231', 'tblTempVendorCDR_20' ) end [2025-02-09 13:02:20] Production.INFO: ProcessCDR(1,14437231,1,1,2) [2025-02-09 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437231', 'tblTempUsageDetail_20' ) start [2025-02-09 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437231', 'tblTempUsageDetail_20' ) end [2025-02-09 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:02:23] Production.INFO: ==29542== Releasing lock... [2025-02-09 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:02:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:03:06 [end_date_ymd] => 2025-02-09 13:03:06 [RateCDR] => 1 ) [2025-02-09 13: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-02-09 10:03:06' and `end` < '2025-02-09 13: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-02-09 13:03:19] Production.INFO: count ==1212 [2025-02-09 13:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:03:06 - End Time 2025-02-09 13:03:06 [2025-02-09 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437236', 'tblTempUsageDetail_20' ) start [2025-02-09 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437236', 'tblTempUsageDetail_20' ) end [2025-02-09 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437236', 'tblTempVendorCDR_20' ) start [2025-02-09 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437236', 'tblTempVendorCDR_20' ) end [2025-02-09 13:03:19] Production.INFO: ProcessCDR(1,14437236,1,1,2) [2025-02-09 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437236', 'tblTempUsageDetail_20' ) start [2025-02-09 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437236', 'tblTempUsageDetail_20' ) end [2025-02-09 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:03:23] Production.INFO: ==29627== Releasing lock... [2025-02-09 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:03:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:04:05 [end_date_ymd] => 2025-02-09 13:04:05 [RateCDR] => 1 ) [2025-02-09 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:04:05' and `end` < '2025-02-09 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:04:19] Production.INFO: count ==1219 [2025-02-09 13:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:04:05 - End Time 2025-02-09 13:04:05 [2025-02-09 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437241', 'tblTempUsageDetail_20' ) start [2025-02-09 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437241', 'tblTempUsageDetail_20' ) end [2025-02-09 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437241', 'tblTempVendorCDR_20' ) start [2025-02-09 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437241', 'tblTempVendorCDR_20' ) end [2025-02-09 13:04:19] Production.INFO: ProcessCDR(1,14437241,1,1,2) [2025-02-09 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437241', 'tblTempUsageDetail_20' ) start [2025-02-09 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437241', 'tblTempUsageDetail_20' ) end [2025-02-09 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:04:23] Production.INFO: ==29711== Releasing lock... [2025-02-09 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:05:06 [end_date_ymd] => 2025-02-09 13:05:06 [RateCDR] => 1 ) [2025-02-09 13: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-02-09 10:05:06' and `end` < '2025-02-09 13: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-02-09 13:05:19] Production.INFO: count ==1224 [2025-02-09 13:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:05:06 - End Time 2025-02-09 13:05:06 [2025-02-09 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437246', 'tblTempUsageDetail_20' ) start [2025-02-09 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437246', 'tblTempUsageDetail_20' ) end [2025-02-09 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437246', 'tblTempVendorCDR_20' ) start [2025-02-09 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437246', 'tblTempVendorCDR_20' ) end [2025-02-09 13:05:19] Production.INFO: ProcessCDR(1,14437246,1,1,2) [2025-02-09 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437246', 'tblTempUsageDetail_20' ) start [2025-02-09 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437246', 'tblTempUsageDetail_20' ) end [2025-02-09 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:05:24] Production.INFO: ==29797== Releasing lock... [2025-02-09 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:05:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:06:05 [end_date_ymd] => 2025-02-09 13:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:06:05' and `end` < '2025-02-09 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-02-09 13:06:18] Production.INFO: count ==1234 [2025-02-09 13:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:06:05 - End Time 2025-02-09 13:06:05 [2025-02-09 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437248', 'tblTempUsageDetail_20' ) start [2025-02-09 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437248', 'tblTempUsageDetail_20' ) end [2025-02-09 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437248', 'tblTempVendorCDR_20' ) start [2025-02-09 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437248', 'tblTempVendorCDR_20' ) end [2025-02-09 13:06:19] Production.INFO: ProcessCDR(1,14437248,1,1,2) [2025-02-09 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437248', 'tblTempUsageDetail_20' ) start [2025-02-09 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437248', 'tblTempUsageDetail_20' ) end [2025-02-09 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:06:23] Production.INFO: ==29882== Releasing lock... [2025-02-09 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:06:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:07:06 [end_date_ymd] => 2025-02-09 13:07:06 [RateCDR] => 1 ) [2025-02-09 13: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-02-09 10:07:06' and `end` < '2025-02-09 13: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-02-09 13:07:19] Production.INFO: count ==1240 [2025-02-09 13:07:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:07:06 - End Time 2025-02-09 13:07:06 [2025-02-09 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437256', 'tblTempUsageDetail_20' ) start [2025-02-09 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437256', 'tblTempUsageDetail_20' ) end [2025-02-09 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437256', 'tblTempVendorCDR_20' ) start [2025-02-09 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437256', 'tblTempVendorCDR_20' ) end [2025-02-09 13:07:20] Production.INFO: ProcessCDR(1,14437256,1,1,2) [2025-02-09 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437256', 'tblTempUsageDetail_20' ) start [2025-02-09 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437256', 'tblTempUsageDetail_20' ) end [2025-02-09 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:07:23] Production.INFO: ==29966== Releasing lock... [2025-02-09 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:07:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:08:05 [end_date_ymd] => 2025-02-09 13:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:08:05' and `end` < '2025-02-09 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-02-09 13:08:19] Production.INFO: count ==1242 [2025-02-09 13:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:08:05 - End Time 2025-02-09 13:08:05 [2025-02-09 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437261', 'tblTempUsageDetail_20' ) start [2025-02-09 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437261', 'tblTempUsageDetail_20' ) end [2025-02-09 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437261', 'tblTempVendorCDR_20' ) start [2025-02-09 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437261', 'tblTempVendorCDR_20' ) end [2025-02-09 13:08:19] Production.INFO: ProcessCDR(1,14437261,1,1,2) [2025-02-09 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437261', 'tblTempUsageDetail_20' ) start [2025-02-09 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437261', 'tblTempUsageDetail_20' ) end [2025-02-09 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:08:22] Production.INFO: ==30050== Releasing lock... [2025-02-09 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:08:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:09:06 [end_date_ymd] => 2025-02-09 13:09:06 [RateCDR] => 1 ) [2025-02-09 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:09:06' and `end` < '2025-02-09 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:09:19] Production.INFO: count ==1239 [2025-02-09 13:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:09:06 - End Time 2025-02-09 13:09:06 [2025-02-09 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437266', 'tblTempUsageDetail_20' ) start [2025-02-09 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437266', 'tblTempUsageDetail_20' ) end [2025-02-09 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437266', 'tblTempVendorCDR_20' ) start [2025-02-09 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437266', 'tblTempVendorCDR_20' ) end [2025-02-09 13:09:19] Production.INFO: ProcessCDR(1,14437266,1,1,2) [2025-02-09 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437266', 'tblTempUsageDetail_20' ) start [2025-02-09 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437266', 'tblTempUsageDetail_20' ) end [2025-02-09 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:09:24] Production.INFO: ==30135== Releasing lock... [2025-02-09 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:09:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:10:06 [end_date_ymd] => 2025-02-09 13:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:10:06' and `end` < '2025-02-09 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-02-09 13:10:19] Production.INFO: count ==1362 [2025-02-09 13:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:10:06 - End Time 2025-02-09 13:10:06 [2025-02-09 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437272', 'tblTempUsageDetail_20' ) start [2025-02-09 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437272', 'tblTempUsageDetail_20' ) end [2025-02-09 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437272', 'tblTempVendorCDR_20' ) start [2025-02-09 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437272', 'tblTempVendorCDR_20' ) end [2025-02-09 13:10:20] Production.INFO: ProcessCDR(1,14437272,1,1,2) [2025-02-09 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437272', 'tblTempUsageDetail_20' ) start [2025-02-09 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437272', 'tblTempUsageDetail_20' ) end [2025-02-09 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:10:25] Production.INFO: ==30220== Releasing lock... [2025-02-09 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:10:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:11:06 [end_date_ymd] => 2025-02-09 13:11:06 [RateCDR] => 1 ) [2025-02-09 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:11:06' and `end` < '2025-02-09 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:11:19] Production.INFO: count ==1391 [2025-02-09 13:11:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:11:06 - End Time 2025-02-09 13:11:06 [2025-02-09 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437277', 'tblTempUsageDetail_20' ) start [2025-02-09 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437277', 'tblTempUsageDetail_20' ) end [2025-02-09 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437277', 'tblTempVendorCDR_20' ) start [2025-02-09 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437277', 'tblTempVendorCDR_20' ) end [2025-02-09 13:11:20] Production.INFO: ProcessCDR(1,14437277,1,1,2) [2025-02-09 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437277', 'tblTempUsageDetail_20' ) start [2025-02-09 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437277', 'tblTempUsageDetail_20' ) end [2025-02-09 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:11:25] Production.INFO: ==30307== Releasing lock... [2025-02-09 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:11:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:12:06 [end_date_ymd] => 2025-02-09 13:12:06 [RateCDR] => 1 ) [2025-02-09 13: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-02-09 10:12:06' and `end` < '2025-02-09 13: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-02-09 13:12:19] Production.INFO: count ==1399 [2025-02-09 13:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:12:06 - End Time 2025-02-09 13:12:06 [2025-02-09 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437282', 'tblTempUsageDetail_20' ) start [2025-02-09 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437282', 'tblTempUsageDetail_20' ) end [2025-02-09 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437282', 'tblTempVendorCDR_20' ) start [2025-02-09 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437282', 'tblTempVendorCDR_20' ) end [2025-02-09 13:12:19] Production.INFO: ProcessCDR(1,14437282,1,1,2) [2025-02-09 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437282', 'tblTempUsageDetail_20' ) start [2025-02-09 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437282', 'tblTempUsageDetail_20' ) end [2025-02-09 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:12:23] Production.INFO: ==30392== Releasing lock... [2025-02-09 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:12:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:13:06 [end_date_ymd] => 2025-02-09 13:13:06 [RateCDR] => 1 ) [2025-02-09 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:13:06' and `end` < '2025-02-09 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:13:19] Production.INFO: count ==1404 [2025-02-09 13:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:13:06 - End Time 2025-02-09 13:13:06 [2025-02-09 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437287', 'tblTempUsageDetail_20' ) start [2025-02-09 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437287', 'tblTempUsageDetail_20' ) end [2025-02-09 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437287', 'tblTempVendorCDR_20' ) start [2025-02-09 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437287', 'tblTempVendorCDR_20' ) end [2025-02-09 13:13:19] Production.INFO: ProcessCDR(1,14437287,1,1,2) [2025-02-09 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437287', 'tblTempUsageDetail_20' ) start [2025-02-09 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437287', 'tblTempUsageDetail_20' ) end [2025-02-09 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:13:23] Production.INFO: ==30478== Releasing lock... [2025-02-09 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:14:05 [end_date_ymd] => 2025-02-09 13:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:14:05' and `end` < '2025-02-09 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-02-09 13:14:18] Production.INFO: count ==1404 [2025-02-09 13:14:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:14:05 - End Time 2025-02-09 13:14:05 [2025-02-09 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437292', 'tblTempUsageDetail_20' ) start [2025-02-09 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437292', 'tblTempUsageDetail_20' ) end [2025-02-09 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437292', 'tblTempVendorCDR_20' ) start [2025-02-09 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437292', 'tblTempVendorCDR_20' ) end [2025-02-09 13:14:19] Production.INFO: ProcessCDR(1,14437292,1,1,2) [2025-02-09 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437292', 'tblTempUsageDetail_20' ) start [2025-02-09 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437292', 'tblTempUsageDetail_20' ) end [2025-02-09 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:14:23] Production.INFO: ==30601== Releasing lock... [2025-02-09 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:14:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:15:05 [end_date_ymd] => 2025-02-09 13:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:15:05' and `end` < '2025-02-09 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:15:19] Production.INFO: count ==1400 [2025-02-09 13:15:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:15:05 - End Time 2025-02-09 13:15:05 [2025-02-09 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437297', 'tblTempUsageDetail_20' ) start [2025-02-09 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437297', 'tblTempUsageDetail_20' ) end [2025-02-09 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437297', 'tblTempVendorCDR_20' ) start [2025-02-09 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437297', 'tblTempVendorCDR_20' ) end [2025-02-09 13:15:19] Production.INFO: ProcessCDR(1,14437297,1,1,2) [2025-02-09 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437297', 'tblTempUsageDetail_20' ) start [2025-02-09 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437297', 'tblTempUsageDetail_20' ) end [2025-02-09 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:15:23] Production.INFO: ==30700== Releasing lock... [2025-02-09 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:15:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:16:05 [end_date_ymd] => 2025-02-09 13:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:16:05' and `end` < '2025-02-09 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-02-09 13:16:18] Production.INFO: count ==1396 [2025-02-09 13:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:16:05 - End Time 2025-02-09 13:16:05 [2025-02-09 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437302', 'tblTempUsageDetail_20' ) start [2025-02-09 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437302', 'tblTempUsageDetail_20' ) end [2025-02-09 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437302', 'tblTempVendorCDR_20' ) start [2025-02-09 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437302', 'tblTempVendorCDR_20' ) end [2025-02-09 13:16:19] Production.INFO: ProcessCDR(1,14437302,1,1,2) [2025-02-09 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437302', 'tblTempUsageDetail_20' ) start [2025-02-09 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437302', 'tblTempUsageDetail_20' ) end [2025-02-09 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:16:22] Production.INFO: ==30807== Releasing lock... [2025-02-09 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:17:05 [end_date_ymd] => 2025-02-09 13:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:17:05' and `end` < '2025-02-09 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:17:18] Production.INFO: count ==1428 [2025-02-09 13:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:17:05 - End Time 2025-02-09 13:17:05 [2025-02-09 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437307', 'tblTempUsageDetail_20' ) start [2025-02-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437307', 'tblTempUsageDetail_20' ) end [2025-02-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437307', 'tblTempVendorCDR_20' ) start [2025-02-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437307', 'tblTempVendorCDR_20' ) end [2025-02-09 13:17:18] Production.INFO: ProcessCDR(1,14437307,1,1,2) [2025-02-09 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437307', 'tblTempUsageDetail_20' ) start [2025-02-09 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437307', 'tblTempUsageDetail_20' ) end [2025-02-09 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:17:22] Production.INFO: ==30917== Releasing lock... [2025-02-09 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:17:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:18:05 [end_date_ymd] => 2025-02-09 13:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:18:05' and `end` < '2025-02-09 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-02-09 13:18:18] Production.INFO: count ==1427 [2025-02-09 13:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:18:05 - End Time 2025-02-09 13:18:05 [2025-02-09 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437312', 'tblTempUsageDetail_20' ) start [2025-02-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437312', 'tblTempUsageDetail_20' ) end [2025-02-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437312', 'tblTempVendorCDR_20' ) start [2025-02-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437312', 'tblTempVendorCDR_20' ) end [2025-02-09 13:18:19] Production.INFO: ProcessCDR(1,14437312,1,1,2) [2025-02-09 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437312', 'tblTempUsageDetail_20' ) start [2025-02-09 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437312', 'tblTempUsageDetail_20' ) end [2025-02-09 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:18:22] Production.INFO: ==31030== Releasing lock... [2025-02-09 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:19:06 [end_date_ymd] => 2025-02-09 13:19:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:19:06' and `end` < '2025-02-09 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-02-09 13:19:19] Production.INFO: count ==1427 [2025-02-09 13:19:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:19:06 - End Time 2025-02-09 13:19:06 [2025-02-09 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437317', 'tblTempUsageDetail_20' ) start [2025-02-09 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437317', 'tblTempUsageDetail_20' ) end [2025-02-09 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437317', 'tblTempVendorCDR_20' ) start [2025-02-09 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437317', 'tblTempVendorCDR_20' ) end [2025-02-09 13:19:19] Production.INFO: ProcessCDR(1,14437317,1,1,2) [2025-02-09 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437317', 'tblTempUsageDetail_20' ) start [2025-02-09 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437317', 'tblTempUsageDetail_20' ) end [2025-02-09 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:19:23] Production.INFO: ==31143== Releasing lock... [2025-02-09 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:19:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:20:06 [end_date_ymd] => 2025-02-09 13:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:20:06' and `end` < '2025-02-09 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-02-09 13:20:19] Production.INFO: count ==1450 [2025-02-09 13:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:20:06 - End Time 2025-02-09 13:20:06 [2025-02-09 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437323', 'tblTempUsageDetail_20' ) start [2025-02-09 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437323', 'tblTempUsageDetail_20' ) end [2025-02-09 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437323', 'tblTempVendorCDR_20' ) start [2025-02-09 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437323', 'tblTempVendorCDR_20' ) end [2025-02-09 13:20:19] Production.INFO: ProcessCDR(1,14437323,1,1,2) [2025-02-09 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437323', 'tblTempUsageDetail_20' ) start [2025-02-09 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437323', 'tblTempUsageDetail_20' ) end [2025-02-09 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:20:23] Production.INFO: ==31256== Releasing lock... [2025-02-09 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:20:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:21:06 [end_date_ymd] => 2025-02-09 13:21:06 [RateCDR] => 1 ) [2025-02-09 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:21:06' and `end` < '2025-02-09 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:21:19] Production.INFO: count ==1475 [2025-02-09 13:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:21:06 - End Time 2025-02-09 13:21:06 [2025-02-09 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437328', 'tblTempUsageDetail_20' ) start [2025-02-09 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437328', 'tblTempUsageDetail_20' ) end [2025-02-09 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437328', 'tblTempVendorCDR_20' ) start [2025-02-09 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437328', 'tblTempVendorCDR_20' ) end [2025-02-09 13:21:19] Production.INFO: ProcessCDR(1,14437328,1,1,2) [2025-02-09 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437328', 'tblTempUsageDetail_20' ) start [2025-02-09 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437328', 'tblTempUsageDetail_20' ) end [2025-02-09 13:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:21:22] Production.INFO: ==31368== Releasing lock... [2025-02-09 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:21:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:22:05 [end_date_ymd] => 2025-02-09 13:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:22:05' and `end` < '2025-02-09 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-02-09 13:22:19] Production.INFO: count ==1481 [2025-02-09 13:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:22:05 - End Time 2025-02-09 13:22:05 [2025-02-09 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437333', 'tblTempUsageDetail_20' ) start [2025-02-09 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437333', 'tblTempUsageDetail_20' ) end [2025-02-09 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437333', 'tblTempVendorCDR_20' ) start [2025-02-09 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437333', 'tblTempVendorCDR_20' ) end [2025-02-09 13:22:19] Production.INFO: ProcessCDR(1,14437333,1,1,2) [2025-02-09 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437333', 'tblTempUsageDetail_20' ) start [2025-02-09 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437333', 'tblTempUsageDetail_20' ) end [2025-02-09 13:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:22:24] Production.INFO: ==31478== Releasing lock... [2025-02-09 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:22:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:23:05 [end_date_ymd] => 2025-02-09 13:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:23:05' and `end` < '2025-02-09 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-02-09 13:23:18] Production.INFO: count ==1487 [2025-02-09 13:23:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:23:05 - End Time 2025-02-09 13:23:05 [2025-02-09 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437338', 'tblTempUsageDetail_20' ) start [2025-02-09 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437338', 'tblTempUsageDetail_20' ) end [2025-02-09 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437338', 'tblTempVendorCDR_20' ) start [2025-02-09 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437338', 'tblTempVendorCDR_20' ) end [2025-02-09 13:23:19] Production.INFO: ProcessCDR(1,14437338,1,1,2) [2025-02-09 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437338', 'tblTempUsageDetail_20' ) start [2025-02-09 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437338', 'tblTempUsageDetail_20' ) end [2025-02-09 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:23:22] Production.INFO: ==31591== Releasing lock... [2025-02-09 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:23:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:24:05 [end_date_ymd] => 2025-02-09 13:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:24:05' and `end` < '2025-02-09 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-02-09 13:24:18] Production.INFO: count ==1487 [2025-02-09 13:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:24:05 - End Time 2025-02-09 13:24:05 [2025-02-09 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437343', 'tblTempUsageDetail_20' ) start [2025-02-09 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437343', 'tblTempUsageDetail_20' ) end [2025-02-09 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437343', 'tblTempVendorCDR_20' ) start [2025-02-09 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437343', 'tblTempVendorCDR_20' ) end [2025-02-09 13:24:19] Production.INFO: ProcessCDR(1,14437343,1,1,2) [2025-02-09 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437343', 'tblTempUsageDetail_20' ) start [2025-02-09 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437343', 'tblTempUsageDetail_20' ) end [2025-02-09 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:24:23] Production.INFO: ==31702== Releasing lock... [2025-02-09 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:24:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:25:05 [end_date_ymd] => 2025-02-09 13:25:05 [RateCDR] => 1 ) [2025-02-09 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:25:05' and `end` < '2025-02-09 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:25:18] Production.INFO: count ==1492 [2025-02-09 13:25:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:25:05 - End Time 2025-02-09 13:25:05 [2025-02-09 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437348', 'tblTempUsageDetail_20' ) start [2025-02-09 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437348', 'tblTempUsageDetail_20' ) end [2025-02-09 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437348', 'tblTempVendorCDR_20' ) start [2025-02-09 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437348', 'tblTempVendorCDR_20' ) end [2025-02-09 13:25:19] Production.INFO: ProcessCDR(1,14437348,1,1,2) [2025-02-09 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437348', 'tblTempUsageDetail_20' ) start [2025-02-09 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437348', 'tblTempUsageDetail_20' ) end [2025-02-09 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:25:23] Production.INFO: ==31814== Releasing lock... [2025-02-09 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:25:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:26:05 [end_date_ymd] => 2025-02-09 13:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:26:05' and `end` < '2025-02-09 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-02-09 13:26:17] Production.INFO: count ==1499 [2025-02-09 13:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:26:05 - End Time 2025-02-09 13:26:05 [2025-02-09 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437353', 'tblTempUsageDetail_20' ) start [2025-02-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437353', 'tblTempUsageDetail_20' ) end [2025-02-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437353', 'tblTempVendorCDR_20' ) start [2025-02-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437353', 'tblTempVendorCDR_20' ) end [2025-02-09 13:26:18] Production.INFO: ProcessCDR(1,14437353,1,1,2) [2025-02-09 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437353', 'tblTempUsageDetail_20' ) start [2025-02-09 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437353', 'tblTempUsageDetail_20' ) end [2025-02-09 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:26:23] Production.INFO: ==31930== Releasing lock... [2025-02-09 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:26:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:27:05 [end_date_ymd] => 2025-02-09 13:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:27:05' and `end` < '2025-02-09 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-02-09 13:27:19] Production.INFO: count ==1498 [2025-02-09 13:27:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:27:05 - End Time 2025-02-09 13:27:05 [2025-02-09 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437358', 'tblTempUsageDetail_20' ) start [2025-02-09 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437358', 'tblTempUsageDetail_20' ) end [2025-02-09 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437358', 'tblTempVendorCDR_20' ) start [2025-02-09 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437358', 'tblTempVendorCDR_20' ) end [2025-02-09 13:27:19] Production.INFO: ProcessCDR(1,14437358,1,1,2) [2025-02-09 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437358', 'tblTempUsageDetail_20' ) start [2025-02-09 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437358', 'tblTempUsageDetail_20' ) end [2025-02-09 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:27:24] Production.INFO: ==32046== Releasing lock... [2025-02-09 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:27:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:28:05 [end_date_ymd] => 2025-02-09 13:28:05 [RateCDR] => 1 ) [2025-02-09 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:28:05' and `end` < '2025-02-09 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:28:18] Production.INFO: count ==1501 [2025-02-09 13:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:28:05 - End Time 2025-02-09 13:28:05 [2025-02-09 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437363', 'tblTempUsageDetail_20' ) start [2025-02-09 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437363', 'tblTempUsageDetail_20' ) end [2025-02-09 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437363', 'tblTempVendorCDR_20' ) start [2025-02-09 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437363', 'tblTempVendorCDR_20' ) end [2025-02-09 13:28:19] Production.INFO: ProcessCDR(1,14437363,1,1,2) [2025-02-09 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437363', 'tblTempUsageDetail_20' ) start [2025-02-09 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437363', 'tblTempUsageDetail_20' ) end [2025-02-09 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:28:24] Production.INFO: ==32161== Releasing lock... [2025-02-09 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:28:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:29:06 [end_date_ymd] => 2025-02-09 13:29:06 [RateCDR] => 1 ) [2025-02-09 13: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-02-09 10:29:06' and `end` < '2025-02-09 13: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-02-09 13:29:19] Production.INFO: count ==1497 [2025-02-09 13:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:29:06 - End Time 2025-02-09 13:29:06 [2025-02-09 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437368', 'tblTempUsageDetail_20' ) start [2025-02-09 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437368', 'tblTempUsageDetail_20' ) end [2025-02-09 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437368', 'tblTempVendorCDR_20' ) start [2025-02-09 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437368', 'tblTempVendorCDR_20' ) end [2025-02-09 13:29:19] Production.INFO: ProcessCDR(1,14437368,1,1,2) [2025-02-09 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437368', 'tblTempUsageDetail_20' ) start [2025-02-09 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437368', 'tblTempUsageDetail_20' ) end [2025-02-09 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:29:22] Production.INFO: ==32272== Releasing lock... [2025-02-09 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:30:05 [end_date_ymd] => 2025-02-09 13:30:05 [RateCDR] => 1 ) [2025-02-09 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:30:05' and `end` < '2025-02-09 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:30:18] Production.INFO: count ==1498 [2025-02-09 13:30:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:30:05 - End Time 2025-02-09 13:30:05 [2025-02-09 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437374', 'tblTempUsageDetail_20' ) start [2025-02-09 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437374', 'tblTempUsageDetail_20' ) end [2025-02-09 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437374', 'tblTempVendorCDR_20' ) start [2025-02-09 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437374', 'tblTempVendorCDR_20' ) end [2025-02-09 13:30:19] Production.INFO: ProcessCDR(1,14437374,1,1,2) [2025-02-09 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437374', 'tblTempUsageDetail_20' ) start [2025-02-09 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437374', 'tblTempUsageDetail_20' ) end [2025-02-09 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:30:23] Production.INFO: ==32426== Releasing lock... [2025-02-09 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:31:05 [end_date_ymd] => 2025-02-09 13:31:05 [RateCDR] => 1 ) [2025-02-09 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:31:05' and `end` < '2025-02-09 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:31:18] Production.INFO: count ==1515 [2025-02-09 13:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:31:05 - End Time 2025-02-09 13:31:05 [2025-02-09 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437379', 'tblTempUsageDetail_20' ) start [2025-02-09 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437379', 'tblTempUsageDetail_20' ) end [2025-02-09 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437379', 'tblTempVendorCDR_20' ) start [2025-02-09 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437379', 'tblTempVendorCDR_20' ) end [2025-02-09 13:31:19] Production.INFO: ProcessCDR(1,14437379,1,1,2) [2025-02-09 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437379', 'tblTempUsageDetail_20' ) start [2025-02-09 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437379', 'tblTempUsageDetail_20' ) end [2025-02-09 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:31:23] Production.INFO: ==32540== Releasing lock... [2025-02-09 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:31:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:32:05 [end_date_ymd] => 2025-02-09 13:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:32:05' and `end` < '2025-02-09 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-02-09 13:32:18] Production.INFO: count ==1525 [2025-02-09 13:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:32:05 - End Time 2025-02-09 13:32:05 [2025-02-09 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437384', 'tblTempUsageDetail_20' ) start [2025-02-09 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437384', 'tblTempUsageDetail_20' ) end [2025-02-09 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437384', 'tblTempVendorCDR_20' ) start [2025-02-09 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437384', 'tblTempVendorCDR_20' ) end [2025-02-09 13:32:19] Production.INFO: ProcessCDR(1,14437384,1,1,2) [2025-02-09 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437384', 'tblTempUsageDetail_20' ) start [2025-02-09 13:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437384', 'tblTempUsageDetail_20' ) end [2025-02-09 13:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:32:24] Production.INFO: ==32653== Releasing lock... [2025-02-09 13:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:32:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:33:05 [end_date_ymd] => 2025-02-09 13:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:33:05' and `end` < '2025-02-09 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-02-09 13:33:19] Production.INFO: count ==1528 [2025-02-09 13:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:33:05 - End Time 2025-02-09 13:33:05 [2025-02-09 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437389', 'tblTempUsageDetail_20' ) start [2025-02-09 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437389', 'tblTempUsageDetail_20' ) end [2025-02-09 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437389', 'tblTempVendorCDR_20' ) start [2025-02-09 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437389', 'tblTempVendorCDR_20' ) end [2025-02-09 13:33:19] Production.INFO: ProcessCDR(1,14437389,1,1,2) [2025-02-09 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437389', 'tblTempUsageDetail_20' ) start [2025-02-09 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437389', 'tblTempUsageDetail_20' ) end [2025-02-09 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:33:22] Production.INFO: ==32765== Releasing lock... [2025-02-09 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:33:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:34:05 [end_date_ymd] => 2025-02-09 13:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:34:05' and `end` < '2025-02-09 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-02-09 13:34:19] Production.INFO: count ==1535 [2025-02-09 13:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:34:05 - End Time 2025-02-09 13:34:05 [2025-02-09 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437394', 'tblTempUsageDetail_20' ) start [2025-02-09 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437394', 'tblTempUsageDetail_20' ) end [2025-02-09 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437394', 'tblTempVendorCDR_20' ) start [2025-02-09 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437394', 'tblTempVendorCDR_20' ) end [2025-02-09 13:34:19] Production.INFO: ProcessCDR(1,14437394,1,1,2) [2025-02-09 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437394', 'tblTempUsageDetail_20' ) start [2025-02-09 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437394', 'tblTempUsageDetail_20' ) end [2025-02-09 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:34:23] Production.INFO: ==412== Releasing lock... [2025-02-09 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:34:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:35:05 [end_date_ymd] => 2025-02-09 13:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:35:05' and `end` < '2025-02-09 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-02-09 13:35:18] Production.INFO: count ==1537 [2025-02-09 13:35:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:35:05 - End Time 2025-02-09 13:35:05 [2025-02-09 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437399', 'tblTempUsageDetail_20' ) start [2025-02-09 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437399', 'tblTempUsageDetail_20' ) end [2025-02-09 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437399', 'tblTempVendorCDR_20' ) start [2025-02-09 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437399', 'tblTempVendorCDR_20' ) end [2025-02-09 13:35:19] Production.INFO: ProcessCDR(1,14437399,1,1,2) [2025-02-09 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437399', 'tblTempUsageDetail_20' ) start [2025-02-09 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437399', 'tblTempUsageDetail_20' ) end [2025-02-09 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:35:22] Production.INFO: ==499== Releasing lock... [2025-02-09 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:35:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:36:06 [end_date_ymd] => 2025-02-09 13:36:06 [RateCDR] => 1 ) [2025-02-09 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:36:06' and `end` < '2025-02-09 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:36:19] Production.INFO: count ==1534 [2025-02-09 13:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:36:06 - End Time 2025-02-09 13:36:06 [2025-02-09 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437404', 'tblTempUsageDetail_20' ) start [2025-02-09 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437404', 'tblTempUsageDetail_20' ) end [2025-02-09 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437404', 'tblTempVendorCDR_20' ) start [2025-02-09 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437404', 'tblTempVendorCDR_20' ) end [2025-02-09 13:36:19] Production.INFO: ProcessCDR(1,14437404,1,1,2) [2025-02-09 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437404', 'tblTempUsageDetail_20' ) start [2025-02-09 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437404', 'tblTempUsageDetail_20' ) end [2025-02-09 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:36:22] Production.INFO: ==591== Releasing lock... [2025-02-09 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:36:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:37:05 [end_date_ymd] => 2025-02-09 13:37:05 [RateCDR] => 1 ) [2025-02-09 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:37:05' and `end` < '2025-02-09 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:37:18] Production.INFO: count ==1533 [2025-02-09 13:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:37:05 - End Time 2025-02-09 13:37:05 [2025-02-09 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437409', 'tblTempUsageDetail_20' ) start [2025-02-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437409', 'tblTempUsageDetail_20' ) end [2025-02-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437409', 'tblTempVendorCDR_20' ) start [2025-02-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437409', 'tblTempVendorCDR_20' ) end [2025-02-09 13:37:18] Production.INFO: ProcessCDR(1,14437409,1,1,2) [2025-02-09 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437409', 'tblTempUsageDetail_20' ) start [2025-02-09 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437409', 'tblTempUsageDetail_20' ) end [2025-02-09 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:37:23] Production.INFO: ==704== Releasing lock... [2025-02-09 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:37:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:38:05 [end_date_ymd] => 2025-02-09 13:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:38:05' and `end` < '2025-02-09 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-02-09 13:38:20] Production.INFO: count ==1535 [2025-02-09 13:38:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:38:05 - End Time 2025-02-09 13:38:05 [2025-02-09 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437414', 'tblTempUsageDetail_20' ) start [2025-02-09 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437414', 'tblTempUsageDetail_20' ) end [2025-02-09 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437414', 'tblTempVendorCDR_20' ) start [2025-02-09 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437414', 'tblTempVendorCDR_20' ) end [2025-02-09 13:38:20] Production.INFO: ProcessCDR(1,14437414,1,1,2) [2025-02-09 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437414', 'tblTempUsageDetail_20' ) start [2025-02-09 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437414', 'tblTempUsageDetail_20' ) end [2025-02-09 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:38:25] Production.INFO: ==795== Releasing lock... [2025-02-09 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:38:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:39:05 [end_date_ymd] => 2025-02-09 13:39:05 [RateCDR] => 1 ) [2025-02-09 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:39:05' and `end` < '2025-02-09 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:39:18] Production.INFO: count ==1543 [2025-02-09 13:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:39:05 - End Time 2025-02-09 13:39:05 [2025-02-09 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437419', 'tblTempUsageDetail_20' ) start [2025-02-09 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437419', 'tblTempUsageDetail_20' ) end [2025-02-09 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437419', 'tblTempVendorCDR_20' ) start [2025-02-09 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437419', 'tblTempVendorCDR_20' ) end [2025-02-09 13:39:19] Production.INFO: ProcessCDR(1,14437419,1,1,2) [2025-02-09 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437419', 'tblTempUsageDetail_20' ) start [2025-02-09 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437419', 'tblTempUsageDetail_20' ) end [2025-02-09 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:39:23] Production.INFO: ==881== Releasing lock... [2025-02-09 13:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:39:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:40:06 [end_date_ymd] => 2025-02-09 13:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:40:06' and `end` < '2025-02-09 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-02-09 13:40:19] Production.INFO: count ==1529 [2025-02-09 13:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:40:06 - End Time 2025-02-09 13:40:06 [2025-02-09 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437424', 'tblTempUsageDetail_20' ) start [2025-02-09 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437424', 'tblTempUsageDetail_20' ) end [2025-02-09 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437424', 'tblTempVendorCDR_20' ) start [2025-02-09 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437424', 'tblTempVendorCDR_20' ) end [2025-02-09 13:40:20] Production.INFO: ProcessCDR(1,14437424,1,1,2) [2025-02-09 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437424', 'tblTempUsageDetail_20' ) start [2025-02-09 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437424', 'tblTempUsageDetail_20' ) end [2025-02-09 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:40:23] Production.INFO: ==976== Releasing lock... [2025-02-09 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:41:04 [end_date_ymd] => 2025-02-09 13:41:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:41:04' and `end` < '2025-02-09 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-02-09 13:41:17] Production.INFO: count ==1525 [2025-02-09 13:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:41:04 - End Time 2025-02-09 13:41:04 [2025-02-09 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437430', 'tblTempUsageDetail_20' ) start [2025-02-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437430', 'tblTempUsageDetail_20' ) end [2025-02-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437430', 'tblTempVendorCDR_20' ) start [2025-02-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437430', 'tblTempVendorCDR_20' ) end [2025-02-09 13:41:18] Production.INFO: ProcessCDR(1,14437430,1,1,2) [2025-02-09 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437430', 'tblTempUsageDetail_20' ) start [2025-02-09 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437430', 'tblTempUsageDetail_20' ) end [2025-02-09 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:41:21] Production.INFO: ==1061== Releasing lock... [2025-02-09 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:42:05 [end_date_ymd] => 2025-02-09 13:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:42:05' and `end` < '2025-02-09 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-02-09 13:42:18] Production.INFO: count ==1522 [2025-02-09 13:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:42:05 - End Time 2025-02-09 13:42:05 [2025-02-09 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437435', 'tblTempUsageDetail_20' ) start [2025-02-09 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437435', 'tblTempUsageDetail_20' ) end [2025-02-09 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437435', 'tblTempVendorCDR_20' ) start [2025-02-09 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437435', 'tblTempVendorCDR_20' ) end [2025-02-09 13:42:19] Production.INFO: ProcessCDR(1,14437435,1,1,2) [2025-02-09 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437435', 'tblTempUsageDetail_20' ) start [2025-02-09 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437435', 'tblTempUsageDetail_20' ) end [2025-02-09 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:42:22] Production.INFO: ==1148== Releasing lock... [2025-02-09 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:43:05 [end_date_ymd] => 2025-02-09 13:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:43:05' and `end` < '2025-02-09 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-02-09 13:43:18] Production.INFO: count ==1533 [2025-02-09 13:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:43:05 - End Time 2025-02-09 13:43:05 [2025-02-09 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437440', 'tblTempUsageDetail_20' ) start [2025-02-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437440', 'tblTempUsageDetail_20' ) end [2025-02-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437440', 'tblTempVendorCDR_20' ) start [2025-02-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437440', 'tblTempVendorCDR_20' ) end [2025-02-09 13:43:18] Production.INFO: ProcessCDR(1,14437440,1,1,2) [2025-02-09 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437440', 'tblTempUsageDetail_20' ) start [2025-02-09 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437440', 'tblTempUsageDetail_20' ) end [2025-02-09 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:43:23] Production.INFO: ==1239== Releasing lock... [2025-02-09 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:43:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:44:05 [end_date_ymd] => 2025-02-09 13:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:44:05' and `end` < '2025-02-09 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-02-09 13:44:19] Production.INFO: count ==1533 [2025-02-09 13:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:44:05 - End Time 2025-02-09 13:44:05 [2025-02-09 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437445', 'tblTempUsageDetail_20' ) start [2025-02-09 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437445', 'tblTempUsageDetail_20' ) end [2025-02-09 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437445', 'tblTempVendorCDR_20' ) start [2025-02-09 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437445', 'tblTempVendorCDR_20' ) end [2025-02-09 13:44:19] Production.INFO: ProcessCDR(1,14437445,1,1,2) [2025-02-09 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437445', 'tblTempUsageDetail_20' ) start [2025-02-09 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437445', 'tblTempUsageDetail_20' ) end [2025-02-09 13:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:44:22] Production.INFO: ==1333== Releasing lock... [2025-02-09 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:44:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:45:05 [end_date_ymd] => 2025-02-09 13:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:45:05' and `end` < '2025-02-09 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-02-09 13:45:18] Production.INFO: count ==1523 [2025-02-09 13:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:45:05 - End Time 2025-02-09 13:45:05 [2025-02-09 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437450', 'tblTempUsageDetail_20' ) start [2025-02-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437450', 'tblTempUsageDetail_20' ) end [2025-02-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437450', 'tblTempVendorCDR_20' ) start [2025-02-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437450', 'tblTempVendorCDR_20' ) end [2025-02-09 13:45:18] Production.INFO: ProcessCDR(1,14437450,1,1,2) [2025-02-09 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437450', 'tblTempUsageDetail_20' ) start [2025-02-09 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437450', 'tblTempUsageDetail_20' ) end [2025-02-09 13:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:45:21] Production.INFO: ==1458== Releasing lock... [2025-02-09 13:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:45:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:46:05 [end_date_ymd] => 2025-02-09 13:46:05 [RateCDR] => 1 ) [2025-02-09 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:46:05' and `end` < '2025-02-09 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:46:18] Production.INFO: count ==1517 [2025-02-09 13:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:46:05 - End Time 2025-02-09 13:46:05 [2025-02-09 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437455', 'tblTempUsageDetail_20' ) start [2025-02-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437455', 'tblTempUsageDetail_20' ) end [2025-02-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437455', 'tblTempVendorCDR_20' ) start [2025-02-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437455', 'tblTempVendorCDR_20' ) end [2025-02-09 13:46:18] Production.INFO: ProcessCDR(1,14437455,1,1,2) [2025-02-09 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437455', 'tblTempUsageDetail_20' ) start [2025-02-09 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437455', 'tblTempUsageDetail_20' ) end [2025-02-09 13:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:46:21] Production.INFO: ==1579== Releasing lock... [2025-02-09 13:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:46:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:47:05 [end_date_ymd] => 2025-02-09 13:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:47:05' and `end` < '2025-02-09 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-02-09 13:47:18] Production.INFO: count ==1518 [2025-02-09 13:47:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:47:05 - End Time 2025-02-09 13:47:05 [2025-02-09 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437460', 'tblTempUsageDetail_20' ) start [2025-02-09 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437460', 'tblTempUsageDetail_20' ) end [2025-02-09 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437460', 'tblTempVendorCDR_20' ) start [2025-02-09 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437460', 'tblTempVendorCDR_20' ) end [2025-02-09 13:47:19] Production.INFO: ProcessCDR(1,14437460,1,1,2) [2025-02-09 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437460', 'tblTempUsageDetail_20' ) start [2025-02-09 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437460', 'tblTempUsageDetail_20' ) end [2025-02-09 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:47:22] Production.INFO: ==1661== Releasing lock... [2025-02-09 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:47:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:48:05 [end_date_ymd] => 2025-02-09 13:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:48:05' and `end` < '2025-02-09 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-02-09 13:48:18] Production.INFO: count ==1518 [2025-02-09 13:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:48:05 - End Time 2025-02-09 13:48:05 [2025-02-09 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437465', 'tblTempUsageDetail_20' ) start [2025-02-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437465', 'tblTempUsageDetail_20' ) end [2025-02-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437465', 'tblTempVendorCDR_20' ) start [2025-02-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437465', 'tblTempVendorCDR_20' ) end [2025-02-09 13:48:18] Production.INFO: ProcessCDR(1,14437465,1,1,2) [2025-02-09 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437465', 'tblTempUsageDetail_20' ) start [2025-02-09 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437465', 'tblTempUsageDetail_20' ) end [2025-02-09 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:48:22] Production.INFO: ==1749== Releasing lock... [2025-02-09 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:49:05 [end_date_ymd] => 2025-02-09 13:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:49:05' and `end` < '2025-02-09 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:49:18] Production.INFO: count ==1518 [2025-02-09 13:49:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:49:05 - End Time 2025-02-09 13:49:05 [2025-02-09 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437470', 'tblTempUsageDetail_20' ) start [2025-02-09 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437470', 'tblTempUsageDetail_20' ) end [2025-02-09 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437470', 'tblTempVendorCDR_20' ) start [2025-02-09 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437470', 'tblTempVendorCDR_20' ) end [2025-02-09 13:49:19] Production.INFO: ProcessCDR(1,14437470,1,1,2) [2025-02-09 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437470', 'tblTempUsageDetail_20' ) start [2025-02-09 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437470', 'tblTempUsageDetail_20' ) end [2025-02-09 13:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:49:23] Production.INFO: ==1837== Releasing lock... [2025-02-09 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:49:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:50:05 [end_date_ymd] => 2025-02-09 13:50:05 [RateCDR] => 1 ) [2025-02-09 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:50:05' and `end` < '2025-02-09 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:50:18] Production.INFO: count ==1518 [2025-02-09 13:50:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:50:05 - End Time 2025-02-09 13:50:05 [2025-02-09 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437476', 'tblTempUsageDetail_20' ) start [2025-02-09 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437476', 'tblTempUsageDetail_20' ) end [2025-02-09 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437476', 'tblTempVendorCDR_20' ) start [2025-02-09 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437476', 'tblTempVendorCDR_20' ) end [2025-02-09 13:50:19] Production.INFO: ProcessCDR(1,14437476,1,1,2) [2025-02-09 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437476', 'tblTempUsageDetail_20' ) start [2025-02-09 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437476', 'tblTempUsageDetail_20' ) end [2025-02-09 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:50:22] Production.INFO: ==1923== Releasing lock... [2025-02-09 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:51:05 [end_date_ymd] => 2025-02-09 13:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:51:05' and `end` < '2025-02-09 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-02-09 13:51:18] Production.INFO: count ==1529 [2025-02-09 13:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:51:05 - End Time 2025-02-09 13:51:05 [2025-02-09 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437481', 'tblTempUsageDetail_20' ) start [2025-02-09 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437481', 'tblTempUsageDetail_20' ) end [2025-02-09 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437481', 'tblTempVendorCDR_20' ) start [2025-02-09 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437481', 'tblTempVendorCDR_20' ) end [2025-02-09 13:51:18] Production.INFO: ProcessCDR(1,14437481,1,1,2) [2025-02-09 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437481', 'tblTempUsageDetail_20' ) start [2025-02-09 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437481', 'tblTempUsageDetail_20' ) end [2025-02-09 13:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:51:21] Production.INFO: ==2011== Releasing lock... [2025-02-09 13:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:51:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:52:06 [end_date_ymd] => 2025-02-09 13:52:06 [RateCDR] => 1 ) [2025-02-09 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:52:06' and `end` < '2025-02-09 13: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-02-09 13:52:20] Production.INFO: count ==1530 [2025-02-09 13:52:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:52:06 - End Time 2025-02-09 13:52:06 [2025-02-09 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437486', 'tblTempUsageDetail_20' ) start [2025-02-09 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437486', 'tblTempUsageDetail_20' ) end [2025-02-09 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437486', 'tblTempVendorCDR_20' ) start [2025-02-09 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437486', 'tblTempVendorCDR_20' ) end [2025-02-09 13:52:20] Production.INFO: ProcessCDR(1,14437486,1,1,2) [2025-02-09 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437486', 'tblTempUsageDetail_20' ) start [2025-02-09 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437486', 'tblTempUsageDetail_20' ) end [2025-02-09 13:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:52:25] Production.INFO: ==2097== Releasing lock... [2025-02-09 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:52:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:53:05 [end_date_ymd] => 2025-02-09 13:53:05 [RateCDR] => 1 ) [2025-02-09 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:53:05' and `end` < '2025-02-09 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:53:18] Production.INFO: count ==1536 [2025-02-09 13:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:53:05 - End Time 2025-02-09 13:53:05 [2025-02-09 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437491', 'tblTempUsageDetail_20' ) start [2025-02-09 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437491', 'tblTempUsageDetail_20' ) end [2025-02-09 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437491', 'tblTempVendorCDR_20' ) start [2025-02-09 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437491', 'tblTempVendorCDR_20' ) end [2025-02-09 13:53:18] Production.INFO: ProcessCDR(1,14437491,1,1,2) [2025-02-09 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437491', 'tblTempUsageDetail_20' ) start [2025-02-09 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437491', 'tblTempUsageDetail_20' ) end [2025-02-09 13:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:53:21] Production.INFO: ==2182== Releasing lock... [2025-02-09 13:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:53:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:54:06 [end_date_ymd] => 2025-02-09 13:54:06 [RateCDR] => 1 ) [2025-02-09 13: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-02-09 10:54:06' and `end` < '2025-02-09 13: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-02-09 13:54:19] Production.INFO: count ==1538 [2025-02-09 13:54:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:54:06 - End Time 2025-02-09 13:54:06 [2025-02-09 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437496', 'tblTempUsageDetail_20' ) start [2025-02-09 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437496', 'tblTempUsageDetail_20' ) end [2025-02-09 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437496', 'tblTempVendorCDR_20' ) start [2025-02-09 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437496', 'tblTempVendorCDR_20' ) end [2025-02-09 13:54:19] Production.INFO: ProcessCDR(1,14437496,1,1,2) [2025-02-09 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437496', 'tblTempUsageDetail_20' ) start [2025-02-09 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437496', 'tblTempUsageDetail_20' ) end [2025-02-09 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:54:22] Production.INFO: ==2280== Releasing lock... [2025-02-09 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:55:05 [end_date_ymd] => 2025-02-09 13:55:05 [RateCDR] => 1 ) [2025-02-09 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:55:05' and `end` < '2025-02-09 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:55:18] Production.INFO: count ==1538 [2025-02-09 13:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:55:05 - End Time 2025-02-09 13:55:05 [2025-02-09 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437501', 'tblTempUsageDetail_20' ) start [2025-02-09 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437501', 'tblTempUsageDetail_20' ) end [2025-02-09 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437501', 'tblTempVendorCDR_20' ) start [2025-02-09 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437501', 'tblTempVendorCDR_20' ) end [2025-02-09 13:55:18] Production.INFO: ProcessCDR(1,14437501,1,1,2) [2025-02-09 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437501', 'tblTempUsageDetail_20' ) start [2025-02-09 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437501', 'tblTempUsageDetail_20' ) end [2025-02-09 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:55:23] Production.INFO: ==2367== Releasing lock... [2025-02-09 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:55:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:56:05 [end_date_ymd] => 2025-02-09 13:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:56:05' and `end` < '2025-02-09 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-02-09 13:56:19] Production.INFO: count ==1532 [2025-02-09 13:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:56:05 - End Time 2025-02-09 13:56:05 [2025-02-09 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437506', 'tblTempUsageDetail_20' ) start [2025-02-09 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437506', 'tblTempUsageDetail_20' ) end [2025-02-09 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437506', 'tblTempVendorCDR_20' ) start [2025-02-09 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437506', 'tblTempVendorCDR_20' ) end [2025-02-09 13:56:19] Production.INFO: ProcessCDR(1,14437506,1,1,2) [2025-02-09 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437506', 'tblTempUsageDetail_20' ) start [2025-02-09 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437506', 'tblTempUsageDetail_20' ) end [2025-02-09 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:56:24] Production.INFO: ==2450== Releasing lock... [2025-02-09 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:56:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:57:04 [end_date_ymd] => 2025-02-09 13:57:04 [RateCDR] => 1 ) [2025-02-09 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:57:04' and `end` < '2025-02-09 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:57:18] Production.INFO: count ==1531 [2025-02-09 13:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 10:57:04 - End Time 2025-02-09 13:57:04 [2025-02-09 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437511', 'tblTempUsageDetail_20' ) start [2025-02-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437511', 'tblTempUsageDetail_20' ) end [2025-02-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437511', 'tblTempVendorCDR_20' ) start [2025-02-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437511', 'tblTempVendorCDR_20' ) end [2025-02-09 13:57:18] Production.INFO: ProcessCDR(1,14437511,1,1,2) [2025-02-09 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437511', 'tblTempUsageDetail_20' ) start [2025-02-09 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437511', 'tblTempUsageDetail_20' ) end [2025-02-09 13:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:57:22] Production.INFO: ==2537== Releasing lock... [2025-02-09 13:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:57:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:58:05 [end_date_ymd] => 2025-02-09 13:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 10:58:05' and `end` < '2025-02-09 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-02-09 13:58:19] Production.INFO: count ==1534 [2025-02-09 13:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 10:58:05 - End Time 2025-02-09 13:58:05 [2025-02-09 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437516', 'tblTempUsageDetail_20' ) start [2025-02-09 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437516', 'tblTempUsageDetail_20' ) end [2025-02-09 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437516', 'tblTempVendorCDR_20' ) start [2025-02-09 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437516', 'tblTempVendorCDR_20' ) end [2025-02-09 13:58:19] Production.INFO: ProcessCDR(1,14437516,1,1,2) [2025-02-09 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437516', 'tblTempUsageDetail_20' ) start [2025-02-09 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437516', 'tblTempUsageDetail_20' ) end [2025-02-09 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:58:22] Production.INFO: ==2623== Releasing lock... [2025-02-09 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:58:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 10:59:05 [end_date_ymd] => 2025-02-09 13:59:05 [RateCDR] => 1 ) [2025-02-09 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 10:59:05' and `end` < '2025-02-09 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 13:59:19] Production.INFO: count ==1538 [2025-02-09 13:59:20] Production.ERROR: pbx CDR StartTime 2025-02-09 10:59:05 - End Time 2025-02-09 13:59:05 [2025-02-09 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437521', 'tblTempUsageDetail_20' ) start [2025-02-09 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437521', 'tblTempUsageDetail_20' ) end [2025-02-09 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437521', 'tblTempVendorCDR_20' ) start [2025-02-09 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437521', 'tblTempVendorCDR_20' ) end [2025-02-09 13:59:20] Production.INFO: ProcessCDR(1,14437521,1,1,2) [2025-02-09 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437521', 'tblTempUsageDetail_20' ) start [2025-02-09 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437521', 'tblTempUsageDetail_20' ) end [2025-02-09 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 13:59:23] Production.INFO: ==2710== Releasing lock... [2025-02-09 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 13:59:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:00:06 [end_date_ymd] => 2025-02-09 14:00:06 [RateCDR] => 1 ) [2025-02-09 14: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-02-09 11:00:06' and `end` < '2025-02-09 14: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-02-09 14:00:19] Production.INFO: count ==1540 [2025-02-09 14:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:00:06 - End Time 2025-02-09 14:00:06 [2025-02-09 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437527', 'tblTempUsageDetail_20' ) start [2025-02-09 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437527', 'tblTempUsageDetail_20' ) end [2025-02-09 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437527', 'tblTempVendorCDR_20' ) start [2025-02-09 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437527', 'tblTempVendorCDR_20' ) end [2025-02-09 14:00:20] Production.INFO: ProcessCDR(1,14437527,1,1,2) [2025-02-09 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437527', 'tblTempUsageDetail_20' ) start [2025-02-09 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437527', 'tblTempUsageDetail_20' ) end [2025-02-09 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:00:24] Production.INFO: ==2800== Releasing lock... [2025-02-09 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:00:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:01:05 [end_date_ymd] => 2025-02-09 14:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:01:05' and `end` < '2025-02-09 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-02-09 14:01:18] Production.INFO: count ==1573 [2025-02-09 14:01:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:01:05 - End Time 2025-02-09 14:01:05 [2025-02-09 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437532', 'tblTempUsageDetail_20' ) start [2025-02-09 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437532', 'tblTempUsageDetail_20' ) end [2025-02-09 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437532', 'tblTempVendorCDR_20' ) start [2025-02-09 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437532', 'tblTempVendorCDR_20' ) end [2025-02-09 14:01:18] Production.INFO: ProcessCDR(1,14437532,1,1,2) [2025-02-09 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437532', 'tblTempUsageDetail_20' ) start [2025-02-09 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437532', 'tblTempUsageDetail_20' ) end [2025-02-09 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:01:22] Production.INFO: ==2940== Releasing lock... [2025-02-09 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:01:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:02:05 [end_date_ymd] => 2025-02-09 14:02:05 [RateCDR] => 1 ) [2025-02-09 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:02:05' and `end` < '2025-02-09 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:02:19] Production.INFO: count ==1585 [2025-02-09 14:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:02:05 - End Time 2025-02-09 14:02:05 [2025-02-09 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437537', 'tblTempUsageDetail_20' ) start [2025-02-09 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437537', 'tblTempUsageDetail_20' ) end [2025-02-09 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437537', 'tblTempVendorCDR_20' ) start [2025-02-09 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437537', 'tblTempVendorCDR_20' ) end [2025-02-09 14:02:19] Production.INFO: ProcessCDR(1,14437537,1,1,2) [2025-02-09 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437537', 'tblTempUsageDetail_20' ) start [2025-02-09 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437537', 'tblTempUsageDetail_20' ) end [2025-02-09 14:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:02:24] Production.INFO: ==3028== Releasing lock... [2025-02-09 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:02:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-09 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:03:05 [end_date_ymd] => 2025-02-09 14:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:03:05' and `end` < '2025-02-09 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-02-09 14:03:18] Production.INFO: count ==1589 [2025-02-09 14:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:03:05 - End Time 2025-02-09 14:03:05 [2025-02-09 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437542', 'tblTempUsageDetail_20' ) start [2025-02-09 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437542', 'tblTempUsageDetail_20' ) end [2025-02-09 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437542', 'tblTempVendorCDR_20' ) start [2025-02-09 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437542', 'tblTempVendorCDR_20' ) end [2025-02-09 14:03:18] Production.INFO: ProcessCDR(1,14437542,1,1,2) [2025-02-09 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437542', 'tblTempUsageDetail_20' ) start [2025-02-09 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437542', 'tblTempUsageDetail_20' ) end [2025-02-09 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:03:23] Production.INFO: ==3117== Releasing lock... [2025-02-09 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:03:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-09 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:04:05 [end_date_ymd] => 2025-02-09 14:04:05 [RateCDR] => 1 ) [2025-02-09 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:04:05' and `end` < '2025-02-09 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:04:18] Production.INFO: count ==1589 [2025-02-09 14:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:04:05 - End Time 2025-02-09 14:04:05 [2025-02-09 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437547', 'tblTempUsageDetail_20' ) start [2025-02-09 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437547', 'tblTempUsageDetail_20' ) end [2025-02-09 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437547', 'tblTempVendorCDR_20' ) start [2025-02-09 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437547', 'tblTempVendorCDR_20' ) end [2025-02-09 14:04:19] Production.INFO: ProcessCDR(1,14437547,1,1,2) [2025-02-09 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437547', 'tblTempUsageDetail_20' ) start [2025-02-09 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437547', 'tblTempUsageDetail_20' ) end [2025-02-09 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:04:22] Production.INFO: ==3206== Releasing lock... [2025-02-09 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:04:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-09 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:05:04 [end_date_ymd] => 2025-02-09 14:05:04 [RateCDR] => 1 ) [2025-02-09 14: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-02-09 11:05:04' and `end` < '2025-02-09 14: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-02-09 14:05:18] Production.INFO: count ==1585 [2025-02-09 14:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:05:04 - End Time 2025-02-09 14:05:04 [2025-02-09 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437552', 'tblTempUsageDetail_20' ) start [2025-02-09 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437552', 'tblTempUsageDetail_20' ) end [2025-02-09 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437552', 'tblTempVendorCDR_20' ) start [2025-02-09 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437552', 'tblTempVendorCDR_20' ) end [2025-02-09 14:05:19] Production.INFO: ProcessCDR(1,14437552,1,1,2) [2025-02-09 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437552', 'tblTempUsageDetail_20' ) start [2025-02-09 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437552', 'tblTempUsageDetail_20' ) end [2025-02-09 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:05:22] Production.INFO: ==3293== Releasing lock... [2025-02-09 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:05:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-09 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:06:05 [end_date_ymd] => 2025-02-09 14:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:06:05' and `end` < '2025-02-09 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-02-09 14:06:20] Production.INFO: count ==1581 [2025-02-09 14:06:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:06:05 - End Time 2025-02-09 14:06:05 [2025-02-09 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437557', 'tblTempUsageDetail_20' ) start [2025-02-09 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437557', 'tblTempUsageDetail_20' ) end [2025-02-09 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437557', 'tblTempVendorCDR_20' ) start [2025-02-09 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437557', 'tblTempVendorCDR_20' ) end [2025-02-09 14:06:20] Production.INFO: ProcessCDR(1,14437557,1,1,2) [2025-02-09 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437557', 'tblTempUsageDetail_20' ) start [2025-02-09 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437557', 'tblTempUsageDetail_20' ) end [2025-02-09 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:06:25] Production.INFO: ==3379== Releasing lock... [2025-02-09 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:06:25] Production.INFO: 40 MB #Memory Used# [2025-02-09 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:07:05 [end_date_ymd] => 2025-02-09 14:07:05 [RateCDR] => 1 ) [2025-02-09 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:07:05' and `end` < '2025-02-09 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:07:18] Production.INFO: count ==1565 [2025-02-09 14:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:07:05 - End Time 2025-02-09 14:07:05 [2025-02-09 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437562', 'tblTempUsageDetail_20' ) start [2025-02-09 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437562', 'tblTempUsageDetail_20' ) end [2025-02-09 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437562', 'tblTempVendorCDR_20' ) start [2025-02-09 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437562', 'tblTempVendorCDR_20' ) end [2025-02-09 14:07:19] Production.INFO: ProcessCDR(1,14437562,1,1,2) [2025-02-09 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437562', 'tblTempUsageDetail_20' ) start [2025-02-09 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437562', 'tblTempUsageDetail_20' ) end [2025-02-09 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:07:22] Production.INFO: ==3468== Releasing lock... [2025-02-09 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:07:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:08:05 [end_date_ymd] => 2025-02-09 14:08:05 [RateCDR] => 1 ) [2025-02-09 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:08:05' and `end` < '2025-02-09 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:08:19] Production.INFO: count ==1560 [2025-02-09 14:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:08:05 - End Time 2025-02-09 14:08:05 [2025-02-09 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437567', 'tblTempUsageDetail_20' ) start [2025-02-09 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437567', 'tblTempUsageDetail_20' ) end [2025-02-09 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437567', 'tblTempVendorCDR_20' ) start [2025-02-09 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437567', 'tblTempVendorCDR_20' ) end [2025-02-09 14:08:19] Production.INFO: ProcessCDR(1,14437567,1,1,2) [2025-02-09 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437567', 'tblTempUsageDetail_20' ) start [2025-02-09 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437567', 'tblTempUsageDetail_20' ) end [2025-02-09 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:08:22] Production.INFO: ==3559== Releasing lock... [2025-02-09 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:08:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:09:05 [end_date_ymd] => 2025-02-09 14:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:09:05' and `end` < '2025-02-09 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-02-09 14:09:19] Production.INFO: count ==1560 [2025-02-09 14:09:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:09:05 - End Time 2025-02-09 14:09:05 [2025-02-09 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437572', 'tblTempUsageDetail_20' ) start [2025-02-09 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437572', 'tblTempUsageDetail_20' ) end [2025-02-09 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437572', 'tblTempVendorCDR_20' ) start [2025-02-09 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437572', 'tblTempVendorCDR_20' ) end [2025-02-09 14:09:20] Production.INFO: ProcessCDR(1,14437572,1,1,2) [2025-02-09 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437572', 'tblTempUsageDetail_20' ) start [2025-02-09 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437572', 'tblTempUsageDetail_20' ) end [2025-02-09 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:09:23] Production.INFO: ==3646== Releasing lock... [2025-02-09 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:09:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:10:05 [end_date_ymd] => 2025-02-09 14:10:05 [RateCDR] => 1 ) [2025-02-09 14:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:10:05' and `end` < '2025-02-09 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:10:18] Production.INFO: count ==1560 [2025-02-09 14:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:10:05 - End Time 2025-02-09 14:10:05 [2025-02-09 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437577', 'tblTempUsageDetail_20' ) start [2025-02-09 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437577', 'tblTempUsageDetail_20' ) end [2025-02-09 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437577', 'tblTempVendorCDR_20' ) start [2025-02-09 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437577', 'tblTempVendorCDR_20' ) end [2025-02-09 14:10:19] Production.INFO: ProcessCDR(1,14437577,1,1,2) [2025-02-09 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437577', 'tblTempUsageDetail_20' ) start [2025-02-09 14:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437577', 'tblTempUsageDetail_20' ) end [2025-02-09 14:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:10:22] Production.INFO: ==3719== Releasing lock... [2025-02-09 14:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:10:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:11:05 [end_date_ymd] => 2025-02-09 14:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:11:05' and `end` < '2025-02-09 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-02-09 14:11:18] Production.INFO: count ==1552 [2025-02-09 14:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:11:05 - End Time 2025-02-09 14:11:05 [2025-02-09 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437583', 'tblTempUsageDetail_20' ) start [2025-02-09 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437583', 'tblTempUsageDetail_20' ) end [2025-02-09 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437583', 'tblTempVendorCDR_20' ) start [2025-02-09 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437583', 'tblTempVendorCDR_20' ) end [2025-02-09 14:11:19] Production.INFO: ProcessCDR(1,14437583,1,1,2) [2025-02-09 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437583', 'tblTempUsageDetail_20' ) start [2025-02-09 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437583', 'tblTempUsageDetail_20' ) end [2025-02-09 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:11:22] Production.INFO: ==3794== Releasing lock... [2025-02-09 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:11:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:12:04 [end_date_ymd] => 2025-02-09 14:12:04 [RateCDR] => 1 ) [2025-02-09 14: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-02-09 11:12:04' and `end` < '2025-02-09 14: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-02-09 14:12:17] Production.INFO: count ==1545 [2025-02-09 14:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:12:04 - End Time 2025-02-09 14:12:04 [2025-02-09 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437588', 'tblTempUsageDetail_20' ) start [2025-02-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437588', 'tblTempUsageDetail_20' ) end [2025-02-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437588', 'tblTempVendorCDR_20' ) start [2025-02-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437588', 'tblTempVendorCDR_20' ) end [2025-02-09 14:12:18] Production.INFO: ProcessCDR(1,14437588,1,1,2) [2025-02-09 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437588', 'tblTempUsageDetail_20' ) start [2025-02-09 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437588', 'tblTempUsageDetail_20' ) end [2025-02-09 14:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:12:21] Production.INFO: ==3869== Releasing lock... [2025-02-09 14:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:12:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:13:05 [end_date_ymd] => 2025-02-09 14:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:13:05' and `end` < '2025-02-09 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-02-09 14:13:18] Production.INFO: count ==1536 [2025-02-09 14:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:13:05 - End Time 2025-02-09 14:13:05 [2025-02-09 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437593', 'tblTempUsageDetail_20' ) start [2025-02-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437593', 'tblTempUsageDetail_20' ) end [2025-02-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437593', 'tblTempVendorCDR_20' ) start [2025-02-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437593', 'tblTempVendorCDR_20' ) end [2025-02-09 14:13:18] Production.INFO: ProcessCDR(1,14437593,1,1,2) [2025-02-09 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437593', 'tblTempUsageDetail_20' ) start [2025-02-09 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437593', 'tblTempUsageDetail_20' ) end [2025-02-09 14:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:13:21] Production.INFO: ==3948== Releasing lock... [2025-02-09 14:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:13:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:14:05 [end_date_ymd] => 2025-02-09 14:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:14:05' and `end` < '2025-02-09 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-02-09 14:14:18] Production.INFO: count ==1534 [2025-02-09 14:14:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:14:05 - End Time 2025-02-09 14:14:05 [2025-02-09 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437598', 'tblTempUsageDetail_20' ) start [2025-02-09 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437598', 'tblTempUsageDetail_20' ) end [2025-02-09 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437598', 'tblTempVendorCDR_20' ) start [2025-02-09 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437598', 'tblTempVendorCDR_20' ) end [2025-02-09 14:14:19] Production.INFO: ProcessCDR(1,14437598,1,1,2) [2025-02-09 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437598', 'tblTempUsageDetail_20' ) start [2025-02-09 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437598', 'tblTempUsageDetail_20' ) end [2025-02-09 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:14:22] Production.INFO: ==4020== Releasing lock... [2025-02-09 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:14:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:15:05 [end_date_ymd] => 2025-02-09 14:15:05 [RateCDR] => 1 ) [2025-02-09 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:15:05' and `end` < '2025-02-09 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:15:18] Production.INFO: count ==1538 [2025-02-09 14:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:15:05 - End Time 2025-02-09 14:15:05 [2025-02-09 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437603', 'tblTempUsageDetail_20' ) start [2025-02-09 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437603', 'tblTempUsageDetail_20' ) end [2025-02-09 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437603', 'tblTempVendorCDR_20' ) start [2025-02-09 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437603', 'tblTempVendorCDR_20' ) end [2025-02-09 14:15:18] Production.INFO: ProcessCDR(1,14437603,1,1,2) [2025-02-09 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437603', 'tblTempUsageDetail_20' ) start [2025-02-09 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437603', 'tblTempUsageDetail_20' ) end [2025-02-09 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:15:22] Production.INFO: ==4100== Releasing lock... [2025-02-09 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:15:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:16:05 [end_date_ymd] => 2025-02-09 14:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:16:05' and `end` < '2025-02-09 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-02-09 14:16:18] Production.INFO: count ==1541 [2025-02-09 14:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:16:05 - End Time 2025-02-09 14:16:05 [2025-02-09 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437608', 'tblTempUsageDetail_20' ) start [2025-02-09 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437608', 'tblTempUsageDetail_20' ) end [2025-02-09 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437608', 'tblTempVendorCDR_20' ) start [2025-02-09 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437608', 'tblTempVendorCDR_20' ) end [2025-02-09 14:16:19] Production.INFO: ProcessCDR(1,14437608,1,1,2) [2025-02-09 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437608', 'tblTempUsageDetail_20' ) start [2025-02-09 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437608', 'tblTempUsageDetail_20' ) end [2025-02-09 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:16:22] Production.INFO: ==4213== Releasing lock... [2025-02-09 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:17:05 [end_date_ymd] => 2025-02-09 14:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:17:05' and `end` < '2025-02-09 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-02-09 14:17:18] Production.INFO: count ==1544 [2025-02-09 14:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:17:05 - End Time 2025-02-09 14:17:05 [2025-02-09 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437613', 'tblTempUsageDetail_20' ) start [2025-02-09 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437613', 'tblTempUsageDetail_20' ) end [2025-02-09 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437613', 'tblTempVendorCDR_20' ) start [2025-02-09 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437613', 'tblTempVendorCDR_20' ) end [2025-02-09 14:17:18] Production.INFO: ProcessCDR(1,14437613,1,1,2) [2025-02-09 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437613', 'tblTempUsageDetail_20' ) start [2025-02-09 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437613', 'tblTempUsageDetail_20' ) end [2025-02-09 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:17:23] Production.INFO: ==4284== Releasing lock... [2025-02-09 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:17:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:18:05 [end_date_ymd] => 2025-02-09 14:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:18:05' and `end` < '2025-02-09 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-02-09 14:18:18] Production.INFO: count ==1548 [2025-02-09 14:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:18:05 - End Time 2025-02-09 14:18:05 [2025-02-09 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437618', 'tblTempUsageDetail_20' ) start [2025-02-09 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437618', 'tblTempUsageDetail_20' ) end [2025-02-09 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437618', 'tblTempVendorCDR_20' ) start [2025-02-09 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437618', 'tblTempVendorCDR_20' ) end [2025-02-09 14:18:19] Production.INFO: ProcessCDR(1,14437618,1,1,2) [2025-02-09 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437618', 'tblTempUsageDetail_20' ) start [2025-02-09 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437618', 'tblTempUsageDetail_20' ) end [2025-02-09 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:18:24] Production.INFO: ==4356== Releasing lock... [2025-02-09 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:18:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:19:05 [end_date_ymd] => 2025-02-09 14:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:19:05' and `end` < '2025-02-09 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-02-09 14:19:18] Production.INFO: count ==1553 [2025-02-09 14:19:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:19:05 - End Time 2025-02-09 14:19:05 [2025-02-09 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437623', 'tblTempUsageDetail_20' ) start [2025-02-09 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437623', 'tblTempUsageDetail_20' ) end [2025-02-09 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437623', 'tblTempVendorCDR_20' ) start [2025-02-09 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437623', 'tblTempVendorCDR_20' ) end [2025-02-09 14:19:19] Production.INFO: ProcessCDR(1,14437623,1,1,2) [2025-02-09 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437623', 'tblTempUsageDetail_20' ) start [2025-02-09 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437623', 'tblTempUsageDetail_20' ) end [2025-02-09 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:19:22] Production.INFO: ==4430== Releasing lock... [2025-02-09 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:19:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:20:06 [end_date_ymd] => 2025-02-09 14:20:06 [RateCDR] => 1 ) [2025-02-09 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:20:06' and `end` < '2025-02-09 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:20:20] Production.INFO: count ==1539 [2025-02-09 14:20:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:20:06 - End Time 2025-02-09 14:20:06 [2025-02-09 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437629', 'tblTempUsageDetail_20' ) start [2025-02-09 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437629', 'tblTempUsageDetail_20' ) end [2025-02-09 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437629', 'tblTempVendorCDR_20' ) start [2025-02-09 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437629', 'tblTempVendorCDR_20' ) end [2025-02-09 14:20:20] Production.INFO: ProcessCDR(1,14437629,1,1,2) [2025-02-09 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437629', 'tblTempUsageDetail_20' ) start [2025-02-09 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437629', 'tblTempUsageDetail_20' ) end [2025-02-09 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:20:23] Production.INFO: ==4503== Releasing lock... [2025-02-09 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:20:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:21:05 [end_date_ymd] => 2025-02-09 14:21:05 [RateCDR] => 1 ) [2025-02-09 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:21:05' and `end` < '2025-02-09 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:21:18] Production.INFO: count ==1520 [2025-02-09 14:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:21:05 - End Time 2025-02-09 14:21:05 [2025-02-09 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437634', 'tblTempUsageDetail_20' ) start [2025-02-09 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437634', 'tblTempUsageDetail_20' ) end [2025-02-09 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437634', 'tblTempVendorCDR_20' ) start [2025-02-09 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437634', 'tblTempVendorCDR_20' ) end [2025-02-09 14:21:19] Production.INFO: ProcessCDR(1,14437634,1,1,2) [2025-02-09 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437634', 'tblTempUsageDetail_20' ) start [2025-02-09 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437634', 'tblTempUsageDetail_20' ) end [2025-02-09 14:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:21:22] Production.INFO: ==4591== Releasing lock... [2025-02-09 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:21:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:22:05 [end_date_ymd] => 2025-02-09 14:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:22:05' and `end` < '2025-02-09 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-02-09 14:22:18] Production.INFO: count ==1526 [2025-02-09 14:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:22:05 - End Time 2025-02-09 14:22:05 [2025-02-09 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437639', 'tblTempUsageDetail_20' ) start [2025-02-09 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437639', 'tblTempUsageDetail_20' ) end [2025-02-09 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437639', 'tblTempVendorCDR_20' ) start [2025-02-09 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437639', 'tblTempVendorCDR_20' ) end [2025-02-09 14:22:19] Production.INFO: ProcessCDR(1,14437639,1,1,2) [2025-02-09 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437639', 'tblTempUsageDetail_20' ) start [2025-02-09 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437639', 'tblTempUsageDetail_20' ) end [2025-02-09 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:22:22] Production.INFO: ==4666== Releasing lock... [2025-02-09 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:23:04 [end_date_ymd] => 2025-02-09 14:23:04 [RateCDR] => 1 ) [2025-02-09 14:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:23:04' and `end` < '2025-02-09 14:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:23:18] Production.INFO: count ==1528 [2025-02-09 14:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:23:04 - End Time 2025-02-09 14:23:04 [2025-02-09 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437644', 'tblTempUsageDetail_20' ) start [2025-02-09 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437644', 'tblTempUsageDetail_20' ) end [2025-02-09 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437644', 'tblTempVendorCDR_20' ) start [2025-02-09 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437644', 'tblTempVendorCDR_20' ) end [2025-02-09 14:23:18] Production.INFO: ProcessCDR(1,14437644,1,1,2) [2025-02-09 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437644', 'tblTempUsageDetail_20' ) start [2025-02-09 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437644', 'tblTempUsageDetail_20' ) end [2025-02-09 14:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:23:21] Production.INFO: ==4761== Releasing lock... [2025-02-09 14:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:23:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:24:05 [end_date_ymd] => 2025-02-09 14:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:24:05' and `end` < '2025-02-09 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-02-09 14:24:18] Production.INFO: count ==1527 [2025-02-09 14:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:24:05 - End Time 2025-02-09 14:24:05 [2025-02-09 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437649', 'tblTempUsageDetail_20' ) start [2025-02-09 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437649', 'tblTempUsageDetail_20' ) end [2025-02-09 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437649', 'tblTempVendorCDR_20' ) start [2025-02-09 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437649', 'tblTempVendorCDR_20' ) end [2025-02-09 14:24:19] Production.INFO: ProcessCDR(1,14437649,1,1,2) [2025-02-09 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437649', 'tblTempUsageDetail_20' ) start [2025-02-09 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437649', 'tblTempUsageDetail_20' ) end [2025-02-09 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:24:22] Production.INFO: ==4834== Releasing lock... [2025-02-09 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:24:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:25:04 [end_date_ymd] => 2025-02-09 14:25:04 [RateCDR] => 1 ) [2025-02-09 14:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:25:04' and `end` < '2025-02-09 14:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:25:18] Production.INFO: count ==1527 [2025-02-09 14:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:25:04 - End Time 2025-02-09 14:25:04 [2025-02-09 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437654', 'tblTempUsageDetail_20' ) start [2025-02-09 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437654', 'tblTempUsageDetail_20' ) end [2025-02-09 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437654', 'tblTempVendorCDR_20' ) start [2025-02-09 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437654', 'tblTempVendorCDR_20' ) end [2025-02-09 14:25:18] Production.INFO: ProcessCDR(1,14437654,1,1,2) [2025-02-09 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437654', 'tblTempUsageDetail_20' ) start [2025-02-09 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437654', 'tblTempUsageDetail_20' ) end [2025-02-09 14:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:25:21] Production.INFO: ==4910== Releasing lock... [2025-02-09 14:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:25:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:26:05 [end_date_ymd] => 2025-02-09 14:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:26:05' and `end` < '2025-02-09 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-02-09 14:26:18] Production.INFO: count ==1527 [2025-02-09 14:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:26:05 - End Time 2025-02-09 14:26:05 [2025-02-09 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437659', 'tblTempUsageDetail_20' ) start [2025-02-09 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437659', 'tblTempUsageDetail_20' ) end [2025-02-09 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437659', 'tblTempVendorCDR_20' ) start [2025-02-09 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437659', 'tblTempVendorCDR_20' ) end [2025-02-09 14:26:19] Production.INFO: ProcessCDR(1,14437659,1,1,2) [2025-02-09 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437659', 'tblTempUsageDetail_20' ) start [2025-02-09 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437659', 'tblTempUsageDetail_20' ) end [2025-02-09 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:26:22] Production.INFO: ==4985== Releasing lock... [2025-02-09 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:26:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:27:06 [end_date_ymd] => 2025-02-09 14:27:06 [RateCDR] => 1 ) [2025-02-09 14: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-02-09 11:27:06' and `end` < '2025-02-09 14: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-02-09 14:27:20] Production.INFO: count ==1526 [2025-02-09 14:27:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:27:06 - End Time 2025-02-09 14:27:06 [2025-02-09 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437664', 'tblTempUsageDetail_20' ) start [2025-02-09 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437664', 'tblTempUsageDetail_20' ) end [2025-02-09 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437664', 'tblTempVendorCDR_20' ) start [2025-02-09 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437664', 'tblTempVendorCDR_20' ) end [2025-02-09 14:27:20] Production.INFO: ProcessCDR(1,14437664,1,1,2) [2025-02-09 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437664', 'tblTempUsageDetail_20' ) start [2025-02-09 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437664', 'tblTempUsageDetail_20' ) end [2025-02-09 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:27:23] Production.INFO: ==5058== Releasing lock... [2025-02-09 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:27:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:28:05 [end_date_ymd] => 2025-02-09 14:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:28:05' and `end` < '2025-02-09 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-02-09 14:28:19] Production.INFO: count ==1526 [2025-02-09 14:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:28:05 - End Time 2025-02-09 14:28:05 [2025-02-09 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437669', 'tblTempUsageDetail_20' ) start [2025-02-09 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437669', 'tblTempUsageDetail_20' ) end [2025-02-09 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437669', 'tblTempVendorCDR_20' ) start [2025-02-09 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437669', 'tblTempVendorCDR_20' ) end [2025-02-09 14:28:19] Production.INFO: ProcessCDR(1,14437669,1,1,2) [2025-02-09 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437669', 'tblTempUsageDetail_20' ) start [2025-02-09 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437669', 'tblTempUsageDetail_20' ) end [2025-02-09 14:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:28:22] Production.INFO: ==5133== Releasing lock... [2025-02-09 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:28:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:29:05 [end_date_ymd] => 2025-02-09 14:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:29:05' and `end` < '2025-02-09 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-02-09 14:29:19] Production.INFO: count ==1526 [2025-02-09 14:29:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:29:05 - End Time 2025-02-09 14:29:05 [2025-02-09 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437674', 'tblTempUsageDetail_20' ) start [2025-02-09 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437674', 'tblTempUsageDetail_20' ) end [2025-02-09 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437674', 'tblTempVendorCDR_20' ) start [2025-02-09 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437674', 'tblTempVendorCDR_20' ) end [2025-02-09 14:29:20] Production.INFO: ProcessCDR(1,14437674,1,1,2) [2025-02-09 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437674', 'tblTempUsageDetail_20' ) start [2025-02-09 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437674', 'tblTempUsageDetail_20' ) end [2025-02-09 14:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:29:23] Production.INFO: ==5210== Releasing lock... [2025-02-09 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:29:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:30:06 [end_date_ymd] => 2025-02-09 14:30:06 [RateCDR] => 1 ) [2025-02-09 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:30:06' and `end` < '2025-02-09 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:30:19] Production.INFO: count ==1527 [2025-02-09 14:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:30:06 - End Time 2025-02-09 14:30:06 [2025-02-09 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437680', 'tblTempUsageDetail_20' ) start [2025-02-09 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437680', 'tblTempUsageDetail_20' ) end [2025-02-09 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437680', 'tblTempVendorCDR_20' ) start [2025-02-09 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437680', 'tblTempVendorCDR_20' ) end [2025-02-09 14:30:19] Production.INFO: ProcessCDR(1,14437680,1,1,2) [2025-02-09 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437680', 'tblTempUsageDetail_20' ) start [2025-02-09 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437680', 'tblTempUsageDetail_20' ) end [2025-02-09 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:30:24] Production.INFO: ==5284== Releasing lock... [2025-02-09 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:30:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:31:05 [end_date_ymd] => 2025-02-09 14:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:31:05' and `end` < '2025-02-09 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-02-09 14:31:18] Production.INFO: count ==1533 [2025-02-09 14:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:31:05 - End Time 2025-02-09 14:31:05 [2025-02-09 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437685', 'tblTempUsageDetail_20' ) start [2025-02-09 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437685', 'tblTempUsageDetail_20' ) end [2025-02-09 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437685', 'tblTempVendorCDR_20' ) start [2025-02-09 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437685', 'tblTempVendorCDR_20' ) end [2025-02-09 14:31:18] Production.INFO: ProcessCDR(1,14437685,1,1,2) [2025-02-09 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437685', 'tblTempUsageDetail_20' ) start [2025-02-09 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437685', 'tblTempUsageDetail_20' ) end [2025-02-09 14:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:31:21] Production.INFO: ==5362== Releasing lock... [2025-02-09 14:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:31:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:32:05 [end_date_ymd] => 2025-02-09 14:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:32:05' and `end` < '2025-02-09 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-02-09 14:32:19] Production.INFO: count ==1530 [2025-02-09 14:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:32:05 - End Time 2025-02-09 14:32:05 [2025-02-09 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437690', 'tblTempUsageDetail_20' ) start [2025-02-09 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437690', 'tblTempUsageDetail_20' ) end [2025-02-09 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437690', 'tblTempVendorCDR_20' ) start [2025-02-09 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437690', 'tblTempVendorCDR_20' ) end [2025-02-09 14:32:19] Production.INFO: ProcessCDR(1,14437690,1,1,2) [2025-02-09 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437690', 'tblTempUsageDetail_20' ) start [2025-02-09 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437690', 'tblTempUsageDetail_20' ) end [2025-02-09 14:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:32:22] Production.INFO: ==5481== Releasing lock... [2025-02-09 14:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:32:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:33:05 [end_date_ymd] => 2025-02-09 14:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:33:05' and `end` < '2025-02-09 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-02-09 14:33:19] Production.INFO: count ==1529 [2025-02-09 14:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:33:05 - End Time 2025-02-09 14:33:05 [2025-02-09 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437695', 'tblTempUsageDetail_20' ) start [2025-02-09 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437695', 'tblTempUsageDetail_20' ) end [2025-02-09 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437695', 'tblTempVendorCDR_20' ) start [2025-02-09 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437695', 'tblTempVendorCDR_20' ) end [2025-02-09 14:33:19] Production.INFO: ProcessCDR(1,14437695,1,1,2) [2025-02-09 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437695', 'tblTempUsageDetail_20' ) start [2025-02-09 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437695', 'tblTempUsageDetail_20' ) end [2025-02-09 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:33:22] Production.INFO: ==5557== Releasing lock... [2025-02-09 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:34:05 [end_date_ymd] => 2025-02-09 14:34:05 [RateCDR] => 1 ) [2025-02-09 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:34:05' and `end` < '2025-02-09 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:34:18] Production.INFO: count ==1529 [2025-02-09 14:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:34:05 - End Time 2025-02-09 14:34:05 [2025-02-09 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437700', 'tblTempUsageDetail_20' ) start [2025-02-09 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437700', 'tblTempUsageDetail_20' ) end [2025-02-09 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437700', 'tblTempVendorCDR_20' ) start [2025-02-09 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437700', 'tblTempVendorCDR_20' ) end [2025-02-09 14:34:18] Production.INFO: ProcessCDR(1,14437700,1,1,2) [2025-02-09 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437700', 'tblTempUsageDetail_20' ) start [2025-02-09 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437700', 'tblTempUsageDetail_20' ) end [2025-02-09 14:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:34:21] Production.INFO: ==5629== Releasing lock... [2025-02-09 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:34:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:35:04 [end_date_ymd] => 2025-02-09 14:35:04 [RateCDR] => 1 ) [2025-02-09 14: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-02-09 11:35:04' and `end` < '2025-02-09 14: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-02-09 14:35:17] Production.INFO: count ==1529 [2025-02-09 14:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:35:04 - End Time 2025-02-09 14:35:04 [2025-02-09 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437703', 'tblTempUsageDetail_20' ) start [2025-02-09 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437703', 'tblTempUsageDetail_20' ) end [2025-02-09 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437703', 'tblTempVendorCDR_20' ) start [2025-02-09 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437703', 'tblTempVendorCDR_20' ) end [2025-02-09 14:35:18] Production.INFO: ProcessCDR(1,14437703,1,1,2) [2025-02-09 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437703', 'tblTempUsageDetail_20' ) start [2025-02-09 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437703', 'tblTempUsageDetail_20' ) end [2025-02-09 14:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:35:21] Production.INFO: ==5721== Releasing lock... [2025-02-09 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:35:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:36:05 [end_date_ymd] => 2025-02-09 14:36:05 [RateCDR] => 1 ) [2025-02-09 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:36:05' and `end` < '2025-02-09 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:36:18] Production.INFO: count ==1529 [2025-02-09 14:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:36:05 - End Time 2025-02-09 14:36:05 [2025-02-09 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437710', 'tblTempUsageDetail_20' ) start [2025-02-09 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437710', 'tblTempUsageDetail_20' ) end [2025-02-09 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437710', 'tblTempVendorCDR_20' ) start [2025-02-09 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437710', 'tblTempVendorCDR_20' ) end [2025-02-09 14:36:19] Production.INFO: ProcessCDR(1,14437710,1,1,2) [2025-02-09 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437710', 'tblTempUsageDetail_20' ) start [2025-02-09 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437710', 'tblTempUsageDetail_20' ) end [2025-02-09 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:36:22] Production.INFO: ==5798== Releasing lock... [2025-02-09 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:37:05 [end_date_ymd] => 2025-02-09 14:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:37:05' and `end` < '2025-02-09 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-02-09 14:37:18] Production.INFO: count ==1519 [2025-02-09 14:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:37:05 - End Time 2025-02-09 14:37:05 [2025-02-09 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437711', 'tblTempUsageDetail_20' ) start [2025-02-09 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437711', 'tblTempUsageDetail_20' ) end [2025-02-09 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437711', 'tblTempVendorCDR_20' ) start [2025-02-09 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437711', 'tblTempVendorCDR_20' ) end [2025-02-09 14:37:18] Production.INFO: ProcessCDR(1,14437711,1,1,2) [2025-02-09 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437711', 'tblTempUsageDetail_20' ) start [2025-02-09 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437711', 'tblTempUsageDetail_20' ) end [2025-02-09 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:37:22] Production.INFO: ==5875== Releasing lock... [2025-02-09 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:38:05 [end_date_ymd] => 2025-02-09 14:38:05 [RateCDR] => 1 ) [2025-02-09 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:38:05' and `end` < '2025-02-09 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:38:19] Production.INFO: count ==1519 [2025-02-09 14:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:38:05 - End Time 2025-02-09 14:38:05 [2025-02-09 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437720', 'tblTempUsageDetail_20' ) start [2025-02-09 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437720', 'tblTempUsageDetail_20' ) end [2025-02-09 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437720', 'tblTempVendorCDR_20' ) start [2025-02-09 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437720', 'tblTempVendorCDR_20' ) end [2025-02-09 14:38:19] Production.INFO: ProcessCDR(1,14437720,1,1,2) [2025-02-09 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437720', 'tblTempUsageDetail_20' ) start [2025-02-09 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437720', 'tblTempUsageDetail_20' ) end [2025-02-09 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:38:22] Production.INFO: ==5950== Releasing lock... [2025-02-09 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:39:05 [end_date_ymd] => 2025-02-09 14:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:39:05' and `end` < '2025-02-09 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-02-09 14:39:19] Production.INFO: count ==1518 [2025-02-09 14:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:39:05 - End Time 2025-02-09 14:39:05 [2025-02-09 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437725', 'tblTempUsageDetail_20' ) start [2025-02-09 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437725', 'tblTempUsageDetail_20' ) end [2025-02-09 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437725', 'tblTempVendorCDR_20' ) start [2025-02-09 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437725', 'tblTempVendorCDR_20' ) end [2025-02-09 14:39:19] Production.INFO: ProcessCDR(1,14437725,1,1,2) [2025-02-09 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437725', 'tblTempUsageDetail_20' ) start [2025-02-09 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437725', 'tblTempUsageDetail_20' ) end [2025-02-09 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:39:23] Production.INFO: ==6025== Releasing lock... [2025-02-09 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:39:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:40:06 [end_date_ymd] => 2025-02-09 14:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:40:06' and `end` < '2025-02-09 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-02-09 14:40:19] Production.INFO: count ==1510 [2025-02-09 14:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:40:06 - End Time 2025-02-09 14:40:06 [2025-02-09 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437730', 'tblTempUsageDetail_20' ) start [2025-02-09 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437730', 'tblTempUsageDetail_20' ) end [2025-02-09 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437730', 'tblTempVendorCDR_20' ) start [2025-02-09 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437730', 'tblTempVendorCDR_20' ) end [2025-02-09 14:40:20] Production.INFO: ProcessCDR(1,14437730,1,1,2) [2025-02-09 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437730', 'tblTempUsageDetail_20' ) start [2025-02-09 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437730', 'tblTempUsageDetail_20' ) end [2025-02-09 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:40:23] Production.INFO: ==6101== Releasing lock... [2025-02-09 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:40:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:41:05 [end_date_ymd] => 2025-02-09 14:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:41:05' and `end` < '2025-02-09 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-02-09 14:41:18] Production.INFO: count ==1509 [2025-02-09 14:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:41:05 - End Time 2025-02-09 14:41:05 [2025-02-09 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437736', 'tblTempUsageDetail_20' ) start [2025-02-09 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437736', 'tblTempUsageDetail_20' ) end [2025-02-09 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437736', 'tblTempVendorCDR_20' ) start [2025-02-09 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437736', 'tblTempVendorCDR_20' ) end [2025-02-09 14:41:19] Production.INFO: ProcessCDR(1,14437736,1,1,2) [2025-02-09 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437736', 'tblTempUsageDetail_20' ) start [2025-02-09 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437736', 'tblTempUsageDetail_20' ) end [2025-02-09 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:41:22] Production.INFO: ==6178== Releasing lock... [2025-02-09 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:41:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:42:06 [end_date_ymd] => 2025-02-09 14:42:06 [RateCDR] => 1 ) [2025-02-09 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:42:06' and `end` < '2025-02-09 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:42:19] Production.INFO: count ==1504 [2025-02-09 14:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:42:06 - End Time 2025-02-09 14:42:06 [2025-02-09 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437741', 'tblTempUsageDetail_20' ) start [2025-02-09 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437741', 'tblTempUsageDetail_20' ) end [2025-02-09 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437741', 'tblTempVendorCDR_20' ) start [2025-02-09 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437741', 'tblTempVendorCDR_20' ) end [2025-02-09 14:42:19] Production.INFO: ProcessCDR(1,14437741,1,1,2) [2025-02-09 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437741', 'tblTempUsageDetail_20' ) start [2025-02-09 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437741', 'tblTempUsageDetail_20' ) end [2025-02-09 14:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:42:24] Production.INFO: ==6257== Releasing lock... [2025-02-09 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:43:05 [end_date_ymd] => 2025-02-09 14:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:43:05' and `end` < '2025-02-09 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-02-09 14:43:18] Production.INFO: count ==1503 [2025-02-09 14:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:43:05 - End Time 2025-02-09 14:43:05 [2025-02-09 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437746', 'tblTempUsageDetail_20' ) start [2025-02-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437746', 'tblTempUsageDetail_20' ) end [2025-02-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437746', 'tblTempVendorCDR_20' ) start [2025-02-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437746', 'tblTempVendorCDR_20' ) end [2025-02-09 14:43:18] Production.INFO: ProcessCDR(1,14437746,1,1,2) [2025-02-09 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437746', 'tblTempUsageDetail_20' ) start [2025-02-09 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437746', 'tblTempUsageDetail_20' ) end [2025-02-09 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:43:23] Production.INFO: ==6334== Releasing lock... [2025-02-09 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:43:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:44:05 [end_date_ymd] => 2025-02-09 14:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:44:05' and `end` < '2025-02-09 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-02-09 14:44:18] Production.INFO: count ==1506 [2025-02-09 14:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:44:05 - End Time 2025-02-09 14:44:05 [2025-02-09 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437751', 'tblTempUsageDetail_20' ) start [2025-02-09 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437751', 'tblTempUsageDetail_20' ) end [2025-02-09 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437751', 'tblTempVendorCDR_20' ) start [2025-02-09 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437751', 'tblTempVendorCDR_20' ) end [2025-02-09 14:44:19] Production.INFO: ProcessCDR(1,14437751,1,1,2) [2025-02-09 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437751', 'tblTempUsageDetail_20' ) start [2025-02-09 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437751', 'tblTempUsageDetail_20' ) end [2025-02-09 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:44:23] Production.INFO: ==6409== Releasing lock... [2025-02-09 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:44:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:45:04 [end_date_ymd] => 2025-02-09 14:45:04 [RateCDR] => 1 ) [2025-02-09 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:45:04' and `end` < '2025-02-09 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:45:18] Production.INFO: count ==1503 [2025-02-09 14:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:45:04 - End Time 2025-02-09 14:45:04 [2025-02-09 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437756', 'tblTempUsageDetail_20' ) start [2025-02-09 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437756', 'tblTempUsageDetail_20' ) end [2025-02-09 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437756', 'tblTempVendorCDR_20' ) start [2025-02-09 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437756', 'tblTempVendorCDR_20' ) end [2025-02-09 14:45:18] Production.INFO: ProcessCDR(1,14437756,1,1,2) [2025-02-09 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437756', 'tblTempUsageDetail_20' ) start [2025-02-09 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437756', 'tblTempUsageDetail_20' ) end [2025-02-09 14:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:45:21] Production.INFO: ==6488== Releasing lock... [2025-02-09 14:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:45:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:46:05 [end_date_ymd] => 2025-02-09 14:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:46:05' and `end` < '2025-02-09 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-02-09 14:46:19] Production.INFO: count ==1495 [2025-02-09 14:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:46:05 - End Time 2025-02-09 14:46:05 [2025-02-09 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437761', 'tblTempUsageDetail_20' ) start [2025-02-09 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437761', 'tblTempUsageDetail_20' ) end [2025-02-09 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437761', 'tblTempVendorCDR_20' ) start [2025-02-09 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437761', 'tblTempVendorCDR_20' ) end [2025-02-09 14:46:19] Production.INFO: ProcessCDR(1,14437761,1,1,2) [2025-02-09 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437761', 'tblTempUsageDetail_20' ) start [2025-02-09 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437761', 'tblTempUsageDetail_20' ) end [2025-02-09 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:46:22] Production.INFO: ==6566== Releasing lock... [2025-02-09 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:46:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:47:05 [end_date_ymd] => 2025-02-09 14:47:05 [RateCDR] => 1 ) [2025-02-09 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:47:05' and `end` < '2025-02-09 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:47:19] Production.INFO: count ==1494 [2025-02-09 14:47:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:47:05 - End Time 2025-02-09 14:47:05 [2025-02-09 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437766', 'tblTempUsageDetail_20' ) start [2025-02-09 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437766', 'tblTempUsageDetail_20' ) end [2025-02-09 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437766', 'tblTempVendorCDR_20' ) start [2025-02-09 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437766', 'tblTempVendorCDR_20' ) end [2025-02-09 14:47:19] Production.INFO: ProcessCDR(1,14437766,1,1,2) [2025-02-09 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437766', 'tblTempUsageDetail_20' ) start [2025-02-09 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437766', 'tblTempUsageDetail_20' ) end [2025-02-09 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:47:24] Production.INFO: ==6684== Releasing lock... [2025-02-09 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:47:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:48:05 [end_date_ymd] => 2025-02-09 14:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:48:05' and `end` < '2025-02-09 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-02-09 14:48:18] Production.INFO: count ==1492 [2025-02-09 14:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:48:05 - End Time 2025-02-09 14:48:05 [2025-02-09 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437771', 'tblTempUsageDetail_20' ) start [2025-02-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437771', 'tblTempUsageDetail_20' ) end [2025-02-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437771', 'tblTempVendorCDR_20' ) start [2025-02-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437771', 'tblTempVendorCDR_20' ) end [2025-02-09 14:48:18] Production.INFO: ProcessCDR(1,14437771,1,1,2) [2025-02-09 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437771', 'tblTempUsageDetail_20' ) start [2025-02-09 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437771', 'tblTempUsageDetail_20' ) end [2025-02-09 14:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:48:23] Production.INFO: ==6764== Releasing lock... [2025-02-09 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:48:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:49:06 [end_date_ymd] => 2025-02-09 14:49:06 [RateCDR] => 1 ) [2025-02-09 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:49:06' and `end` < '2025-02-09 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:49:20] Production.INFO: count ==1491 [2025-02-09 14:49:20] Production.ERROR: pbx CDR StartTime 2025-02-09 11:49:06 - End Time 2025-02-09 14:49:06 [2025-02-09 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437776', 'tblTempUsageDetail_20' ) start [2025-02-09 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437776', 'tblTempUsageDetail_20' ) end [2025-02-09 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437776', 'tblTempVendorCDR_20' ) start [2025-02-09 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437776', 'tblTempVendorCDR_20' ) end [2025-02-09 14:49:20] Production.INFO: ProcessCDR(1,14437776,1,1,2) [2025-02-09 14:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437776', 'tblTempUsageDetail_20' ) start [2025-02-09 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437776', 'tblTempUsageDetail_20' ) end [2025-02-09 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:49:23] Production.INFO: ==6844== Releasing lock... [2025-02-09 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:49:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:50:06 [end_date_ymd] => 2025-02-09 14:50:06 [RateCDR] => 1 ) [2025-02-09 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:50:06' and `end` < '2025-02-09 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:50:19] Production.INFO: count ==1491 [2025-02-09 14:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:50:06 - End Time 2025-02-09 14:50:06 [2025-02-09 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437782', 'tblTempUsageDetail_20' ) start [2025-02-09 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437782', 'tblTempUsageDetail_20' ) end [2025-02-09 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437782', 'tblTempVendorCDR_20' ) start [2025-02-09 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437782', 'tblTempVendorCDR_20' ) end [2025-02-09 14:50:19] Production.INFO: ProcessCDR(1,14437782,1,1,2) [2025-02-09 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437782', 'tblTempUsageDetail_20' ) start [2025-02-09 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437782', 'tblTempUsageDetail_20' ) end [2025-02-09 14:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:50:23] Production.INFO: ==6921== Releasing lock... [2025-02-09 14:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:50:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:51:05 [end_date_ymd] => 2025-02-09 14:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:51:05' and `end` < '2025-02-09 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-02-09 14:51:18] Production.INFO: count ==1523 [2025-02-09 14:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:51:05 - End Time 2025-02-09 14:51:05 [2025-02-09 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437787', 'tblTempUsageDetail_20' ) start [2025-02-09 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437787', 'tblTempUsageDetail_20' ) end [2025-02-09 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437787', 'tblTempVendorCDR_20' ) start [2025-02-09 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437787', 'tblTempVendorCDR_20' ) end [2025-02-09 14:51:19] Production.INFO: ProcessCDR(1,14437787,1,1,2) [2025-02-09 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437787', 'tblTempUsageDetail_20' ) start [2025-02-09 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437787', 'tblTempUsageDetail_20' ) end [2025-02-09 14:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:51:23] Production.INFO: ==7004== Releasing lock... [2025-02-09 14:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:51:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:52:05 [end_date_ymd] => 2025-02-09 14:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:52:05' and `end` < '2025-02-09 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-02-09 14:52:18] Production.INFO: count ==1523 [2025-02-09 14:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:52:05 - End Time 2025-02-09 14:52:05 [2025-02-09 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437792', 'tblTempUsageDetail_20' ) start [2025-02-09 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437792', 'tblTempUsageDetail_20' ) end [2025-02-09 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437792', 'tblTempVendorCDR_20' ) start [2025-02-09 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437792', 'tblTempVendorCDR_20' ) end [2025-02-09 14:52:19] Production.INFO: ProcessCDR(1,14437792,1,1,2) [2025-02-09 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437792', 'tblTempUsageDetail_20' ) start [2025-02-09 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437792', 'tblTempUsageDetail_20' ) end [2025-02-09 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:52:22] Production.INFO: ==7084== Releasing lock... [2025-02-09 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:53:05 [end_date_ymd] => 2025-02-09 14:53:05 [RateCDR] => 1 ) [2025-02-09 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 11:53:05' and `end` < '2025-02-09 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 14:53:18] Production.INFO: count ==1523 [2025-02-09 14:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:53:05 - End Time 2025-02-09 14:53:05 [2025-02-09 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437797', 'tblTempUsageDetail_20' ) start [2025-02-09 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437797', 'tblTempUsageDetail_20' ) end [2025-02-09 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437797', 'tblTempVendorCDR_20' ) start [2025-02-09 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437797', 'tblTempVendorCDR_20' ) end [2025-02-09 14:53:19] Production.INFO: ProcessCDR(1,14437797,1,1,2) [2025-02-09 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437797', 'tblTempUsageDetail_20' ) start [2025-02-09 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437797', 'tblTempUsageDetail_20' ) end [2025-02-09 14:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:53:24] Production.INFO: ==7164== Releasing lock... [2025-02-09 14:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:53:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:54:05 [end_date_ymd] => 2025-02-09 14:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:54:05' and `end` < '2025-02-09 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-02-09 14:54:18] Production.INFO: count ==1523 [2025-02-09 14:54:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:54:05 - End Time 2025-02-09 14:54:05 [2025-02-09 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437802', 'tblTempUsageDetail_20' ) start [2025-02-09 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437802', 'tblTempUsageDetail_20' ) end [2025-02-09 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437802', 'tblTempVendorCDR_20' ) start [2025-02-09 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437802', 'tblTempVendorCDR_20' ) end [2025-02-09 14:54:19] Production.INFO: ProcessCDR(1,14437802,1,1,2) [2025-02-09 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437802', 'tblTempUsageDetail_20' ) start [2025-02-09 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437802', 'tblTempUsageDetail_20' ) end [2025-02-09 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:54:23] Production.INFO: ==7240== Releasing lock... [2025-02-09 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:55:05 [end_date_ymd] => 2025-02-09 14:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:55:05' and `end` < '2025-02-09 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-02-09 14:55:18] Production.INFO: count ==1535 [2025-02-09 14:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:55:05 - End Time 2025-02-09 14:55:05 [2025-02-09 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437807', 'tblTempUsageDetail_20' ) start [2025-02-09 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437807', 'tblTempUsageDetail_20' ) end [2025-02-09 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437807', 'tblTempVendorCDR_20' ) start [2025-02-09 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437807', 'tblTempVendorCDR_20' ) end [2025-02-09 14:55:19] Production.INFO: ProcessCDR(1,14437807,1,1,2) [2025-02-09 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437807', 'tblTempUsageDetail_20' ) start [2025-02-09 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437807', 'tblTempUsageDetail_20' ) end [2025-02-09 14:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:55:24] Production.INFO: ==7321== Releasing lock... [2025-02-09 14:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:55:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:56:05 [end_date_ymd] => 2025-02-09 14:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:56:05' and `end` < '2025-02-09 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-02-09 14:56:18] Production.INFO: count ==1538 [2025-02-09 14:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 11:56:05 - End Time 2025-02-09 14:56:05 [2025-02-09 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437812', 'tblTempUsageDetail_20' ) start [2025-02-09 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437812', 'tblTempUsageDetail_20' ) end [2025-02-09 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437812', 'tblTempVendorCDR_20' ) start [2025-02-09 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437812', 'tblTempVendorCDR_20' ) end [2025-02-09 14:56:18] Production.INFO: ProcessCDR(1,14437812,1,1,2) [2025-02-09 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437812', 'tblTempUsageDetail_20' ) start [2025-02-09 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437812', 'tblTempUsageDetail_20' ) end [2025-02-09 14:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:56:22] Production.INFO: ==7397== Releasing lock... [2025-02-09 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:56:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:57:06 [end_date_ymd] => 2025-02-09 14:57:06 [RateCDR] => 1 ) [2025-02-09 14: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-02-09 11:57:06' and `end` < '2025-02-09 14: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-02-09 14:57:19] Production.INFO: count ==1534 [2025-02-09 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:57:06 - End Time 2025-02-09 14:57:06 [2025-02-09 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437817', 'tblTempUsageDetail_20' ) start [2025-02-09 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437817', 'tblTempUsageDetail_20' ) end [2025-02-09 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437817', 'tblTempVendorCDR_20' ) start [2025-02-09 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437817', 'tblTempVendorCDR_20' ) end [2025-02-09 14:57:19] Production.INFO: ProcessCDR(1,14437817,1,1,2) [2025-02-09 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437817', 'tblTempUsageDetail_20' ) start [2025-02-09 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437817', 'tblTempUsageDetail_20' ) end [2025-02-09 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:57:24] Production.INFO: ==7472== Releasing lock... [2025-02-09 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:57:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:58:05 [end_date_ymd] => 2025-02-09 14:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:58:05' and `end` < '2025-02-09 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-02-09 14:58:18] Production.INFO: count ==1532 [2025-02-09 14:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:58:05 - End Time 2025-02-09 14:58:05 [2025-02-09 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437822', 'tblTempUsageDetail_20' ) start [2025-02-09 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437822', 'tblTempUsageDetail_20' ) end [2025-02-09 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437822', 'tblTempVendorCDR_20' ) start [2025-02-09 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437822', 'tblTempVendorCDR_20' ) end [2025-02-09 14:58:19] Production.INFO: ProcessCDR(1,14437822,1,1,2) [2025-02-09 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437822', 'tblTempUsageDetail_20' ) start [2025-02-09 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437822', 'tblTempUsageDetail_20' ) end [2025-02-09 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:58:23] Production.INFO: ==7546== Releasing lock... [2025-02-09 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:58:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 11:59:05 [end_date_ymd] => 2025-02-09 14:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 11:59:05' and `end` < '2025-02-09 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-02-09 14:59:18] Production.INFO: count ==1531 [2025-02-09 14:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 11:59:05 - End Time 2025-02-09 14:59:05 [2025-02-09 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437827', 'tblTempUsageDetail_20' ) start [2025-02-09 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437827', 'tblTempUsageDetail_20' ) end [2025-02-09 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437827', 'tblTempVendorCDR_20' ) start [2025-02-09 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437827', 'tblTempVendorCDR_20' ) end [2025-02-09 14:59:19] Production.INFO: ProcessCDR(1,14437827,1,1,2) [2025-02-09 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437827', 'tblTempUsageDetail_20' ) start [2025-02-09 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437827', 'tblTempUsageDetail_20' ) end [2025-02-09 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 14:59:23] Production.INFO: ==7621== Releasing lock... [2025-02-09 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 14:59:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:00:06 [end_date_ymd] => 2025-02-09 15:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:00:06' and `end` < '2025-02-09 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-02-09 15:00:19] Production.INFO: count ==1545 [2025-02-09 15:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:00:06 - End Time 2025-02-09 15:00:06 [2025-02-09 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437833', 'tblTempUsageDetail_20' ) start [2025-02-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437833', 'tblTempUsageDetail_20' ) end [2025-02-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437833', 'tblTempVendorCDR_20' ) start [2025-02-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437833', 'tblTempVendorCDR_20' ) end [2025-02-09 15:00:19] Production.INFO: ProcessCDR(1,14437833,1,1,2) [2025-02-09 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437833', 'tblTempUsageDetail_20' ) start [2025-02-09 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437833', 'tblTempUsageDetail_20' ) end [2025-02-09 15:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:00:24] Production.INFO: ==7703== Releasing lock... [2025-02-09 15:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:00:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:01:05 [end_date_ymd] => 2025-02-09 15:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:01:05' and `end` < '2025-02-09 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:01:19] Production.INFO: count ==1536 [2025-02-09 15:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:01:05 - End Time 2025-02-09 15:01:05 [2025-02-09 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437838', 'tblTempUsageDetail_20' ) start [2025-02-09 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437838', 'tblTempUsageDetail_20' ) end [2025-02-09 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437838', 'tblTempVendorCDR_20' ) start [2025-02-09 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437838', 'tblTempVendorCDR_20' ) end [2025-02-09 15:01:20] Production.INFO: ProcessCDR(1,14437838,1,1,2) [2025-02-09 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437838', 'tblTempUsageDetail_20' ) start [2025-02-09 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437838', 'tblTempUsageDetail_20' ) end [2025-02-09 15:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:01:24] Production.INFO: ==7797== Releasing lock... [2025-02-09 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:01:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:02:05 [end_date_ymd] => 2025-02-09 15:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:02:05' and `end` < '2025-02-09 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-02-09 15:02:18] Production.INFO: count ==1529 [2025-02-09 15:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:02:05 - End Time 2025-02-09 15:02:05 [2025-02-09 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437843', 'tblTempUsageDetail_20' ) start [2025-02-09 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437843', 'tblTempUsageDetail_20' ) end [2025-02-09 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437843', 'tblTempVendorCDR_20' ) start [2025-02-09 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437843', 'tblTempVendorCDR_20' ) end [2025-02-09 15:02:19] Production.INFO: ProcessCDR(1,14437843,1,1,2) [2025-02-09 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437843', 'tblTempUsageDetail_20' ) start [2025-02-09 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437843', 'tblTempUsageDetail_20' ) end [2025-02-09 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:02:22] Production.INFO: ==7989== Releasing lock... [2025-02-09 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:02:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:03:05 [end_date_ymd] => 2025-02-09 15:03:05 [RateCDR] => 1 ) [2025-02-09 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:03:05' and `end` < '2025-02-09 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:03:19] Production.INFO: count ==1528 [2025-02-09 15:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:03:05 - End Time 2025-02-09 15:03:05 [2025-02-09 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437848', 'tblTempUsageDetail_20' ) start [2025-02-09 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437848', 'tblTempUsageDetail_20' ) end [2025-02-09 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437848', 'tblTempVendorCDR_20' ) start [2025-02-09 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437848', 'tblTempVendorCDR_20' ) end [2025-02-09 15:03:19] Production.INFO: ProcessCDR(1,14437848,1,1,2) [2025-02-09 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437848', 'tblTempUsageDetail_20' ) start [2025-02-09 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437848', 'tblTempUsageDetail_20' ) end [2025-02-09 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:03:22] Production.INFO: ==8068== Releasing lock... [2025-02-09 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:03:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:04:04 [end_date_ymd] => 2025-02-09 15:04:04 [RateCDR] => 1 ) [2025-02-09 15:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:04:04' and `end` < '2025-02-09 15:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:04:17] Production.INFO: count ==1529 [2025-02-09 15:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:04:04 - End Time 2025-02-09 15:04:04 [2025-02-09 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437853', 'tblTempUsageDetail_20' ) start [2025-02-09 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437853', 'tblTempUsageDetail_20' ) end [2025-02-09 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437853', 'tblTempVendorCDR_20' ) start [2025-02-09 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437853', 'tblTempVendorCDR_20' ) end [2025-02-09 15:04:18] Production.INFO: ProcessCDR(1,14437853,1,1,2) [2025-02-09 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437853', 'tblTempUsageDetail_20' ) start [2025-02-09 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437853', 'tblTempUsageDetail_20' ) end [2025-02-09 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:04:23] Production.INFO: ==8142== Releasing lock... [2025-02-09 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:04:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:05:05 [end_date_ymd] => 2025-02-09 15:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:05:05' and `end` < '2025-02-09 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-02-09 15:05:18] Production.INFO: count ==1519 [2025-02-09 15:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:05:05 - End Time 2025-02-09 15:05:05 [2025-02-09 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437858', 'tblTempUsageDetail_20' ) start [2025-02-09 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437858', 'tblTempUsageDetail_20' ) end [2025-02-09 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437858', 'tblTempVendorCDR_20' ) start [2025-02-09 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437858', 'tblTempVendorCDR_20' ) end [2025-02-09 15:05:19] Production.INFO: ProcessCDR(1,14437858,1,1,2) [2025-02-09 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437858', 'tblTempUsageDetail_20' ) start [2025-02-09 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437858', 'tblTempUsageDetail_20' ) end [2025-02-09 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:05:23] Production.INFO: ==8297== Releasing lock... [2025-02-09 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:06:05 [end_date_ymd] => 2025-02-09 15:06:05 [RateCDR] => 1 ) [2025-02-09 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:06:05' and `end` < '2025-02-09 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:06:19] Production.INFO: count ==1521 [2025-02-09 15:06:20] Production.ERROR: pbx CDR StartTime 2025-02-09 12:06:05 - End Time 2025-02-09 15:06:05 [2025-02-09 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437863', 'tblTempUsageDetail_20' ) start [2025-02-09 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437863', 'tblTempUsageDetail_20' ) end [2025-02-09 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437863', 'tblTempVendorCDR_20' ) start [2025-02-09 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437863', 'tblTempVendorCDR_20' ) end [2025-02-09 15:06:20] Production.INFO: ProcessCDR(1,14437863,1,1,2) [2025-02-09 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437863', 'tblTempUsageDetail_20' ) start [2025-02-09 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437863', 'tblTempUsageDetail_20' ) end [2025-02-09 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:06:24] Production.INFO: ==8374== Releasing lock... [2025-02-09 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:06:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:07:05 [end_date_ymd] => 2025-02-09 15:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:07:05' and `end` < '2025-02-09 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-02-09 15:07:19] Production.INFO: count ==1522 [2025-02-09 15:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:07:05 - End Time 2025-02-09 15:07:05 [2025-02-09 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437868', 'tblTempUsageDetail_20' ) start [2025-02-09 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437868', 'tblTempUsageDetail_20' ) end [2025-02-09 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437868', 'tblTempVendorCDR_20' ) start [2025-02-09 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437868', 'tblTempVendorCDR_20' ) end [2025-02-09 15:07:19] Production.INFO: ProcessCDR(1,14437868,1,1,2) [2025-02-09 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437868', 'tblTempUsageDetail_20' ) start [2025-02-09 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437868', 'tblTempUsageDetail_20' ) end [2025-02-09 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:07:24] Production.INFO: ==8455== Releasing lock... [2025-02-09 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:07:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:08:04 [end_date_ymd] => 2025-02-09 15:08:04 [RateCDR] => 1 ) [2025-02-09 15: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-02-09 12:08:04' and `end` < '2025-02-09 15: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-02-09 15:08:18] Production.INFO: count ==1541 [2025-02-09 15:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:08:04 - End Time 2025-02-09 15:08:04 [2025-02-09 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437873', 'tblTempUsageDetail_20' ) start [2025-02-09 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437873', 'tblTempUsageDetail_20' ) end [2025-02-09 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437873', 'tblTempVendorCDR_20' ) start [2025-02-09 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437873', 'tblTempVendorCDR_20' ) end [2025-02-09 15:08:18] Production.INFO: ProcessCDR(1,14437873,1,1,2) [2025-02-09 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437873', 'tblTempUsageDetail_20' ) start [2025-02-09 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437873', 'tblTempUsageDetail_20' ) end [2025-02-09 15:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:08:23] Production.INFO: ==8570== Releasing lock... [2025-02-09 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:08:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:09:05 [end_date_ymd] => 2025-02-09 15:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:09:05' and `end` < '2025-02-09 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-02-09 15:09:18] Production.INFO: count ==1551 [2025-02-09 15:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:09:05 - End Time 2025-02-09 15:09:05 [2025-02-09 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437878', 'tblTempUsageDetail_20' ) start [2025-02-09 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437878', 'tblTempUsageDetail_20' ) end [2025-02-09 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437878', 'tblTempVendorCDR_20' ) start [2025-02-09 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437878', 'tblTempVendorCDR_20' ) end [2025-02-09 15:09:19] Production.INFO: ProcessCDR(1,14437878,1,1,2) [2025-02-09 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437878', 'tblTempUsageDetail_20' ) start [2025-02-09 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437878', 'tblTempUsageDetail_20' ) end [2025-02-09 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:09:23] Production.INFO: ==8683== Releasing lock... [2025-02-09 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:09:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:10:06 [end_date_ymd] => 2025-02-09 15:10:06 [RateCDR] => 1 ) [2025-02-09 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:10:06' and `end` < '2025-02-09 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:10:19] Production.INFO: count ==1555 [2025-02-09 15:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 12:10:06 - End Time 2025-02-09 15:10:06 [2025-02-09 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437884', 'tblTempUsageDetail_20' ) start [2025-02-09 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437884', 'tblTempUsageDetail_20' ) end [2025-02-09 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437884', 'tblTempVendorCDR_20' ) start [2025-02-09 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437884', 'tblTempVendorCDR_20' ) end [2025-02-09 15:10:20] Production.INFO: ProcessCDR(1,14437884,1,1,2) [2025-02-09 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437884', 'tblTempUsageDetail_20' ) start [2025-02-09 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437884', 'tblTempUsageDetail_20' ) end [2025-02-09 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:10:23] Production.INFO: ==8762== Releasing lock... [2025-02-09 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:10:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:11:05 [end_date_ymd] => 2025-02-09 15:11:05 [RateCDR] => 1 ) [2025-02-09 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:11:05' and `end` < '2025-02-09 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:11:19] Production.INFO: count ==1563 [2025-02-09 15:11:20] Production.ERROR: pbx CDR StartTime 2025-02-09 12:11:05 - End Time 2025-02-09 15:11:05 [2025-02-09 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437889', 'tblTempUsageDetail_20' ) start [2025-02-09 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437889', 'tblTempUsageDetail_20' ) end [2025-02-09 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437889', 'tblTempVendorCDR_20' ) start [2025-02-09 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437889', 'tblTempVendorCDR_20' ) end [2025-02-09 15:11:20] Production.INFO: ProcessCDR(1,14437889,1,1,2) [2025-02-09 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437889', 'tblTempUsageDetail_20' ) start [2025-02-09 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437889', 'tblTempUsageDetail_20' ) end [2025-02-09 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:11:24] Production.INFO: ==8848== Releasing lock... [2025-02-09 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:11:24] Production.INFO: 40 MB #Memory Used# [2025-02-09 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:12:05 [end_date_ymd] => 2025-02-09 15:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:12:05' and `end` < '2025-02-09 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-02-09 15:12:18] Production.INFO: count ==1566 [2025-02-09 15:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:12:05 - End Time 2025-02-09 15:12:05 [2025-02-09 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437894', 'tblTempUsageDetail_20' ) start [2025-02-09 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437894', 'tblTempUsageDetail_20' ) end [2025-02-09 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437894', 'tblTempVendorCDR_20' ) start [2025-02-09 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437894', 'tblTempVendorCDR_20' ) end [2025-02-09 15:12:19] Production.INFO: ProcessCDR(1,14437894,1,1,2) [2025-02-09 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437894', 'tblTempUsageDetail_20' ) start [2025-02-09 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437894', 'tblTempUsageDetail_20' ) end [2025-02-09 15:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:12:23] Production.INFO: ==9003== Releasing lock... [2025-02-09 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:12:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:13:05 [end_date_ymd] => 2025-02-09 15:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:13:05' and `end` < '2025-02-09 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-02-09 15:13:18] Production.INFO: count ==1565 [2025-02-09 15:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:13:05 - End Time 2025-02-09 15:13:05 [2025-02-09 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437899', 'tblTempUsageDetail_20' ) start [2025-02-09 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437899', 'tblTempUsageDetail_20' ) end [2025-02-09 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437899', 'tblTempVendorCDR_20' ) start [2025-02-09 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437899', 'tblTempVendorCDR_20' ) end [2025-02-09 15:13:19] Production.INFO: ProcessCDR(1,14437899,1,1,2) [2025-02-09 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437899', 'tblTempUsageDetail_20' ) start [2025-02-09 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437899', 'tblTempUsageDetail_20' ) end [2025-02-09 15:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:13:24] Production.INFO: ==9080== Releasing lock... [2025-02-09 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:13:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:14:05 [end_date_ymd] => 2025-02-09 15:14:05 [RateCDR] => 1 ) [2025-02-09 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:14:05' and `end` < '2025-02-09 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:14:20] Production.INFO: count ==1565 [2025-02-09 15:14:20] Production.ERROR: pbx CDR StartTime 2025-02-09 12:14:05 - End Time 2025-02-09 15:14:05 [2025-02-09 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437904', 'tblTempUsageDetail_20' ) start [2025-02-09 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437904', 'tblTempUsageDetail_20' ) end [2025-02-09 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437904', 'tblTempVendorCDR_20' ) start [2025-02-09 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437904', 'tblTempVendorCDR_20' ) end [2025-02-09 15:14:20] Production.INFO: ProcessCDR(1,14437904,1,1,2) [2025-02-09 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437904', 'tblTempUsageDetail_20' ) start [2025-02-09 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437904', 'tblTempUsageDetail_20' ) end [2025-02-09 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:14:25] Production.INFO: ==9155== Releasing lock... [2025-02-09 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:14:25] Production.INFO: 40 MB #Memory Used# [2025-02-09 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:15:05 [end_date_ymd] => 2025-02-09 15:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:15:05' and `end` < '2025-02-09 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-02-09 15:15:18] Production.INFO: count ==1558 [2025-02-09 15:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:15:05 - End Time 2025-02-09 15:15:05 [2025-02-09 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437909', 'tblTempUsageDetail_20' ) start [2025-02-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437909', 'tblTempUsageDetail_20' ) end [2025-02-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437909', 'tblTempVendorCDR_20' ) start [2025-02-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437909', 'tblTempVendorCDR_20' ) end [2025-02-09 15:15:18] Production.INFO: ProcessCDR(1,14437909,1,1,2) [2025-02-09 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437909', 'tblTempUsageDetail_20' ) start [2025-02-09 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437909', 'tblTempUsageDetail_20' ) end [2025-02-09 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:15:23] Production.INFO: ==9274== Releasing lock... [2025-02-09 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:15:23] Production.INFO: 40 MB #Memory Used# [2025-02-09 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:16:05 [end_date_ymd] => 2025-02-09 15:16:05 [RateCDR] => 1 ) [2025-02-09 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:16:05' and `end` < '2025-02-09 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:16:19] Production.INFO: count ==1543 [2025-02-09 15:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:16:05 - End Time 2025-02-09 15:16:05 [2025-02-09 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437914', 'tblTempUsageDetail_20' ) start [2025-02-09 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437914', 'tblTempUsageDetail_20' ) end [2025-02-09 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437914', 'tblTempVendorCDR_20' ) start [2025-02-09 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437914', 'tblTempVendorCDR_20' ) end [2025-02-09 15:16:19] Production.INFO: ProcessCDR(1,14437914,1,1,2) [2025-02-09 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437914', 'tblTempUsageDetail_20' ) start [2025-02-09 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437914', 'tblTempUsageDetail_20' ) end [2025-02-09 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:16:22] Production.INFO: ==9392== Releasing lock... [2025-02-09 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:17:05 [end_date_ymd] => 2025-02-09 15:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:17:05' and `end` < '2025-02-09 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-02-09 15:17:17] Production.INFO: count ==1536 [2025-02-09 15:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:17:05 - End Time 2025-02-09 15:17:05 [2025-02-09 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437919', 'tblTempUsageDetail_20' ) start [2025-02-09 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437919', 'tblTempUsageDetail_20' ) end [2025-02-09 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437919', 'tblTempVendorCDR_20' ) start [2025-02-09 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437919', 'tblTempVendorCDR_20' ) end [2025-02-09 15:17:18] Production.INFO: ProcessCDR(1,14437919,1,1,2) [2025-02-09 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437919', 'tblTempUsageDetail_20' ) start [2025-02-09 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437919', 'tblTempUsageDetail_20' ) end [2025-02-09 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:17:23] Production.INFO: ==9469== Releasing lock... [2025-02-09 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:17:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:18:05 [end_date_ymd] => 2025-02-09 15:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:18:05' and `end` < '2025-02-09 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-02-09 15:18:18] Production.INFO: count ==1538 [2025-02-09 15:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:18:05 - End Time 2025-02-09 15:18:05 [2025-02-09 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437924', 'tblTempUsageDetail_20' ) start [2025-02-09 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437924', 'tblTempUsageDetail_20' ) end [2025-02-09 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437924', 'tblTempVendorCDR_20' ) start [2025-02-09 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437924', 'tblTempVendorCDR_20' ) end [2025-02-09 15:18:19] Production.INFO: ProcessCDR(1,14437924,1,1,2) [2025-02-09 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437924', 'tblTempUsageDetail_20' ) start [2025-02-09 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437924', 'tblTempUsageDetail_20' ) end [2025-02-09 15:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:18:23] Production.INFO: ==9582== Releasing lock... [2025-02-09 15:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:18:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:19:05 [end_date_ymd] => 2025-02-09 15:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:19:05' and `end` < '2025-02-09 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-02-09 15:19:18] Production.INFO: count ==1543 [2025-02-09 15:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:19:05 - End Time 2025-02-09 15:19:05 [2025-02-09 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437929', 'tblTempUsageDetail_20' ) start [2025-02-09 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437929', 'tblTempUsageDetail_20' ) end [2025-02-09 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437929', 'tblTempVendorCDR_20' ) start [2025-02-09 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437929', 'tblTempVendorCDR_20' ) end [2025-02-09 15:19:18] Production.INFO: ProcessCDR(1,14437929,1,1,2) [2025-02-09 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437929', 'tblTempUsageDetail_20' ) start [2025-02-09 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437929', 'tblTempUsageDetail_20' ) end [2025-02-09 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:19:23] Production.INFO: ==9657== Releasing lock... [2025-02-09 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:19:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:20:06 [end_date_ymd] => 2025-02-09 15:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:20:06' and `end` < '2025-02-09 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-02-09 15:20:19] Production.INFO: count ==1545 [2025-02-09 15:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:20:06 - End Time 2025-02-09 15:20:06 [2025-02-09 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437935', 'tblTempUsageDetail_20' ) start [2025-02-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437935', 'tblTempUsageDetail_20' ) end [2025-02-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437935', 'tblTempVendorCDR_20' ) start [2025-02-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437935', 'tblTempVendorCDR_20' ) end [2025-02-09 15:20:19] Production.INFO: ProcessCDR(1,14437935,1,1,2) [2025-02-09 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437935', 'tblTempUsageDetail_20' ) start [2025-02-09 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437935', 'tblTempUsageDetail_20' ) end [2025-02-09 15:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:20:23] Production.INFO: ==9733== Releasing lock... [2025-02-09 15:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:20:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:21:06 [end_date_ymd] => 2025-02-09 15:21:06 [RateCDR] => 1 ) [2025-02-09 15: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-02-09 12:21:06' and `end` < '2025-02-09 15: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-02-09 15:21:19] Production.INFO: count ==1553 [2025-02-09 15:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:21:06 - End Time 2025-02-09 15:21:06 [2025-02-09 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437940', 'tblTempUsageDetail_20' ) start [2025-02-09 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437940', 'tblTempUsageDetail_20' ) end [2025-02-09 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437940', 'tblTempVendorCDR_20' ) start [2025-02-09 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437940', 'tblTempVendorCDR_20' ) end [2025-02-09 15:21:19] Production.INFO: ProcessCDR(1,14437940,1,1,2) [2025-02-09 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437940', 'tblTempUsageDetail_20' ) start [2025-02-09 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437940', 'tblTempUsageDetail_20' ) end [2025-02-09 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:21:23] Production.INFO: ==9823== Releasing lock... [2025-02-09 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:21:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:22:05 [end_date_ymd] => 2025-02-09 15:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:22:05' and `end` < '2025-02-09 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-02-09 15:22:19] Production.INFO: count ==1548 [2025-02-09 15:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:22:05 - End Time 2025-02-09 15:22:05 [2025-02-09 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437945', 'tblTempUsageDetail_20' ) start [2025-02-09 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437945', 'tblTempUsageDetail_20' ) end [2025-02-09 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437945', 'tblTempVendorCDR_20' ) start [2025-02-09 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437945', 'tblTempVendorCDR_20' ) end [2025-02-09 15:22:19] Production.INFO: ProcessCDR(1,14437945,1,1,2) [2025-02-09 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437945', 'tblTempUsageDetail_20' ) start [2025-02-09 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437945', 'tblTempUsageDetail_20' ) end [2025-02-09 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:22:22] Production.INFO: ==9939== Releasing lock... [2025-02-09 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:22:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:23:04 [end_date_ymd] => 2025-02-09 15:23:04 [RateCDR] => 1 ) [2025-02-09 15: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-02-09 12:23:04' and `end` < '2025-02-09 15: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-02-09 15:23:18] Production.INFO: count ==1546 [2025-02-09 15:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:23:04 - End Time 2025-02-09 15:23:04 [2025-02-09 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437950', 'tblTempUsageDetail_20' ) start [2025-02-09 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437950', 'tblTempUsageDetail_20' ) end [2025-02-09 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437950', 'tblTempVendorCDR_20' ) start [2025-02-09 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437950', 'tblTempVendorCDR_20' ) end [2025-02-09 15:23:18] Production.INFO: ProcessCDR(1,14437950,1,1,2) [2025-02-09 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437950', 'tblTempUsageDetail_20' ) start [2025-02-09 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437950', 'tblTempUsageDetail_20' ) end [2025-02-09 15:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:23:22] Production.INFO: ==10051== Releasing lock... [2025-02-09 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:23:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:24:05 [end_date_ymd] => 2025-02-09 15:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:24:05' and `end` < '2025-02-09 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-02-09 15:24:18] Production.INFO: count ==1545 [2025-02-09 15:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:24:05 - End Time 2025-02-09 15:24:05 [2025-02-09 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437955', 'tblTempUsageDetail_20' ) start [2025-02-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437955', 'tblTempUsageDetail_20' ) end [2025-02-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437955', 'tblTempVendorCDR_20' ) start [2025-02-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437955', 'tblTempVendorCDR_20' ) end [2025-02-09 15:24:18] Production.INFO: ProcessCDR(1,14437955,1,1,2) [2025-02-09 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437955', 'tblTempUsageDetail_20' ) start [2025-02-09 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437955', 'tblTempUsageDetail_20' ) end [2025-02-09 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:24:23] Production.INFO: ==10122== Releasing lock... [2025-02-09 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:24:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:25:04 [end_date_ymd] => 2025-02-09 15:25:04 [RateCDR] => 1 ) [2025-02-09 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:25:04' and `end` < '2025-02-09 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:25:17] Production.INFO: count ==1535 [2025-02-09 15:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:25:04 - End Time 2025-02-09 15:25:04 [2025-02-09 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437960', 'tblTempUsageDetail_20' ) start [2025-02-09 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437960', 'tblTempUsageDetail_20' ) end [2025-02-09 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437960', 'tblTempVendorCDR_20' ) start [2025-02-09 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437960', 'tblTempVendorCDR_20' ) end [2025-02-09 15:25:18] Production.INFO: ProcessCDR(1,14437960,1,1,2) [2025-02-09 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437960', 'tblTempUsageDetail_20' ) start [2025-02-09 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437960', 'tblTempUsageDetail_20' ) end [2025-02-09 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:25:22] Production.INFO: ==10197== Releasing lock... [2025-02-09 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:25:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:26:05 [end_date_ymd] => 2025-02-09 15:26:05 [RateCDR] => 1 ) [2025-02-09 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:26:05' and `end` < '2025-02-09 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:26:18] Production.INFO: count ==1524 [2025-02-09 15:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:26:05 - End Time 2025-02-09 15:26:05 [2025-02-09 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437965', 'tblTempUsageDetail_20' ) start [2025-02-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437965', 'tblTempUsageDetail_20' ) end [2025-02-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437965', 'tblTempVendorCDR_20' ) start [2025-02-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437965', 'tblTempVendorCDR_20' ) end [2025-02-09 15:26:18] Production.INFO: ProcessCDR(1,14437965,1,1,2) [2025-02-09 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437965', 'tblTempUsageDetail_20' ) start [2025-02-09 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437965', 'tblTempUsageDetail_20' ) end [2025-02-09 15:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:26:21] Production.INFO: ==10268== Releasing lock... [2025-02-09 15:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:26:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:27:05 [end_date_ymd] => 2025-02-09 15:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:27:05' and `end` < '2025-02-09 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-02-09 15:27:19] Production.INFO: count ==1519 [2025-02-09 15:27:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:27:05 - End Time 2025-02-09 15:27:05 [2025-02-09 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437970', 'tblTempUsageDetail_20' ) start [2025-02-09 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437970', 'tblTempUsageDetail_20' ) end [2025-02-09 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437970', 'tblTempVendorCDR_20' ) start [2025-02-09 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437970', 'tblTempVendorCDR_20' ) end [2025-02-09 15:27:19] Production.INFO: ProcessCDR(1,14437970,1,1,2) [2025-02-09 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437970', 'tblTempUsageDetail_20' ) start [2025-02-09 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437970', 'tblTempUsageDetail_20' ) end [2025-02-09 15:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:27:24] Production.INFO: ==10341== Releasing lock... [2025-02-09 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:27:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:28:05 [end_date_ymd] => 2025-02-09 15:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:28:05' and `end` < '2025-02-09 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-02-09 15:28:18] Production.INFO: count ==1511 [2025-02-09 15:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:28:05 - End Time 2025-02-09 15:28:05 [2025-02-09 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437975', 'tblTempUsageDetail_20' ) start [2025-02-09 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437975', 'tblTempUsageDetail_20' ) end [2025-02-09 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437975', 'tblTempVendorCDR_20' ) start [2025-02-09 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437975', 'tblTempVendorCDR_20' ) end [2025-02-09 15:28:19] Production.INFO: ProcessCDR(1,14437975,1,1,2) [2025-02-09 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437975', 'tblTempUsageDetail_20' ) start [2025-02-09 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437975', 'tblTempUsageDetail_20' ) end [2025-02-09 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:28:23] Production.INFO: ==10412== Releasing lock... [2025-02-09 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:28:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:29:06 [end_date_ymd] => 2025-02-09 15:29:06 [RateCDR] => 1 ) [2025-02-09 15: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-02-09 12:29:06' and `end` < '2025-02-09 15: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-02-09 15:29:19] Production.INFO: count ==1501 [2025-02-09 15:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:29:06 - End Time 2025-02-09 15:29:06 [2025-02-09 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437980', 'tblTempUsageDetail_20' ) start [2025-02-09 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437980', 'tblTempUsageDetail_20' ) end [2025-02-09 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437980', 'tblTempVendorCDR_20' ) start [2025-02-09 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437980', 'tblTempVendorCDR_20' ) end [2025-02-09 15:29:19] Production.INFO: ProcessCDR(1,14437980,1,1,2) [2025-02-09 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437980', 'tblTempUsageDetail_20' ) start [2025-02-09 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437980', 'tblTempUsageDetail_20' ) end [2025-02-09 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:29:23] Production.INFO: ==10486== Releasing lock... [2025-02-09 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:29:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-09 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:30:05 [end_date_ymd] => 2025-02-09 15:30:05 [RateCDR] => 1 ) [2025-02-09 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:30:05' and `end` < '2025-02-09 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:30:18] Production.INFO: count ==1475 [2025-02-09 15:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:30:05 - End Time 2025-02-09 15:30:05 [2025-02-09 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437986', 'tblTempUsageDetail_20' ) start [2025-02-09 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437986', 'tblTempUsageDetail_20' ) end [2025-02-09 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437986', 'tblTempVendorCDR_20' ) start [2025-02-09 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437986', 'tblTempVendorCDR_20' ) end [2025-02-09 15:30:19] Production.INFO: ProcessCDR(1,14437986,1,1,2) [2025-02-09 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437986', 'tblTempUsageDetail_20' ) start [2025-02-09 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437986', 'tblTempUsageDetail_20' ) end [2025-02-09 15:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:30:22] Production.INFO: ==10564== Releasing lock... [2025-02-09 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:30:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:31:05 [end_date_ymd] => 2025-02-09 15:31:05 [RateCDR] => 1 ) [2025-02-09 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:31:05' and `end` < '2025-02-09 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:31:18] Production.INFO: count ==1445 [2025-02-09 15:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:31:05 - End Time 2025-02-09 15:31:05 [2025-02-09 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437991', 'tblTempUsageDetail_20' ) start [2025-02-09 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437991', 'tblTempUsageDetail_20' ) end [2025-02-09 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437991', 'tblTempVendorCDR_20' ) start [2025-02-09 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437991', 'tblTempVendorCDR_20' ) end [2025-02-09 15:31:19] Production.INFO: ProcessCDR(1,14437991,1,1,2) [2025-02-09 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437991', 'tblTempUsageDetail_20' ) start [2025-02-09 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437991', 'tblTempUsageDetail_20' ) end [2025-02-09 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:31:23] Production.INFO: ==10639== Releasing lock... [2025-02-09 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:31:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:32:05 [end_date_ymd] => 2025-02-09 15:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:32:05' and `end` < '2025-02-09 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-02-09 15:32:19] Production.INFO: count ==1443 [2025-02-09 15:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:32:05 - End Time 2025-02-09 15:32:05 [2025-02-09 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437996', 'tblTempUsageDetail_20' ) start [2025-02-09 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14437996', 'tblTempUsageDetail_20' ) end [2025-02-09 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437996', 'tblTempVendorCDR_20' ) start [2025-02-09 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14437996', 'tblTempVendorCDR_20' ) end [2025-02-09 15:32:19] Production.INFO: ProcessCDR(1,14437996,1,1,2) [2025-02-09 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14437996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14437996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14437996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14437996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437996', 'tblTempUsageDetail_20' ) start [2025-02-09 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14437996', 'tblTempUsageDetail_20' ) end [2025-02-09 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:32:22] Production.INFO: ==10710== Releasing lock... [2025-02-09 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:32:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:33:05 [end_date_ymd] => 2025-02-09 15:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:33:05' and `end` < '2025-02-09 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-02-09 15:33:19] Production.INFO: count ==1444 [2025-02-09 15:33:20] Production.ERROR: pbx CDR StartTime 2025-02-09 12:33:05 - End Time 2025-02-09 15:33:05 [2025-02-09 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438001', 'tblTempUsageDetail_20' ) start [2025-02-09 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438001', 'tblTempUsageDetail_20' ) end [2025-02-09 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438001', 'tblTempVendorCDR_20' ) start [2025-02-09 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438001', 'tblTempVendorCDR_20' ) end [2025-02-09 15:33:20] Production.INFO: ProcessCDR(1,14438001,1,1,2) [2025-02-09 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438001', 'tblTempUsageDetail_20' ) start [2025-02-09 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438001', 'tblTempUsageDetail_20' ) end [2025-02-09 15:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:33:24] Production.INFO: ==10823== Releasing lock... [2025-02-09 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:33:24] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:34:04 [end_date_ymd] => 2025-02-09 15:34:04 [RateCDR] => 1 ) [2025-02-09 15:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:34:04' and `end` < '2025-02-09 15:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:34:17] Production.INFO: count ==1445 [2025-02-09 15:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:34:04 - End Time 2025-02-09 15:34:04 [2025-02-09 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438006', 'tblTempUsageDetail_20' ) start [2025-02-09 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438006', 'tblTempUsageDetail_20' ) end [2025-02-09 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438006', 'tblTempVendorCDR_20' ) start [2025-02-09 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438006', 'tblTempVendorCDR_20' ) end [2025-02-09 15:34:18] Production.INFO: ProcessCDR(1,14438006,1,1,2) [2025-02-09 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438006', 'tblTempUsageDetail_20' ) start [2025-02-09 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438006', 'tblTempUsageDetail_20' ) end [2025-02-09 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:34:22] Production.INFO: ==10895== Releasing lock... [2025-02-09 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:34:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:35:05 [end_date_ymd] => 2025-02-09 15:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:35:05' and `end` < '2025-02-09 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-02-09 15:35:18] Production.INFO: count ==1445 [2025-02-09 15:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:35:05 - End Time 2025-02-09 15:35:05 [2025-02-09 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438011', 'tblTempUsageDetail_20' ) start [2025-02-09 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438011', 'tblTempUsageDetail_20' ) end [2025-02-09 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438011', 'tblTempVendorCDR_20' ) start [2025-02-09 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438011', 'tblTempVendorCDR_20' ) end [2025-02-09 15:35:18] Production.INFO: ProcessCDR(1,14438011,1,1,2) [2025-02-09 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438011', 'tblTempUsageDetail_20' ) start [2025-02-09 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438011', 'tblTempUsageDetail_20' ) end [2025-02-09 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:35:22] Production.INFO: ==10970== Releasing lock... [2025-02-09 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:35:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:36:04 [end_date_ymd] => 2025-02-09 15:36:04 [RateCDR] => 1 ) [2025-02-09 15:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:36:04' and `end` < '2025-02-09 15:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:36:19] Production.INFO: count ==1432 [2025-02-09 15:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:36:04 - End Time 2025-02-09 15:36:04 [2025-02-09 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438016', 'tblTempUsageDetail_20' ) start [2025-02-09 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438016', 'tblTempUsageDetail_20' ) end [2025-02-09 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438016', 'tblTempVendorCDR_20' ) start [2025-02-09 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438016', 'tblTempVendorCDR_20' ) end [2025-02-09 15:36:19] Production.INFO: ProcessCDR(1,14438016,1,1,2) [2025-02-09 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438016', 'tblTempUsageDetail_20' ) start [2025-02-09 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438016', 'tblTempUsageDetail_20' ) end [2025-02-09 15:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:36:24] Production.INFO: ==11042== Releasing lock... [2025-02-09 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:36:24] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:37:05 [end_date_ymd] => 2025-02-09 15:37:05 [RateCDR] => 1 ) [2025-02-09 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:37:05' and `end` < '2025-02-09 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:37:18] Production.INFO: count ==1420 [2025-02-09 15:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:37:05 - End Time 2025-02-09 15:37:05 [2025-02-09 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438021', 'tblTempUsageDetail_20' ) start [2025-02-09 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438021', 'tblTempUsageDetail_20' ) end [2025-02-09 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438021', 'tblTempVendorCDR_20' ) start [2025-02-09 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438021', 'tblTempVendorCDR_20' ) end [2025-02-09 15:37:18] Production.INFO: ProcessCDR(1,14438021,1,1,2) [2025-02-09 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438021', 'tblTempUsageDetail_20' ) start [2025-02-09 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438021', 'tblTempUsageDetail_20' ) end [2025-02-09 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:37:23] Production.INFO: ==11115== Releasing lock... [2025-02-09 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:37:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:38:06 [end_date_ymd] => 2025-02-09 15:38:06 [RateCDR] => 1 ) [2025-02-09 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:38:06' and `end` < '2025-02-09 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:38:19] Production.INFO: count ==1406 [2025-02-09 15:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:38:06 - End Time 2025-02-09 15:38:06 [2025-02-09 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438026', 'tblTempUsageDetail_20' ) start [2025-02-09 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438026', 'tblTempUsageDetail_20' ) end [2025-02-09 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438026', 'tblTempVendorCDR_20' ) start [2025-02-09 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438026', 'tblTempVendorCDR_20' ) end [2025-02-09 15:38:19] Production.INFO: ProcessCDR(1,14438026,1,1,2) [2025-02-09 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438026', 'tblTempUsageDetail_20' ) start [2025-02-09 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438026', 'tblTempUsageDetail_20' ) end [2025-02-09 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:38:22] Production.INFO: ==11187== Releasing lock... [2025-02-09 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:38:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:39:05 [end_date_ymd] => 2025-02-09 15:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:39:05' and `end` < '2025-02-09 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-02-09 15:39:18] Production.INFO: count ==1407 [2025-02-09 15:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:39:05 - End Time 2025-02-09 15:39:05 [2025-02-09 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438031', 'tblTempUsageDetail_20' ) start [2025-02-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438031', 'tblTempUsageDetail_20' ) end [2025-02-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438031', 'tblTempVendorCDR_20' ) start [2025-02-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438031', 'tblTempVendorCDR_20' ) end [2025-02-09 15:39:18] Production.INFO: ProcessCDR(1,14438031,1,1,2) [2025-02-09 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438031', 'tblTempUsageDetail_20' ) start [2025-02-09 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438031', 'tblTempUsageDetail_20' ) end [2025-02-09 15:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:39:23] Production.INFO: ==11259== Releasing lock... [2025-02-09 15:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:39:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:40:06 [end_date_ymd] => 2025-02-09 15:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:40:06' and `end` < '2025-02-09 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-02-09 15:40:19] Production.INFO: count ==1411 [2025-02-09 15:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 12:40:06 - End Time 2025-02-09 15:40:06 [2025-02-09 15:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438037', 'tblTempUsageDetail_20' ) start [2025-02-09 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438037', 'tblTempUsageDetail_20' ) end [2025-02-09 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438037', 'tblTempVendorCDR_20' ) start [2025-02-09 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438037', 'tblTempVendorCDR_20' ) end [2025-02-09 15:40:20] Production.INFO: ProcessCDR(1,14438037,1,1,2) [2025-02-09 15:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438037', 'tblTempUsageDetail_20' ) start [2025-02-09 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438037', 'tblTempUsageDetail_20' ) end [2025-02-09 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:40:24] Production.INFO: ==11332== Releasing lock... [2025-02-09 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:41:05 [end_date_ymd] => 2025-02-09 15:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:41:05' and `end` < '2025-02-09 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-02-09 15:41:18] Production.INFO: count ==1391 [2025-02-09 15:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:41:05 - End Time 2025-02-09 15:41:05 [2025-02-09 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438042', 'tblTempUsageDetail_20' ) start [2025-02-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438042', 'tblTempUsageDetail_20' ) end [2025-02-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438042', 'tblTempVendorCDR_20' ) start [2025-02-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438042', 'tblTempVendorCDR_20' ) end [2025-02-09 15:41:18] Production.INFO: ProcessCDR(1,14438042,1,1,2) [2025-02-09 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438042', 'tblTempUsageDetail_20' ) start [2025-02-09 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438042', 'tblTempUsageDetail_20' ) end [2025-02-09 15:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:41:21] Production.INFO: ==11406== Releasing lock... [2025-02-09 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:41:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:42:05 [end_date_ymd] => 2025-02-09 15:42:05 [RateCDR] => 1 ) [2025-02-09 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:42:05' and `end` < '2025-02-09 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:42:18] Production.INFO: count ==1384 [2025-02-09 15:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:42:05 - End Time 2025-02-09 15:42:05 [2025-02-09 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438047', 'tblTempUsageDetail_20' ) start [2025-02-09 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438047', 'tblTempUsageDetail_20' ) end [2025-02-09 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438047', 'tblTempVendorCDR_20' ) start [2025-02-09 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438047', 'tblTempVendorCDR_20' ) end [2025-02-09 15:42:19] Production.INFO: ProcessCDR(1,14438047,1,1,2) [2025-02-09 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438047', 'tblTempUsageDetail_20' ) start [2025-02-09 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438047', 'tblTempUsageDetail_20' ) end [2025-02-09 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:42:22] Production.INFO: ==11479== Releasing lock... [2025-02-09 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:42:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:43:05 [end_date_ymd] => 2025-02-09 15:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:43:05' and `end` < '2025-02-09 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-02-09 15:43:18] Production.INFO: count ==1383 [2025-02-09 15:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:43:05 - End Time 2025-02-09 15:43:05 [2025-02-09 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438052', 'tblTempUsageDetail_20' ) start [2025-02-09 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438052', 'tblTempUsageDetail_20' ) end [2025-02-09 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438052', 'tblTempVendorCDR_20' ) start [2025-02-09 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438052', 'tblTempVendorCDR_20' ) end [2025-02-09 15:43:18] Production.INFO: ProcessCDR(1,14438052,1,1,2) [2025-02-09 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438052', 'tblTempUsageDetail_20' ) start [2025-02-09 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438052', 'tblTempUsageDetail_20' ) end [2025-02-09 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:43:21] Production.INFO: ==11554== Releasing lock... [2025-02-09 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:43:21] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:44:05 [end_date_ymd] => 2025-02-09 15:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:44:05' and `end` < '2025-02-09 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-02-09 15:44:19] Production.INFO: count ==1383 [2025-02-09 15:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:44:05 - End Time 2025-02-09 15:44:05 [2025-02-09 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438057', 'tblTempUsageDetail_20' ) start [2025-02-09 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438057', 'tblTempUsageDetail_20' ) end [2025-02-09 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438057', 'tblTempVendorCDR_20' ) start [2025-02-09 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438057', 'tblTempVendorCDR_20' ) end [2025-02-09 15:44:19] Production.INFO: ProcessCDR(1,14438057,1,1,2) [2025-02-09 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438057', 'tblTempUsageDetail_20' ) start [2025-02-09 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438057', 'tblTempUsageDetail_20' ) end [2025-02-09 15:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:44:22] Production.INFO: ==11628== Releasing lock... [2025-02-09 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:44:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:45:04 [end_date_ymd] => 2025-02-09 15:45:04 [RateCDR] => 1 ) [2025-02-09 15:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:45:04' and `end` < '2025-02-09 15:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:45:17] Production.INFO: count ==1379 [2025-02-09 15:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:45:04 - End Time 2025-02-09 15:45:04 [2025-02-09 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438062', 'tblTempUsageDetail_20' ) start [2025-02-09 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438062', 'tblTempUsageDetail_20' ) end [2025-02-09 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438062', 'tblTempVendorCDR_20' ) start [2025-02-09 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438062', 'tblTempVendorCDR_20' ) end [2025-02-09 15:45:18] Production.INFO: ProcessCDR(1,14438062,1,1,2) [2025-02-09 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438062', 'tblTempUsageDetail_20' ) start [2025-02-09 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438062', 'tblTempUsageDetail_20' ) end [2025-02-09 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:45:22] Production.INFO: ==11698== Releasing lock... [2025-02-09 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:45:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:46:05 [end_date_ymd] => 2025-02-09 15:46:05 [RateCDR] => 1 ) [2025-02-09 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:46:05' and `end` < '2025-02-09 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:46:18] Production.INFO: count ==1379 [2025-02-09 15:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:46:05 - End Time 2025-02-09 15:46:05 [2025-02-09 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438067', 'tblTempUsageDetail_20' ) start [2025-02-09 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438067', 'tblTempUsageDetail_20' ) end [2025-02-09 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438067', 'tblTempVendorCDR_20' ) start [2025-02-09 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438067', 'tblTempVendorCDR_20' ) end [2025-02-09 15:46:19] Production.INFO: ProcessCDR(1,14438067,1,1,2) [2025-02-09 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438067', 'tblTempUsageDetail_20' ) start [2025-02-09 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438067', 'tblTempUsageDetail_20' ) end [2025-02-09 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:46:24] Production.INFO: ==11770== Releasing lock... [2025-02-09 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:46:24] Production.INFO: 39 MB #Memory Used# [2025-02-09 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:47:05 [end_date_ymd] => 2025-02-09 15:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:47:05' and `end` < '2025-02-09 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-02-09 15:47:18] Production.INFO: count ==1359 [2025-02-09 15:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:47:05 - End Time 2025-02-09 15:47:05 [2025-02-09 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438072', 'tblTempUsageDetail_20' ) start [2025-02-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438072', 'tblTempUsageDetail_20' ) end [2025-02-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438072', 'tblTempVendorCDR_20' ) start [2025-02-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438072', 'tblTempVendorCDR_20' ) end [2025-02-09 15:47:18] Production.INFO: ProcessCDR(1,14438072,1,1,2) [2025-02-09 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438072', 'tblTempUsageDetail_20' ) start [2025-02-09 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438072', 'tblTempUsageDetail_20' ) end [2025-02-09 15:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:47:21] Production.INFO: ==11840== Releasing lock... [2025-02-09 15:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:47:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:48:05 [end_date_ymd] => 2025-02-09 15:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:48:05' and `end` < '2025-02-09 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-02-09 15:48:18] Production.INFO: count ==1350 [2025-02-09 15:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:48:05 - End Time 2025-02-09 15:48:05 [2025-02-09 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438077', 'tblTempUsageDetail_20' ) start [2025-02-09 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438077', 'tblTempUsageDetail_20' ) end [2025-02-09 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438077', 'tblTempVendorCDR_20' ) start [2025-02-09 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438077', 'tblTempVendorCDR_20' ) end [2025-02-09 15:48:19] Production.INFO: ProcessCDR(1,14438077,1,1,2) [2025-02-09 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438077', 'tblTempUsageDetail_20' ) start [2025-02-09 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438077', 'tblTempUsageDetail_20' ) end [2025-02-09 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:48:22] Production.INFO: ==11917== Releasing lock... [2025-02-09 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:48:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:49:05 [end_date_ymd] => 2025-02-09 15:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:49:05' and `end` < '2025-02-09 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-02-09 15:49:18] Production.INFO: count ==1341 [2025-02-09 15:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:49:05 - End Time 2025-02-09 15:49:05 [2025-02-09 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438082', 'tblTempUsageDetail_20' ) start [2025-02-09 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438082', 'tblTempUsageDetail_20' ) end [2025-02-09 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438082', 'tblTempVendorCDR_20' ) start [2025-02-09 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438082', 'tblTempVendorCDR_20' ) end [2025-02-09 15:49:18] Production.INFO: ProcessCDR(1,14438082,1,1,2) [2025-02-09 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438082', 'tblTempUsageDetail_20' ) start [2025-02-09 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438082', 'tblTempUsageDetail_20' ) end [2025-02-09 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:49:21] Production.INFO: ==12027== Releasing lock... [2025-02-09 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:49:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:50:06 [end_date_ymd] => 2025-02-09 15:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:50:06' and `end` < '2025-02-09 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-02-09 15:50:19] Production.INFO: count ==1330 [2025-02-09 15:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:50:06 - End Time 2025-02-09 15:50:06 [2025-02-09 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438087', 'tblTempUsageDetail_20' ) start [2025-02-09 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438087', 'tblTempUsageDetail_20' ) end [2025-02-09 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438087', 'tblTempVendorCDR_20' ) start [2025-02-09 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438087', 'tblTempVendorCDR_20' ) end [2025-02-09 15:50:19] Production.INFO: ProcessCDR(1,14438087,1,1,2) [2025-02-09 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438087', 'tblTempUsageDetail_20' ) start [2025-02-09 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438087', 'tblTempUsageDetail_20' ) end [2025-02-09 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:50:22] Production.INFO: ==12108== Releasing lock... [2025-02-09 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:50:22] Production.INFO: 38 MB #Memory Used# [2025-02-09 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:51:05 [end_date_ymd] => 2025-02-09 15:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:51:05' and `end` < '2025-02-09 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-02-09 15:51:19] Production.INFO: count ==1342 [2025-02-09 15:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:51:05 - End Time 2025-02-09 15:51:05 [2025-02-09 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438093', 'tblTempUsageDetail_20' ) start [2025-02-09 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438093', 'tblTempUsageDetail_20' ) end [2025-02-09 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438093', 'tblTempVendorCDR_20' ) start [2025-02-09 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438093', 'tblTempVendorCDR_20' ) end [2025-02-09 15:51:19] Production.INFO: ProcessCDR(1,14438093,1,1,2) [2025-02-09 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438093', 'tblTempUsageDetail_20' ) start [2025-02-09 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438093', 'tblTempUsageDetail_20' ) end [2025-02-09 15:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:51:24] Production.INFO: ==12181== Releasing lock... [2025-02-09 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:51:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:52:05 [end_date_ymd] => 2025-02-09 15:52:05 [RateCDR] => 1 ) [2025-02-09 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:52:05' and `end` < '2025-02-09 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:52:18] Production.INFO: count ==1330 [2025-02-09 15:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:52:05 - End Time 2025-02-09 15:52:05 [2025-02-09 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438098', 'tblTempUsageDetail_20' ) start [2025-02-09 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438098', 'tblTempUsageDetail_20' ) end [2025-02-09 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438098', 'tblTempVendorCDR_20' ) start [2025-02-09 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438098', 'tblTempVendorCDR_20' ) end [2025-02-09 15:52:19] Production.INFO: ProcessCDR(1,14438098,1,1,2) [2025-02-09 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438098', 'tblTempUsageDetail_20' ) start [2025-02-09 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438098', 'tblTempUsageDetail_20' ) end [2025-02-09 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:52:22] Production.INFO: ==12253== Releasing lock... [2025-02-09 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:52:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:53:04 [end_date_ymd] => 2025-02-09 15:53:04 [RateCDR] => 1 ) [2025-02-09 15:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:53:04' and `end` < '2025-02-09 15:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:53:17] Production.INFO: count ==1306 [2025-02-09 15:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:53:04 - End Time 2025-02-09 15:53:04 [2025-02-09 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438103', 'tblTempUsageDetail_20' ) start [2025-02-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438103', 'tblTempUsageDetail_20' ) end [2025-02-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438103', 'tblTempVendorCDR_20' ) start [2025-02-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438103', 'tblTempVendorCDR_20' ) end [2025-02-09 15:53:18] Production.INFO: ProcessCDR(1,14438103,1,1,2) [2025-02-09 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438103', 'tblTempUsageDetail_20' ) start [2025-02-09 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438103', 'tblTempUsageDetail_20' ) end [2025-02-09 15:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:53:21] Production.INFO: ==12325== Releasing lock... [2025-02-09 15:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:53:21] Production.INFO: 38 MB #Memory Used# [2025-02-09 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:54:05 [end_date_ymd] => 2025-02-09 15:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:54:05' and `end` < '2025-02-09 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-02-09 15:54:18] Production.INFO: count ==1295 [2025-02-09 15:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:54:05 - End Time 2025-02-09 15:54:05 [2025-02-09 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438108', 'tblTempUsageDetail_20' ) start [2025-02-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438108', 'tblTempUsageDetail_20' ) end [2025-02-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438108', 'tblTempVendorCDR_20' ) start [2025-02-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438108', 'tblTempVendorCDR_20' ) end [2025-02-09 15:54:18] Production.INFO: ProcessCDR(1,14438108,1,1,2) [2025-02-09 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438108', 'tblTempUsageDetail_20' ) start [2025-02-09 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438108', 'tblTempUsageDetail_20' ) end [2025-02-09 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:54:23] Production.INFO: ==12399== Releasing lock... [2025-02-09 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:54:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:55:05 [end_date_ymd] => 2025-02-09 15:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:55:05' and `end` < '2025-02-09 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-02-09 15:55:18] Production.INFO: count ==1284 [2025-02-09 15:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:55:05 - End Time 2025-02-09 15:55:05 [2025-02-09 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438113', 'tblTempUsageDetail_20' ) start [2025-02-09 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438113', 'tblTempUsageDetail_20' ) end [2025-02-09 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438113', 'tblTempVendorCDR_20' ) start [2025-02-09 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438113', 'tblTempVendorCDR_20' ) end [2025-02-09 15:55:19] Production.INFO: ProcessCDR(1,14438113,1,1,2) [2025-02-09 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438113', 'tblTempUsageDetail_20' ) start [2025-02-09 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438113', 'tblTempUsageDetail_20' ) end [2025-02-09 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:55:22] Production.INFO: ==12470== Releasing lock... [2025-02-09 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:56:05 [end_date_ymd] => 2025-02-09 15:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:56:05' and `end` < '2025-02-09 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-02-09 15:56:18] Production.INFO: count ==1278 [2025-02-09 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 12:56:05 - End Time 2025-02-09 15:56:05 [2025-02-09 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438118', 'tblTempUsageDetail_20' ) start [2025-02-09 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438118', 'tblTempUsageDetail_20' ) end [2025-02-09 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438118', 'tblTempVendorCDR_20' ) start [2025-02-09 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438118', 'tblTempVendorCDR_20' ) end [2025-02-09 15:56:19] Production.INFO: ProcessCDR(1,14438118,1,1,2) [2025-02-09 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438118', 'tblTempUsageDetail_20' ) start [2025-02-09 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438118', 'tblTempUsageDetail_20' ) end [2025-02-09 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:56:23] Production.INFO: ==12544== Releasing lock... [2025-02-09 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:56:23] Production.INFO: 38 MB #Memory Used# [2025-02-09 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:57:05 [end_date_ymd] => 2025-02-09 15:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:57:05' and `end` < '2025-02-09 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-02-09 15:57:18] Production.INFO: count ==1268 [2025-02-09 15:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:57:05 - End Time 2025-02-09 15:57:05 [2025-02-09 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438123', 'tblTempUsageDetail_20' ) start [2025-02-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438123', 'tblTempUsageDetail_20' ) end [2025-02-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438123', 'tblTempVendorCDR_20' ) start [2025-02-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438123', 'tblTempVendorCDR_20' ) end [2025-02-09 15:57:18] Production.INFO: ProcessCDR(1,14438123,1,1,2) [2025-02-09 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438123', 'tblTempUsageDetail_20' ) start [2025-02-09 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438123', 'tblTempUsageDetail_20' ) end [2025-02-09 15:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:57:23] Production.INFO: ==12621== Releasing lock... [2025-02-09 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:57:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:58:05 [end_date_ymd] => 2025-02-09 15:58:05 [RateCDR] => 1 ) [2025-02-09 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 12:58:05' and `end` < '2025-02-09 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 15:58:18] Production.INFO: count ==1257 [2025-02-09 15:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:58:05 - End Time 2025-02-09 15:58:05 [2025-02-09 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438128', 'tblTempUsageDetail_20' ) start [2025-02-09 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438128', 'tblTempUsageDetail_20' ) end [2025-02-09 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438128', 'tblTempVendorCDR_20' ) start [2025-02-09 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438128', 'tblTempVendorCDR_20' ) end [2025-02-09 15:58:18] Production.INFO: ProcessCDR(1,14438128,1,1,2) [2025-02-09 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438128', 'tblTempUsageDetail_20' ) start [2025-02-09 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438128', 'tblTempUsageDetail_20' ) end [2025-02-09 15:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:58:21] Production.INFO: ==12693== Releasing lock... [2025-02-09 15:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:58:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 12:59:05 [end_date_ymd] => 2025-02-09 15:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 12:59:05' and `end` < '2025-02-09 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-02-09 15:59:18] Production.INFO: count ==1254 [2025-02-09 15:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 12:59:05 - End Time 2025-02-09 15:59:05 [2025-02-09 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438133', 'tblTempUsageDetail_20' ) start [2025-02-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438133', 'tblTempUsageDetail_20' ) end [2025-02-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438133', 'tblTempVendorCDR_20' ) start [2025-02-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438133', 'tblTempVendorCDR_20' ) end [2025-02-09 15:59:18] Production.INFO: ProcessCDR(1,14438133,1,1,2) [2025-02-09 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438133', 'tblTempUsageDetail_20' ) start [2025-02-09 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438133', 'tblTempUsageDetail_20' ) end [2025-02-09 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 15:59:21] Production.INFO: ==12764== Releasing lock... [2025-02-09 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 15:59:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:00:05 [end_date_ymd] => 2025-02-09 16:00:05 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:00:05' and `end` < '2025-02-09 16: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-02-09 16:00:18] Production.INFO: count ==1243 [2025-02-09 16:00:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:00:05 - End Time 2025-02-09 16:00:05 [2025-02-09 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438138', 'tblTempUsageDetail_20' ) start [2025-02-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438138', 'tblTempUsageDetail_20' ) end [2025-02-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438138', 'tblTempVendorCDR_20' ) start [2025-02-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438138', 'tblTempVendorCDR_20' ) end [2025-02-09 16:00:18] Production.INFO: ProcessCDR(1,14438138,1,1,2) [2025-02-09 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438138', 'tblTempUsageDetail_20' ) start [2025-02-09 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438138', 'tblTempUsageDetail_20' ) end [2025-02-09 16:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:00:22] Production.INFO: ==12843== Releasing lock... [2025-02-09 16:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:01:05 [end_date_ymd] => 2025-02-09 16:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:01:05' and `end` < '2025-02-09 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-02-09 16:01:18] Production.INFO: count ==1245 [2025-02-09 16:01:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:01:05 - End Time 2025-02-09 16:01:05 [2025-02-09 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438144', 'tblTempUsageDetail_20' ) start [2025-02-09 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438144', 'tblTempUsageDetail_20' ) end [2025-02-09 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438144', 'tblTempVendorCDR_20' ) start [2025-02-09 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438144', 'tblTempVendorCDR_20' ) end [2025-02-09 16:01:18] Production.INFO: ProcessCDR(1,14438144,1,1,2) [2025-02-09 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438144', 'tblTempUsageDetail_20' ) start [2025-02-09 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438144', 'tblTempUsageDetail_20' ) end [2025-02-09 16:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:01:21] Production.INFO: ==12929== Releasing lock... [2025-02-09 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:02:05 [end_date_ymd] => 2025-02-09 16:02:05 [RateCDR] => 1 ) [2025-02-09 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:02:05' and `end` < '2025-02-09 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:02:19] Production.INFO: count ==1237 [2025-02-09 16:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:02:05 - End Time 2025-02-09 16:02:05 [2025-02-09 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438149', 'tblTempUsageDetail_20' ) start [2025-02-09 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438149', 'tblTempUsageDetail_20' ) end [2025-02-09 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438149', 'tblTempVendorCDR_20' ) start [2025-02-09 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438149', 'tblTempVendorCDR_20' ) end [2025-02-09 16:02:19] Production.INFO: ProcessCDR(1,14438149,1,1,2) [2025-02-09 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438149', 'tblTempUsageDetail_20' ) start [2025-02-09 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438149', 'tblTempUsageDetail_20' ) end [2025-02-09 16:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:02:24] Production.INFO: ==13005== Releasing lock... [2025-02-09 16:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:02:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:03:05 [end_date_ymd] => 2025-02-09 16:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:03:05' and `end` < '2025-02-09 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-02-09 16:03:19] Production.INFO: count ==1232 [2025-02-09 16:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:03:05 - End Time 2025-02-09 16:03:05 [2025-02-09 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438154', 'tblTempUsageDetail_20' ) start [2025-02-09 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438154', 'tblTempUsageDetail_20' ) end [2025-02-09 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438154', 'tblTempVendorCDR_20' ) start [2025-02-09 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438154', 'tblTempVendorCDR_20' ) end [2025-02-09 16:03:19] Production.INFO: ProcessCDR(1,14438154,1,1,2) [2025-02-09 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438154', 'tblTempUsageDetail_20' ) start [2025-02-09 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438154', 'tblTempUsageDetail_20' ) end [2025-02-09 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:03:24] Production.INFO: ==13078== Releasing lock... [2025-02-09 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:03:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:04:06 [end_date_ymd] => 2025-02-09 16:04:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:04:06' and `end` < '2025-02-09 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-02-09 16:04:20] Production.INFO: count ==1215 [2025-02-09 16:04:20] Production.ERROR: pbx CDR StartTime 2025-02-09 13:04:06 - End Time 2025-02-09 16:04:06 [2025-02-09 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438159', 'tblTempUsageDetail_20' ) start [2025-02-09 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438159', 'tblTempUsageDetail_20' ) end [2025-02-09 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438159', 'tblTempVendorCDR_20' ) start [2025-02-09 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438159', 'tblTempVendorCDR_20' ) end [2025-02-09 16:04:20] Production.INFO: ProcessCDR(1,14438159,1,1,2) [2025-02-09 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438159', 'tblTempUsageDetail_20' ) start [2025-02-09 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438159', 'tblTempUsageDetail_20' ) end [2025-02-09 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:04:24] Production.INFO: ==13195== Releasing lock... [2025-02-09 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:04:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:05:05 [end_date_ymd] => 2025-02-09 16:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:05:05' and `end` < '2025-02-09 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-02-09 16:05:19] Production.INFO: count ==1209 [2025-02-09 16:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:05:05 - End Time 2025-02-09 16:05:05 [2025-02-09 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438164', 'tblTempUsageDetail_20' ) start [2025-02-09 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438164', 'tblTempUsageDetail_20' ) end [2025-02-09 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438164', 'tblTempVendorCDR_20' ) start [2025-02-09 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438164', 'tblTempVendorCDR_20' ) end [2025-02-09 16:05:19] Production.INFO: ProcessCDR(1,14438164,1,1,2) [2025-02-09 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438164', 'tblTempUsageDetail_20' ) start [2025-02-09 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438164', 'tblTempUsageDetail_20' ) end [2025-02-09 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:05:22] Production.INFO: ==13270== Releasing lock... [2025-02-09 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:05:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:06:05 [end_date_ymd] => 2025-02-09 16:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:06:05' and `end` < '2025-02-09 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-02-09 16:06:18] Production.INFO: count ==1208 [2025-02-09 16:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:06:05 - End Time 2025-02-09 16:06:05 [2025-02-09 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438169', 'tblTempUsageDetail_20' ) start [2025-02-09 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438169', 'tblTempUsageDetail_20' ) end [2025-02-09 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438169', 'tblTempVendorCDR_20' ) start [2025-02-09 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438169', 'tblTempVendorCDR_20' ) end [2025-02-09 16:06:19] Production.INFO: ProcessCDR(1,14438169,1,1,2) [2025-02-09 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438169', 'tblTempUsageDetail_20' ) start [2025-02-09 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438169', 'tblTempUsageDetail_20' ) end [2025-02-09 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:06:22] Production.INFO: ==13346== Releasing lock... [2025-02-09 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:06:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:07:05 [end_date_ymd] => 2025-02-09 16:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:07:05' and `end` < '2025-02-09 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-02-09 16:07:18] Production.INFO: count ==1201 [2025-02-09 16:07:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:07:05 - End Time 2025-02-09 16:07:05 [2025-02-09 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438174', 'tblTempUsageDetail_20' ) start [2025-02-09 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438174', 'tblTempUsageDetail_20' ) end [2025-02-09 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438174', 'tblTempVendorCDR_20' ) start [2025-02-09 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438174', 'tblTempVendorCDR_20' ) end [2025-02-09 16:07:18] Production.INFO: ProcessCDR(1,14438174,1,1,2) [2025-02-09 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438174', 'tblTempUsageDetail_20' ) start [2025-02-09 16:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438174', 'tblTempUsageDetail_20' ) end [2025-02-09 16:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:07:21] Production.INFO: ==13417== Releasing lock... [2025-02-09 16:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:07:21] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:08:05 [end_date_ymd] => 2025-02-09 16:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:08:05' and `end` < '2025-02-09 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-02-09 16:08:18] Production.INFO: count ==1204 [2025-02-09 16:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:08:05 - End Time 2025-02-09 16:08:05 [2025-02-09 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438179', 'tblTempUsageDetail_20' ) start [2025-02-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438179', 'tblTempUsageDetail_20' ) end [2025-02-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438179', 'tblTempVendorCDR_20' ) start [2025-02-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438179', 'tblTempVendorCDR_20' ) end [2025-02-09 16:08:18] Production.INFO: ProcessCDR(1,14438179,1,1,2) [2025-02-09 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438179', 'tblTempUsageDetail_20' ) start [2025-02-09 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438179', 'tblTempUsageDetail_20' ) end [2025-02-09 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:08:23] Production.INFO: ==13494== Releasing lock... [2025-02-09 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:08:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:09:05 [end_date_ymd] => 2025-02-09 16:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:09:05' and `end` < '2025-02-09 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-02-09 16:09:19] Production.INFO: count ==1202 [2025-02-09 16:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:09:05 - End Time 2025-02-09 16:09:05 [2025-02-09 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438184', 'tblTempUsageDetail_20' ) start [2025-02-09 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438184', 'tblTempUsageDetail_20' ) end [2025-02-09 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438184', 'tblTempVendorCDR_20' ) start [2025-02-09 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438184', 'tblTempVendorCDR_20' ) end [2025-02-09 16:09:19] Production.INFO: ProcessCDR(1,14438184,1,1,2) [2025-02-09 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438184', 'tblTempUsageDetail_20' ) start [2025-02-09 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438184', 'tblTempUsageDetail_20' ) end [2025-02-09 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:09:24] Production.INFO: ==13573== Releasing lock... [2025-02-09 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:09:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:10:05 [end_date_ymd] => 2025-02-09 16:10:05 [RateCDR] => 1 ) [2025-02-09 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:10:05' and `end` < '2025-02-09 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:10:19] Production.INFO: count ==1188 [2025-02-09 16:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 13:10:05 - End Time 2025-02-09 16:10:05 [2025-02-09 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438189', 'tblTempUsageDetail_20' ) start [2025-02-09 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438189', 'tblTempUsageDetail_20' ) end [2025-02-09 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438189', 'tblTempVendorCDR_20' ) start [2025-02-09 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438189', 'tblTempVendorCDR_20' ) end [2025-02-09 16:10:20] Production.INFO: ProcessCDR(1,14438189,1,1,2) [2025-02-09 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438189', 'tblTempUsageDetail_20' ) start [2025-02-09 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438189', 'tblTempUsageDetail_20' ) end [2025-02-09 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:10:24] Production.INFO: ==13650== Releasing lock... [2025-02-09 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:10:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:11:04 [end_date_ymd] => 2025-02-09 16:11:04 [RateCDR] => 1 ) [2025-02-09 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:11:04' and `end` < '2025-02-09 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:11:17] Production.INFO: count ==1207 [2025-02-09 16:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:11:04 - End Time 2025-02-09 16:11:04 [2025-02-09 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438195', 'tblTempUsageDetail_20' ) start [2025-02-09 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438195', 'tblTempUsageDetail_20' ) end [2025-02-09 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438195', 'tblTempVendorCDR_20' ) start [2025-02-09 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438195', 'tblTempVendorCDR_20' ) end [2025-02-09 16:11:18] Production.INFO: ProcessCDR(1,14438195,1,1,2) [2025-02-09 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438195', 'tblTempUsageDetail_20' ) start [2025-02-09 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438195', 'tblTempUsageDetail_20' ) end [2025-02-09 16:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:11:22] Production.INFO: ==13732== Releasing lock... [2025-02-09 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:12:05 [end_date_ymd] => 2025-02-09 16:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:12:05' and `end` < '2025-02-09 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-02-09 16:12:19] Production.INFO: count ==1212 [2025-02-09 16:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:12:05 - End Time 2025-02-09 16:12:05 [2025-02-09 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438200', 'tblTempUsageDetail_20' ) start [2025-02-09 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438200', 'tblTempUsageDetail_20' ) end [2025-02-09 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438200', 'tblTempVendorCDR_20' ) start [2025-02-09 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438200', 'tblTempVendorCDR_20' ) end [2025-02-09 16:12:19] Production.INFO: ProcessCDR(1,14438200,1,1,2) [2025-02-09 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438200', 'tblTempUsageDetail_20' ) start [2025-02-09 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438200', 'tblTempUsageDetail_20' ) end [2025-02-09 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:12:24] Production.INFO: ==13811== Releasing lock... [2025-02-09 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:12:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:13:06 [end_date_ymd] => 2025-02-09 16:13:06 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:13:06' and `end` < '2025-02-09 16: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-02-09 16:13:19] Production.INFO: count ==1206 [2025-02-09 16:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:13:06 - End Time 2025-02-09 16:13:06 [2025-02-09 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438205', 'tblTempUsageDetail_20' ) start [2025-02-09 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438205', 'tblTempUsageDetail_20' ) end [2025-02-09 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438205', 'tblTempVendorCDR_20' ) start [2025-02-09 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438205', 'tblTempVendorCDR_20' ) end [2025-02-09 16:13:19] Production.INFO: ProcessCDR(1,14438205,1,1,2) [2025-02-09 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438205', 'tblTempUsageDetail_20' ) start [2025-02-09 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438205', 'tblTempUsageDetail_20' ) end [2025-02-09 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:13:23] Production.INFO: ==13885== Releasing lock... [2025-02-09 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:13:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:14:05 [end_date_ymd] => 2025-02-09 16:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:14:05' and `end` < '2025-02-09 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-02-09 16:14:19] Production.INFO: count ==1203 [2025-02-09 16:14:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:14:05 - End Time 2025-02-09 16:14:05 [2025-02-09 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438208', 'tblTempUsageDetail_20' ) start [2025-02-09 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438208', 'tblTempUsageDetail_20' ) end [2025-02-09 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438208', 'tblTempVendorCDR_20' ) start [2025-02-09 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438208', 'tblTempVendorCDR_20' ) end [2025-02-09 16:14:19] Production.INFO: ProcessCDR(1,14438208,1,1,2) [2025-02-09 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438208', 'tblTempUsageDetail_20' ) start [2025-02-09 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438208', 'tblTempUsageDetail_20' ) end [2025-02-09 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:14:24] Production.INFO: ==13960== Releasing lock... [2025-02-09 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:14:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:15:05 [end_date_ymd] => 2025-02-09 16:15:05 [RateCDR] => 1 ) [2025-02-09 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:15:05' and `end` < '2025-02-09 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:15:18] Production.INFO: count ==1198 [2025-02-09 16:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:15:05 - End Time 2025-02-09 16:15:05 [2025-02-09 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438215', 'tblTempUsageDetail_20' ) start [2025-02-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438215', 'tblTempUsageDetail_20' ) end [2025-02-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438215', 'tblTempVendorCDR_20' ) start [2025-02-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438215', 'tblTempVendorCDR_20' ) end [2025-02-09 16:15:18] Production.INFO: ProcessCDR(1,14438215,1,1,2) [2025-02-09 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438215', 'tblTempUsageDetail_20' ) start [2025-02-09 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438215', 'tblTempUsageDetail_20' ) end [2025-02-09 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:15:23] Production.INFO: ==14033== Releasing lock... [2025-02-09 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:15:23] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:16:05 [end_date_ymd] => 2025-02-09 16:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:16:05' and `end` < '2025-02-09 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-02-09 16:16:18] Production.INFO: count ==1193 [2025-02-09 16:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:16:05 - End Time 2025-02-09 16:16:05 [2025-02-09 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438220', 'tblTempUsageDetail_20' ) start [2025-02-09 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438220', 'tblTempUsageDetail_20' ) end [2025-02-09 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438220', 'tblTempVendorCDR_20' ) start [2025-02-09 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438220', 'tblTempVendorCDR_20' ) end [2025-02-09 16:16:18] Production.INFO: ProcessCDR(1,14438220,1,1,2) [2025-02-09 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438220', 'tblTempUsageDetail_20' ) start [2025-02-09 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438220', 'tblTempUsageDetail_20' ) end [2025-02-09 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:16:23] Production.INFO: ==14111== Releasing lock... [2025-02-09 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:16:23] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:17:04 [end_date_ymd] => 2025-02-09 16:17:04 [RateCDR] => 1 ) [2025-02-09 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:17:04' and `end` < '2025-02-09 16: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-02-09 16:17:18] Production.INFO: count ==1192 [2025-02-09 16:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:17:04 - End Time 2025-02-09 16:17:04 [2025-02-09 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438225', 'tblTempUsageDetail_20' ) start [2025-02-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438225', 'tblTempUsageDetail_20' ) end [2025-02-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438225', 'tblTempVendorCDR_20' ) start [2025-02-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438225', 'tblTempVendorCDR_20' ) end [2025-02-09 16:17:18] Production.INFO: ProcessCDR(1,14438225,1,1,2) [2025-02-09 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438225', 'tblTempUsageDetail_20' ) start [2025-02-09 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438225', 'tblTempUsageDetail_20' ) end [2025-02-09 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:17:23] Production.INFO: ==14184== Releasing lock... [2025-02-09 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:17:23] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:18:05 [end_date_ymd] => 2025-02-09 16:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:18:05' and `end` < '2025-02-09 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-02-09 16:18:19] Production.INFO: count ==1194 [2025-02-09 16:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:18:05 - End Time 2025-02-09 16:18:05 [2025-02-09 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438230', 'tblTempUsageDetail_20' ) start [2025-02-09 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438230', 'tblTempUsageDetail_20' ) end [2025-02-09 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438230', 'tblTempVendorCDR_20' ) start [2025-02-09 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438230', 'tblTempVendorCDR_20' ) end [2025-02-09 16:18:19] Production.INFO: ProcessCDR(1,14438230,1,1,2) [2025-02-09 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438230', 'tblTempUsageDetail_20' ) start [2025-02-09 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438230', 'tblTempUsageDetail_20' ) end [2025-02-09 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:18:23] Production.INFO: ==14272== Releasing lock... [2025-02-09 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:18:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:19:05 [end_date_ymd] => 2025-02-09 16:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:19:05' and `end` < '2025-02-09 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-02-09 16:19:19] Production.INFO: count ==1191 [2025-02-09 16:19:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:19:05 - End Time 2025-02-09 16:19:05 [2025-02-09 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438235', 'tblTempUsageDetail_20' ) start [2025-02-09 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438235', 'tblTempUsageDetail_20' ) end [2025-02-09 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438235', 'tblTempVendorCDR_20' ) start [2025-02-09 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438235', 'tblTempVendorCDR_20' ) end [2025-02-09 16:19:19] Production.INFO: ProcessCDR(1,14438235,1,1,2) [2025-02-09 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438235', 'tblTempUsageDetail_20' ) start [2025-02-09 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438235', 'tblTempUsageDetail_20' ) end [2025-02-09 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:19:24] Production.INFO: ==14347== Releasing lock... [2025-02-09 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:19:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:20:05 [end_date_ymd] => 2025-02-09 16:20:05 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:20:05' and `end` < '2025-02-09 16: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-02-09 16:20:19] Production.INFO: count ==1177 [2025-02-09 16:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:20:05 - End Time 2025-02-09 16:20:05 [2025-02-09 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438241', 'tblTempUsageDetail_20' ) start [2025-02-09 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438241', 'tblTempUsageDetail_20' ) end [2025-02-09 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438241', 'tblTempVendorCDR_20' ) start [2025-02-09 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438241', 'tblTempVendorCDR_20' ) end [2025-02-09 16:20:19] Production.INFO: ProcessCDR(1,14438241,1,1,2) [2025-02-09 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438241', 'tblTempUsageDetail_20' ) start [2025-02-09 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438241', 'tblTempUsageDetail_20' ) end [2025-02-09 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:20:23] Production.INFO: ==14466== Releasing lock... [2025-02-09 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:20:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:21:05 [end_date_ymd] => 2025-02-09 16:21:05 [RateCDR] => 1 ) [2025-02-09 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:21:05' and `end` < '2025-02-09 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:21:19] Production.INFO: count ==1184 [2025-02-09 16:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:21:05 - End Time 2025-02-09 16:21:05 [2025-02-09 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438246', 'tblTempUsageDetail_20' ) start [2025-02-09 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438246', 'tblTempUsageDetail_20' ) end [2025-02-09 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438246', 'tblTempVendorCDR_20' ) start [2025-02-09 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438246', 'tblTempVendorCDR_20' ) end [2025-02-09 16:21:19] Production.INFO: ProcessCDR(1,14438246,1,1,2) [2025-02-09 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438246', 'tblTempUsageDetail_20' ) start [2025-02-09 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438246', 'tblTempUsageDetail_20' ) end [2025-02-09 16:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:21:24] Production.INFO: ==14540== Releasing lock... [2025-02-09 16:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:21:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:22:05 [end_date_ymd] => 2025-02-09 16:22:05 [RateCDR] => 1 ) [2025-02-09 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:22:05' and `end` < '2025-02-09 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:22:18] Production.INFO: count ==1177 [2025-02-09 16:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:22:05 - End Time 2025-02-09 16:22:05 [2025-02-09 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438251', 'tblTempUsageDetail_20' ) start [2025-02-09 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438251', 'tblTempUsageDetail_20' ) end [2025-02-09 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438251', 'tblTempVendorCDR_20' ) start [2025-02-09 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438251', 'tblTempVendorCDR_20' ) end [2025-02-09 16:22:18] Production.INFO: ProcessCDR(1,14438251,1,1,2) [2025-02-09 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438251', 'tblTempUsageDetail_20' ) start [2025-02-09 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438251', 'tblTempUsageDetail_20' ) end [2025-02-09 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:22:23] Production.INFO: ==14615== Releasing lock... [2025-02-09 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:22:23] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:23:05 [end_date_ymd] => 2025-02-09 16:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:23:05' and `end` < '2025-02-09 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-02-09 16:23:19] Production.INFO: count ==1179 [2025-02-09 16:23:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:23:05 - End Time 2025-02-09 16:23:05 [2025-02-09 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438256', 'tblTempUsageDetail_20' ) start [2025-02-09 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438256', 'tblTempUsageDetail_20' ) end [2025-02-09 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438256', 'tblTempVendorCDR_20' ) start [2025-02-09 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438256', 'tblTempVendorCDR_20' ) end [2025-02-09 16:23:19] Production.INFO: ProcessCDR(1,14438256,1,1,2) [2025-02-09 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438256', 'tblTempUsageDetail_20' ) start [2025-02-09 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438256', 'tblTempUsageDetail_20' ) end [2025-02-09 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:23:24] Production.INFO: ==14690== Releasing lock... [2025-02-09 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:23:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:24:04 [end_date_ymd] => 2025-02-09 16:24:04 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:24:04' and `end` < '2025-02-09 16: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-02-09 16:24:17] Production.INFO: count ==1179 [2025-02-09 16:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:24:04 - End Time 2025-02-09 16:24:04 [2025-02-09 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438261', 'tblTempUsageDetail_20' ) start [2025-02-09 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438261', 'tblTempUsageDetail_20' ) end [2025-02-09 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438261', 'tblTempVendorCDR_20' ) start [2025-02-09 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438261', 'tblTempVendorCDR_20' ) end [2025-02-09 16:24:18] Production.INFO: ProcessCDR(1,14438261,1,1,2) [2025-02-09 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438261', 'tblTempUsageDetail_20' ) start [2025-02-09 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438261', 'tblTempUsageDetail_20' ) end [2025-02-09 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:24:22] Production.INFO: ==14768== Releasing lock... [2025-02-09 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:24:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:25:05 [end_date_ymd] => 2025-02-09 16:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:25:05' and `end` < '2025-02-09 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-02-09 16:25:18] Production.INFO: count ==1170 [2025-02-09 16:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:25:05 - End Time 2025-02-09 16:25:05 [2025-02-09 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438266', 'tblTempUsageDetail_20' ) start [2025-02-09 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438266', 'tblTempUsageDetail_20' ) end [2025-02-09 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438266', 'tblTempVendorCDR_20' ) start [2025-02-09 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438266', 'tblTempVendorCDR_20' ) end [2025-02-09 16:25:18] Production.INFO: ProcessCDR(1,14438266,1,1,2) [2025-02-09 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438266', 'tblTempUsageDetail_20' ) start [2025-02-09 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438266', 'tblTempUsageDetail_20' ) end [2025-02-09 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:25:23] Production.INFO: ==14844== Releasing lock... [2025-02-09 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:25:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:26:05 [end_date_ymd] => 2025-02-09 16:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:26:05' and `end` < '2025-02-09 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-02-09 16:26:18] Production.INFO: count ==1173 [2025-02-09 16:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:26:05 - End Time 2025-02-09 16:26:05 [2025-02-09 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438271', 'tblTempUsageDetail_20' ) start [2025-02-09 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438271', 'tblTempUsageDetail_20' ) end [2025-02-09 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438271', 'tblTempVendorCDR_20' ) start [2025-02-09 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438271', 'tblTempVendorCDR_20' ) end [2025-02-09 16:26:19] Production.INFO: ProcessCDR(1,14438271,1,1,2) [2025-02-09 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438271', 'tblTempUsageDetail_20' ) start [2025-02-09 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438271', 'tblTempUsageDetail_20' ) end [2025-02-09 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:26:23] Production.INFO: ==14921== Releasing lock... [2025-02-09 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:26:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:27:05 [end_date_ymd] => 2025-02-09 16:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:27:05' and `end` < '2025-02-09 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-02-09 16:27:18] Production.INFO: count ==1180 [2025-02-09 16:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:27:05 - End Time 2025-02-09 16:27:05 [2025-02-09 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438276', 'tblTempUsageDetail_20' ) start [2025-02-09 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438276', 'tblTempUsageDetail_20' ) end [2025-02-09 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438276', 'tblTempVendorCDR_20' ) start [2025-02-09 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438276', 'tblTempVendorCDR_20' ) end [2025-02-09 16:27:18] Production.INFO: ProcessCDR(1,14438276,1,1,2) [2025-02-09 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438276', 'tblTempUsageDetail_20' ) start [2025-02-09 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438276', 'tblTempUsageDetail_20' ) end [2025-02-09 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:27:22] Production.INFO: ==14993== Releasing lock... [2025-02-09 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:27:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:28:05 [end_date_ymd] => 2025-02-09 16:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:28:05' and `end` < '2025-02-09 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-02-09 16:28:18] Production.INFO: count ==1182 [2025-02-09 16:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:28:05 - End Time 2025-02-09 16:28:05 [2025-02-09 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438281', 'tblTempUsageDetail_20' ) start [2025-02-09 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438281', 'tblTempUsageDetail_20' ) end [2025-02-09 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438281', 'tblTempVendorCDR_20' ) start [2025-02-09 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438281', 'tblTempVendorCDR_20' ) end [2025-02-09 16:28:19] Production.INFO: ProcessCDR(1,14438281,1,1,2) [2025-02-09 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438281', 'tblTempUsageDetail_20' ) start [2025-02-09 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438281', 'tblTempUsageDetail_20' ) end [2025-02-09 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:28:23] Production.INFO: ==15074== Releasing lock... [2025-02-09 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:28:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:29:05 [end_date_ymd] => 2025-02-09 16:29:05 [RateCDR] => 1 ) [2025-02-09 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:29:05' and `end` < '2025-02-09 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:29:19] Production.INFO: count ==1183 [2025-02-09 16:29:20] Production.ERROR: pbx CDR StartTime 2025-02-09 13:29:05 - End Time 2025-02-09 16:29:05 [2025-02-09 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438286', 'tblTempUsageDetail_20' ) start [2025-02-09 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438286', 'tblTempUsageDetail_20' ) end [2025-02-09 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438286', 'tblTempVendorCDR_20' ) start [2025-02-09 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438286', 'tblTempVendorCDR_20' ) end [2025-02-09 16:29:20] Production.INFO: ProcessCDR(1,14438286,1,1,2) [2025-02-09 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438286', 'tblTempUsageDetail_20' ) start [2025-02-09 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438286', 'tblTempUsageDetail_20' ) end [2025-02-09 16:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:29:24] Production.INFO: ==15147== Releasing lock... [2025-02-09 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:29:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:30:06 [end_date_ymd] => 2025-02-09 16:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:30:06' and `end` < '2025-02-09 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-02-09 16:30:19] Production.INFO: count ==1182 [2025-02-09 16:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:30:06 - End Time 2025-02-09 16:30:06 [2025-02-09 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438292', 'tblTempUsageDetail_20' ) start [2025-02-09 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438292', 'tblTempUsageDetail_20' ) end [2025-02-09 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438292', 'tblTempVendorCDR_20' ) start [2025-02-09 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438292', 'tblTempVendorCDR_20' ) end [2025-02-09 16:30:19] Production.INFO: ProcessCDR(1,14438292,1,1,2) [2025-02-09 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438292', 'tblTempUsageDetail_20' ) start [2025-02-09 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438292', 'tblTempUsageDetail_20' ) end [2025-02-09 16:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:30:24] Production.INFO: ==15228== Releasing lock... [2025-02-09 16:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:30:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:31:05 [end_date_ymd] => 2025-02-09 16:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:31:05' and `end` < '2025-02-09 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-02-09 16:31:18] Production.INFO: count ==1222 [2025-02-09 16:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:31:05 - End Time 2025-02-09 16:31:05 [2025-02-09 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438297', 'tblTempUsageDetail_20' ) start [2025-02-09 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438297', 'tblTempUsageDetail_20' ) end [2025-02-09 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438297', 'tblTempVendorCDR_20' ) start [2025-02-09 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438297', 'tblTempVendorCDR_20' ) end [2025-02-09 16:31:18] Production.INFO: ProcessCDR(1,14438297,1,1,2) [2025-02-09 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438297', 'tblTempUsageDetail_20' ) start [2025-02-09 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438297', 'tblTempUsageDetail_20' ) end [2025-02-09 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:31:23] Production.INFO: ==15303== Releasing lock... [2025-02-09 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:31:23] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:32:05 [end_date_ymd] => 2025-02-09 16:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:32:05' and `end` < '2025-02-09 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-02-09 16:32:19] Production.INFO: count ==1209 [2025-02-09 16:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:32:05 - End Time 2025-02-09 16:32:05 [2025-02-09 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438302', 'tblTempUsageDetail_20' ) start [2025-02-09 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438302', 'tblTempUsageDetail_20' ) end [2025-02-09 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438302', 'tblTempVendorCDR_20' ) start [2025-02-09 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438302', 'tblTempVendorCDR_20' ) end [2025-02-09 16:32:19] Production.INFO: ProcessCDR(1,14438302,1,1,2) [2025-02-09 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438302', 'tblTempUsageDetail_20' ) start [2025-02-09 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438302', 'tblTempUsageDetail_20' ) end [2025-02-09 16:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:32:24] Production.INFO: ==15378== Releasing lock... [2025-02-09 16:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:32:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:33:05 [end_date_ymd] => 2025-02-09 16:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:33:05' and `end` < '2025-02-09 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-02-09 16:33:18] Production.INFO: count ==1208 [2025-02-09 16:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:33:05 - End Time 2025-02-09 16:33:05 [2025-02-09 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438307', 'tblTempUsageDetail_20' ) start [2025-02-09 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438307', 'tblTempUsageDetail_20' ) end [2025-02-09 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438307', 'tblTempVendorCDR_20' ) start [2025-02-09 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438307', 'tblTempVendorCDR_20' ) end [2025-02-09 16:33:18] Production.INFO: ProcessCDR(1,14438307,1,1,2) [2025-02-09 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438307', 'tblTempUsageDetail_20' ) start [2025-02-09 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438307', 'tblTempUsageDetail_20' ) end [2025-02-09 16:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:33:23] Production.INFO: ==15452== Releasing lock... [2025-02-09 16:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:33:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:34:05 [end_date_ymd] => 2025-02-09 16:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:34:05' and `end` < '2025-02-09 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-02-09 16:34:19] Production.INFO: count ==1207 [2025-02-09 16:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:34:05 - End Time 2025-02-09 16:34:05 [2025-02-09 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438312', 'tblTempUsageDetail_20' ) start [2025-02-09 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438312', 'tblTempUsageDetail_20' ) end [2025-02-09 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438312', 'tblTempVendorCDR_20' ) start [2025-02-09 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438312', 'tblTempVendorCDR_20' ) end [2025-02-09 16:34:19] Production.INFO: ProcessCDR(1,14438312,1,1,2) [2025-02-09 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438312', 'tblTempUsageDetail_20' ) start [2025-02-09 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438312', 'tblTempUsageDetail_20' ) end [2025-02-09 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:34:24] Production.INFO: ==15531== Releasing lock... [2025-02-09 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:34:24] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:35:05 [end_date_ymd] => 2025-02-09 16:35:05 [RateCDR] => 1 ) [2025-02-09 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:35:05' and `end` < '2025-02-09 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:35:18] Production.INFO: count ==1213 [2025-02-09 16:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:35:05 - End Time 2025-02-09 16:35:05 [2025-02-09 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438317', 'tblTempUsageDetail_20' ) start [2025-02-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438317', 'tblTempUsageDetail_20' ) end [2025-02-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438317', 'tblTempVendorCDR_20' ) start [2025-02-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438317', 'tblTempVendorCDR_20' ) end [2025-02-09 16:35:18] Production.INFO: ProcessCDR(1,14438317,1,1,2) [2025-02-09 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438317', 'tblTempUsageDetail_20' ) start [2025-02-09 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438317', 'tblTempUsageDetail_20' ) end [2025-02-09 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:35:23] Production.INFO: ==15643== Releasing lock... [2025-02-09 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:35:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:36:05 [end_date_ymd] => 2025-02-09 16:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:36:05' and `end` < '2025-02-09 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-02-09 16:36:18] Production.INFO: count ==1217 [2025-02-09 16:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:36:05 - End Time 2025-02-09 16:36:05 [2025-02-09 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438322', 'tblTempUsageDetail_20' ) start [2025-02-09 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438322', 'tblTempUsageDetail_20' ) end [2025-02-09 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438322', 'tblTempVendorCDR_20' ) start [2025-02-09 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438322', 'tblTempVendorCDR_20' ) end [2025-02-09 16:36:18] Production.INFO: ProcessCDR(1,14438322,1,1,2) [2025-02-09 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438322', 'tblTempUsageDetail_20' ) start [2025-02-09 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438322', 'tblTempUsageDetail_20' ) end [2025-02-09 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:36:23] Production.INFO: ==15721== Releasing lock... [2025-02-09 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:36:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:37:05 [end_date_ymd] => 2025-02-09 16:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:37:05' and `end` < '2025-02-09 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-02-09 16:37:19] Production.INFO: count ==1217 [2025-02-09 16:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:37:05 - End Time 2025-02-09 16:37:05 [2025-02-09 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438327', 'tblTempUsageDetail_20' ) start [2025-02-09 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438327', 'tblTempUsageDetail_20' ) end [2025-02-09 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438327', 'tblTempVendorCDR_20' ) start [2025-02-09 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438327', 'tblTempVendorCDR_20' ) end [2025-02-09 16:37:19] Production.INFO: ProcessCDR(1,14438327,1,1,2) [2025-02-09 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438327', 'tblTempUsageDetail_20' ) start [2025-02-09 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438327', 'tblTempUsageDetail_20' ) end [2025-02-09 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:37:23] Production.INFO: ==15804== Releasing lock... [2025-02-09 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:38:05 [end_date_ymd] => 2025-02-09 16:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:38:05' and `end` < '2025-02-09 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-02-09 16:38:21] Production.INFO: count ==1221 [2025-02-09 16:38:21] Production.ERROR: pbx CDR StartTime 2025-02-09 13:38:05 - End Time 2025-02-09 16:38:05 [2025-02-09 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438332', 'tblTempUsageDetail_20' ) start [2025-02-09 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438332', 'tblTempUsageDetail_20' ) end [2025-02-09 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438332', 'tblTempVendorCDR_20' ) start [2025-02-09 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438332', 'tblTempVendorCDR_20' ) end [2025-02-09 16:38:21] Production.INFO: ProcessCDR(1,14438332,1,1,2) [2025-02-09 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438332', 'tblTempUsageDetail_20' ) start [2025-02-09 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438332', 'tblTempUsageDetail_20' ) end [2025-02-09 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:38:26] Production.INFO: ==15885== Releasing lock... [2025-02-09 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:38:26] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:39:06 [end_date_ymd] => 2025-02-09 16:39:06 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:39:06' and `end` < '2025-02-09 16: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-02-09 16:39:19] Production.INFO: count ==1216 [2025-02-09 16:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:39:06 - End Time 2025-02-09 16:39:06 [2025-02-09 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438337', 'tblTempUsageDetail_20' ) start [2025-02-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438337', 'tblTempUsageDetail_20' ) end [2025-02-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438337', 'tblTempVendorCDR_20' ) start [2025-02-09 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438337', 'tblTempVendorCDR_20' ) end [2025-02-09 16:39:20] Production.INFO: ProcessCDR(1,14438337,1,1,2) [2025-02-09 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438337', 'tblTempUsageDetail_20' ) start [2025-02-09 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438337', 'tblTempUsageDetail_20' ) end [2025-02-09 16:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:39:24] Production.INFO: ==15967== Releasing lock... [2025-02-09 16:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:39:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:40:06 [end_date_ymd] => 2025-02-09 16:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:40:06' and `end` < '2025-02-09 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-02-09 16:40:20] Production.INFO: count ==1217 [2025-02-09 16:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 13:40:06 - End Time 2025-02-09 16:40:06 [2025-02-09 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438343', 'tblTempUsageDetail_20' ) start [2025-02-09 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438343', 'tblTempUsageDetail_20' ) end [2025-02-09 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438343', 'tblTempVendorCDR_20' ) start [2025-02-09 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438343', 'tblTempVendorCDR_20' ) end [2025-02-09 16:40:20] Production.INFO: ProcessCDR(1,14438343,1,1,2) [2025-02-09 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438343', 'tblTempUsageDetail_20' ) start [2025-02-09 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438343', 'tblTempUsageDetail_20' ) end [2025-02-09 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:40:25] Production.INFO: ==16042== Releasing lock... [2025-02-09 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:40:25] Production.INFO: 37 MB #Memory Used# [2025-02-09 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:41:05 [end_date_ymd] => 2025-02-09 16:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:41:05' and `end` < '2025-02-09 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-02-09 16:41:18] Production.INFO: count ==1251 [2025-02-09 16:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:41:05 - End Time 2025-02-09 16:41:05 [2025-02-09 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438348', 'tblTempUsageDetail_20' ) start [2025-02-09 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438348', 'tblTempUsageDetail_20' ) end [2025-02-09 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438348', 'tblTempVendorCDR_20' ) start [2025-02-09 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438348', 'tblTempVendorCDR_20' ) end [2025-02-09 16:41:19] Production.INFO: ProcessCDR(1,14438348,1,1,2) [2025-02-09 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438348', 'tblTempUsageDetail_20' ) start [2025-02-09 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438348', 'tblTempUsageDetail_20' ) end [2025-02-09 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:41:23] Production.INFO: ==16122== Releasing lock... [2025-02-09 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:41:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:42:05 [end_date_ymd] => 2025-02-09 16:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:42:05' and `end` < '2025-02-09 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-02-09 16:42:18] Production.INFO: count ==1257 [2025-02-09 16:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:42:05 - End Time 2025-02-09 16:42:05 [2025-02-09 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438353', 'tblTempUsageDetail_20' ) start [2025-02-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438353', 'tblTempUsageDetail_20' ) end [2025-02-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438353', 'tblTempVendorCDR_20' ) start [2025-02-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438353', 'tblTempVendorCDR_20' ) end [2025-02-09 16:42:18] Production.INFO: ProcessCDR(1,14438353,1,1,2) [2025-02-09 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438353', 'tblTempUsageDetail_20' ) start [2025-02-09 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438353', 'tblTempUsageDetail_20' ) end [2025-02-09 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:42:23] Production.INFO: ==16194== Releasing lock... [2025-02-09 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:42:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:43:05 [end_date_ymd] => 2025-02-09 16:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:43:05' and `end` < '2025-02-09 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-02-09 16:43:19] Production.INFO: count ==1258 [2025-02-09 16:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:43:05 - End Time 2025-02-09 16:43:05 [2025-02-09 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438358', 'tblTempUsageDetail_20' ) start [2025-02-09 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438358', 'tblTempUsageDetail_20' ) end [2025-02-09 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438358', 'tblTempVendorCDR_20' ) start [2025-02-09 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438358', 'tblTempVendorCDR_20' ) end [2025-02-09 16:43:19] Production.INFO: ProcessCDR(1,14438358,1,1,2) [2025-02-09 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438358', 'tblTempUsageDetail_20' ) start [2025-02-09 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438358', 'tblTempUsageDetail_20' ) end [2025-02-09 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:43:24] Production.INFO: ==16266== Releasing lock... [2025-02-09 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:43:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:44:05 [end_date_ymd] => 2025-02-09 16:44:05 [RateCDR] => 1 ) [2025-02-09 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:44:05' and `end` < '2025-02-09 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:44:21] Production.INFO: count ==1262 [2025-02-09 16:44:21] Production.ERROR: pbx CDR StartTime 2025-02-09 13:44:05 - End Time 2025-02-09 16:44:05 [2025-02-09 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438363', 'tblTempUsageDetail_20' ) start [2025-02-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438363', 'tblTempUsageDetail_20' ) end [2025-02-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438363', 'tblTempVendorCDR_20' ) start [2025-02-09 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438363', 'tblTempVendorCDR_20' ) end [2025-02-09 16:44:21] Production.INFO: ProcessCDR(1,14438363,1,1,2) [2025-02-09 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438363', 'tblTempUsageDetail_20' ) start [2025-02-09 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438363', 'tblTempUsageDetail_20' ) end [2025-02-09 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:44:26] Production.INFO: ==16343== Releasing lock... [2025-02-09 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:44:26] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:45:05 [end_date_ymd] => 2025-02-09 16:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:45:05' and `end` < '2025-02-09 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-02-09 16:45:23] Production.INFO: count ==1269 [2025-02-09 16:45:23] Production.ERROR: pbx CDR StartTime 2025-02-09 13:45:05 - End Time 2025-02-09 16:45:05 [2025-02-09 16:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438368', 'tblTempUsageDetail_20' ) start [2025-02-09 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438368', 'tblTempUsageDetail_20' ) end [2025-02-09 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438368', 'tblTempVendorCDR_20' ) start [2025-02-09 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438368', 'tblTempVendorCDR_20' ) end [2025-02-09 16:45:23] Production.INFO: ProcessCDR(1,14438368,1,1,2) [2025-02-09 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438368', 'tblTempUsageDetail_20' ) start [2025-02-09 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438368', 'tblTempUsageDetail_20' ) end [2025-02-09 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:45:28] Production.INFO: ==16416== Releasing lock... [2025-02-09 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:45:28] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:46:04 [end_date_ymd] => 2025-02-09 16:46:04 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:46:04' and `end` < '2025-02-09 16: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-02-09 16:46:18] Production.INFO: count ==1276 [2025-02-09 16:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:46:04 - End Time 2025-02-09 16:46:04 [2025-02-09 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438373', 'tblTempUsageDetail_20' ) start [2025-02-09 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438373', 'tblTempUsageDetail_20' ) end [2025-02-09 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438373', 'tblTempVendorCDR_20' ) start [2025-02-09 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438373', 'tblTempVendorCDR_20' ) end [2025-02-09 16:46:19] Production.INFO: ProcessCDR(1,14438373,1,1,2) [2025-02-09 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438373', 'tblTempUsageDetail_20' ) start [2025-02-09 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438373', 'tblTempUsageDetail_20' ) end [2025-02-09 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:46:23] Production.INFO: ==16488== Releasing lock... [2025-02-09 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:46:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:47:05 [end_date_ymd] => 2025-02-09 16:47:05 [RateCDR] => 1 ) [2025-02-09 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:47:05' and `end` < '2025-02-09 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:47:18] Production.INFO: count ==1276 [2025-02-09 16:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:47:05 - End Time 2025-02-09 16:47:05 [2025-02-09 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438378', 'tblTempUsageDetail_20' ) start [2025-02-09 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438378', 'tblTempUsageDetail_20' ) end [2025-02-09 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438378', 'tblTempVendorCDR_20' ) start [2025-02-09 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438378', 'tblTempVendorCDR_20' ) end [2025-02-09 16:47:19] Production.INFO: ProcessCDR(1,14438378,1,1,2) [2025-02-09 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438378', 'tblTempUsageDetail_20' ) start [2025-02-09 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438378', 'tblTempUsageDetail_20' ) end [2025-02-09 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:47:23] Production.INFO: ==16565== Releasing lock... [2025-02-09 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:47:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:48:05 [end_date_ymd] => 2025-02-09 16:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:48:05' and `end` < '2025-02-09 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-02-09 16:48:18] Production.INFO: count ==1286 [2025-02-09 16:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:48:05 - End Time 2025-02-09 16:48:05 [2025-02-09 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438383', 'tblTempUsageDetail_20' ) start [2025-02-09 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438383', 'tblTempUsageDetail_20' ) end [2025-02-09 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438383', 'tblTempVendorCDR_20' ) start [2025-02-09 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438383', 'tblTempVendorCDR_20' ) end [2025-02-09 16:48:19] Production.INFO: ProcessCDR(1,14438383,1,1,2) [2025-02-09 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438383', 'tblTempUsageDetail_20' ) start [2025-02-09 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438383', 'tblTempUsageDetail_20' ) end [2025-02-09 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:48:24] Production.INFO: ==16644== Releasing lock... [2025-02-09 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:48:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:49:04 [end_date_ymd] => 2025-02-09 16:49:04 [RateCDR] => 1 ) [2025-02-09 16: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-02-09 13:49:04' and `end` < '2025-02-09 16: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-02-09 16:49:18] Production.INFO: count ==1287 [2025-02-09 16:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:49:04 - End Time 2025-02-09 16:49:04 [2025-02-09 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438388', 'tblTempUsageDetail_20' ) start [2025-02-09 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438388', 'tblTempUsageDetail_20' ) end [2025-02-09 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438388', 'tblTempVendorCDR_20' ) start [2025-02-09 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438388', 'tblTempVendorCDR_20' ) end [2025-02-09 16:49:18] Production.INFO: ProcessCDR(1,14438388,1,1,2) [2025-02-09 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438388', 'tblTempUsageDetail_20' ) start [2025-02-09 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438388', 'tblTempUsageDetail_20' ) end [2025-02-09 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:49:23] Production.INFO: ==16716== Releasing lock... [2025-02-09 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:49:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:50:06 [end_date_ymd] => 2025-02-09 16:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:50:06' and `end` < '2025-02-09 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-02-09 16:50:20] Production.INFO: count ==1289 [2025-02-09 16:50:21] Production.ERROR: pbx CDR StartTime 2025-02-09 13:50:06 - End Time 2025-02-09 16:50:06 [2025-02-09 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438393', 'tblTempUsageDetail_20' ) start [2025-02-09 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438393', 'tblTempUsageDetail_20' ) end [2025-02-09 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438393', 'tblTempVendorCDR_20' ) start [2025-02-09 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438393', 'tblTempVendorCDR_20' ) end [2025-02-09 16:50:21] Production.INFO: ProcessCDR(1,14438393,1,1,2) [2025-02-09 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438393', 'tblTempUsageDetail_20' ) start [2025-02-09 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438393', 'tblTempUsageDetail_20' ) end [2025-02-09 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:50:25] Production.INFO: ==16830== Releasing lock... [2025-02-09 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:50:25] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:51:04 [end_date_ymd] => 2025-02-09 16:51:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:51:04' and `end` < '2025-02-09 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-02-09 16:51:18] Production.INFO: count ==1335 [2025-02-09 16:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:51:04 - End Time 2025-02-09 16:51:04 [2025-02-09 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438399', 'tblTempUsageDetail_20' ) start [2025-02-09 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438399', 'tblTempUsageDetail_20' ) end [2025-02-09 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438399', 'tblTempVendorCDR_20' ) start [2025-02-09 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438399', 'tblTempVendorCDR_20' ) end [2025-02-09 16:51:19] Production.INFO: ProcessCDR(1,14438399,1,1,2) [2025-02-09 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438399', 'tblTempUsageDetail_20' ) start [2025-02-09 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438399', 'tblTempUsageDetail_20' ) end [2025-02-09 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:51:23] Production.INFO: ==16907== Releasing lock... [2025-02-09 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:51:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:52:05 [end_date_ymd] => 2025-02-09 16:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:52:05' and `end` < '2025-02-09 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-02-09 16:52:19] Production.INFO: count ==1339 [2025-02-09 16:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:52:05 - End Time 2025-02-09 16:52:05 [2025-02-09 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438404', 'tblTempUsageDetail_20' ) start [2025-02-09 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438404', 'tblTempUsageDetail_20' ) end [2025-02-09 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438404', 'tblTempVendorCDR_20' ) start [2025-02-09 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438404', 'tblTempVendorCDR_20' ) end [2025-02-09 16:52:19] Production.INFO: ProcessCDR(1,14438404,1,1,2) [2025-02-09 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438404', 'tblTempUsageDetail_20' ) start [2025-02-09 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438404', 'tblTempUsageDetail_20' ) end [2025-02-09 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:52:24] Production.INFO: ==16982== Releasing lock... [2025-02-09 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:52:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:53:05 [end_date_ymd] => 2025-02-09 16:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:53:05' and `end` < '2025-02-09 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-02-09 16:53:19] Production.INFO: count ==1333 [2025-02-09 16:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:53:05 - End Time 2025-02-09 16:53:05 [2025-02-09 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438409', 'tblTempUsageDetail_20' ) start [2025-02-09 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438409', 'tblTempUsageDetail_20' ) end [2025-02-09 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438409', 'tblTempVendorCDR_20' ) start [2025-02-09 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438409', 'tblTempVendorCDR_20' ) end [2025-02-09 16:53:19] Production.INFO: ProcessCDR(1,14438409,1,1,2) [2025-02-09 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438409', 'tblTempUsageDetail_20' ) start [2025-02-09 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438409', 'tblTempUsageDetail_20' ) end [2025-02-09 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:53:24] Production.INFO: ==17060== Releasing lock... [2025-02-09 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:53:24] Production.INFO: 38 MB #Memory Used# [2025-02-09 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:54:05 [end_date_ymd] => 2025-02-09 16:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:54:05' and `end` < '2025-02-09 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-02-09 16:54:20] Production.INFO: count ==1337 [2025-02-09 16:54:20] Production.ERROR: pbx CDR StartTime 2025-02-09 13:54:05 - End Time 2025-02-09 16:54:05 [2025-02-09 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438414', 'tblTempUsageDetail_20' ) start [2025-02-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438414', 'tblTempUsageDetail_20' ) end [2025-02-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438414', 'tblTempVendorCDR_20' ) start [2025-02-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438414', 'tblTempVendorCDR_20' ) end [2025-02-09 16:54:20] Production.INFO: ProcessCDR(1,14438414,1,1,2) [2025-02-09 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438414', 'tblTempUsageDetail_20' ) start [2025-02-09 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438414', 'tblTempUsageDetail_20' ) end [2025-02-09 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:54:25] Production.INFO: ==17131== Releasing lock... [2025-02-09 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:54:25] Production.INFO: 38 MB #Memory Used# [2025-02-09 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:55:05 [end_date_ymd] => 2025-02-09 16:55:05 [RateCDR] => 1 ) [2025-02-09 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:55:05' and `end` < '2025-02-09 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:55:19] Production.INFO: count ==1338 [2025-02-09 16:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:55:05 - End Time 2025-02-09 16:55:05 [2025-02-09 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438419', 'tblTempUsageDetail_20' ) start [2025-02-09 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438419', 'tblTempUsageDetail_20' ) end [2025-02-09 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438419', 'tblTempVendorCDR_20' ) start [2025-02-09 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438419', 'tblTempVendorCDR_20' ) end [2025-02-09 16:55:19] Production.INFO: ProcessCDR(1,14438419,1,1,2) [2025-02-09 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438419', 'tblTempUsageDetail_20' ) start [2025-02-09 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438419', 'tblTempUsageDetail_20' ) end [2025-02-09 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:55:24] Production.INFO: ==17208== Releasing lock... [2025-02-09 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:55:24] Production.INFO: 38 MB #Memory Used# [2025-02-09 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:56:05 [end_date_ymd] => 2025-02-09 16:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:56:05' and `end` < '2025-02-09 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-02-09 16:56:19] Production.INFO: count ==1339 [2025-02-09 16:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:56:05 - End Time 2025-02-09 16:56:05 [2025-02-09 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438424', 'tblTempUsageDetail_20' ) start [2025-02-09 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438424', 'tblTempUsageDetail_20' ) end [2025-02-09 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438424', 'tblTempVendorCDR_20' ) start [2025-02-09 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438424', 'tblTempVendorCDR_20' ) end [2025-02-09 16:56:19] Production.INFO: ProcessCDR(1,14438424,1,1,2) [2025-02-09 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438424', 'tblTempUsageDetail_20' ) start [2025-02-09 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438424', 'tblTempUsageDetail_20' ) end [2025-02-09 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:56:24] Production.INFO: ==17281== Releasing lock... [2025-02-09 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:56:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:57:04 [end_date_ymd] => 2025-02-09 16:57:04 [RateCDR] => 1 ) [2025-02-09 16:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 13:57:04' and `end` < '2025-02-09 16:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 16:57:18] Production.INFO: count ==1342 [2025-02-09 16:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:57:04 - End Time 2025-02-09 16:57:04 [2025-02-09 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438429', 'tblTempUsageDetail_20' ) start [2025-02-09 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438429', 'tblTempUsageDetail_20' ) end [2025-02-09 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438429', 'tblTempVendorCDR_20' ) start [2025-02-09 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438429', 'tblTempVendorCDR_20' ) end [2025-02-09 16:57:19] Production.INFO: ProcessCDR(1,14438429,1,1,2) [2025-02-09 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438429', 'tblTempUsageDetail_20' ) start [2025-02-09 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438429', 'tblTempUsageDetail_20' ) end [2025-02-09 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:57:24] Production.INFO: ==17354== Releasing lock... [2025-02-09 16:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:57:24] Production.INFO: 38 MB #Memory Used# [2025-02-09 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:58:05 [end_date_ymd] => 2025-02-09 16:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:58:05' and `end` < '2025-02-09 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-02-09 16:58:18] Production.INFO: count ==1341 [2025-02-09 16:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 13:58:05 - End Time 2025-02-09 16:58:05 [2025-02-09 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438434', 'tblTempUsageDetail_20' ) start [2025-02-09 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438434', 'tblTempUsageDetail_20' ) end [2025-02-09 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438434', 'tblTempVendorCDR_20' ) start [2025-02-09 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438434', 'tblTempVendorCDR_20' ) end [2025-02-09 16:58:19] Production.INFO: ProcessCDR(1,14438434,1,1,2) [2025-02-09 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438434', 'tblTempUsageDetail_20' ) start [2025-02-09 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438434', 'tblTempUsageDetail_20' ) end [2025-02-09 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:58:22] Production.INFO: ==17428== Releasing lock... [2025-02-09 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:58:22] Production.INFO: 38 MB #Memory Used# [2025-02-09 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 13:59:05 [end_date_ymd] => 2025-02-09 16:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 13:59:05' and `end` < '2025-02-09 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-02-09 16:59:18] Production.INFO: count ==1341 [2025-02-09 16:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 13:59:05 - End Time 2025-02-09 16:59:05 [2025-02-09 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438439', 'tblTempUsageDetail_20' ) start [2025-02-09 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438439', 'tblTempUsageDetail_20' ) end [2025-02-09 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438439', 'tblTempVendorCDR_20' ) start [2025-02-09 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438439', 'tblTempVendorCDR_20' ) end [2025-02-09 16:59:18] Production.INFO: ProcessCDR(1,14438439,1,1,2) [2025-02-09 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438439', 'tblTempUsageDetail_20' ) start [2025-02-09 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438439', 'tblTempUsageDetail_20' ) end [2025-02-09 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 16:59:23] Production.INFO: ==17501== Releasing lock... [2025-02-09 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 16:59:23] Production.INFO: 38 MB #Memory Used# [2025-02-09 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:00:06 [end_date_ymd] => 2025-02-09 17:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:00:06' and `end` < '2025-02-09 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-02-09 17:00:20] Production.INFO: count ==1339 [2025-02-09 17:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:00:06 - End Time 2025-02-09 17:00:06 [2025-02-09 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438445', 'tblTempUsageDetail_20' ) start [2025-02-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438445', 'tblTempUsageDetail_20' ) end [2025-02-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438445', 'tblTempVendorCDR_20' ) start [2025-02-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438445', 'tblTempVendorCDR_20' ) end [2025-02-09 17:00:20] Production.INFO: ProcessCDR(1,14438445,1,1,2) [2025-02-09 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438445', 'tblTempUsageDetail_20' ) start [2025-02-09 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438445', 'tblTempUsageDetail_20' ) end [2025-02-09 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:00:25] Production.INFO: ==17579== Releasing lock... [2025-02-09 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:00:25] Production.INFO: 38 MB #Memory Used# [2025-02-09 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:01:05 [end_date_ymd] => 2025-02-09 17:01:05 [RateCDR] => 1 ) [2025-02-09 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:01:05' and `end` < '2025-02-09 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:01:20] Production.INFO: count ==1390 [2025-02-09 17:01:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:01:05 - End Time 2025-02-09 17:01:05 [2025-02-09 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438450', 'tblTempUsageDetail_20' ) start [2025-02-09 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438450', 'tblTempUsageDetail_20' ) end [2025-02-09 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438450', 'tblTempVendorCDR_20' ) start [2025-02-09 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438450', 'tblTempVendorCDR_20' ) end [2025-02-09 17:01:20] Production.INFO: ProcessCDR(1,14438450,1,1,2) [2025-02-09 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438450', 'tblTempUsageDetail_20' ) start [2025-02-09 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438450', 'tblTempUsageDetail_20' ) end [2025-02-09 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:01:25] Production.INFO: ==17665== Releasing lock... [2025-02-09 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:01:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:02:05 [end_date_ymd] => 2025-02-09 17:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:02:05' and `end` < '2025-02-09 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-02-09 17:02:21] Production.INFO: count ==1378 [2025-02-09 17:02:22] Production.ERROR: pbx CDR StartTime 2025-02-09 14:02:05 - End Time 2025-02-09 17:02:05 [2025-02-09 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438455', 'tblTempUsageDetail_20' ) start [2025-02-09 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438455', 'tblTempUsageDetail_20' ) end [2025-02-09 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438455', 'tblTempVendorCDR_20' ) start [2025-02-09 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438455', 'tblTempVendorCDR_20' ) end [2025-02-09 17:02:22] Production.INFO: ProcessCDR(1,14438455,1,1,2) [2025-02-09 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438455', 'tblTempUsageDetail_20' ) start [2025-02-09 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438455', 'tblTempUsageDetail_20' ) end [2025-02-09 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:02:27] Production.INFO: ==17739== Releasing lock... [2025-02-09 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:02:27] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:03:05 [end_date_ymd] => 2025-02-09 17:03:05 [RateCDR] => 1 ) [2025-02-09 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:03:05' and `end` < '2025-02-09 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:03:19] Production.INFO: count ==1375 [2025-02-09 17:03:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:03:05 - End Time 2025-02-09 17:03:05 [2025-02-09 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438460', 'tblTempUsageDetail_20' ) start [2025-02-09 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438460', 'tblTempUsageDetail_20' ) end [2025-02-09 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438460', 'tblTempVendorCDR_20' ) start [2025-02-09 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438460', 'tblTempVendorCDR_20' ) end [2025-02-09 17:03:20] Production.INFO: ProcessCDR(1,14438460,1,1,2) [2025-02-09 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438460', 'tblTempUsageDetail_20' ) start [2025-02-09 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438460', 'tblTempUsageDetail_20' ) end [2025-02-09 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:03:25] Production.INFO: ==17811== Releasing lock... [2025-02-09 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:03:25] Production.INFO: 38 MB #Memory Used# [2025-02-09 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:04:05 [end_date_ymd] => 2025-02-09 17:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:04:05' and `end` < '2025-02-09 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-02-09 17:04:18] Production.INFO: count ==1375 [2025-02-09 17:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:04:05 - End Time 2025-02-09 17:04:05 [2025-02-09 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438465', 'tblTempUsageDetail_20' ) start [2025-02-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438465', 'tblTempUsageDetail_20' ) end [2025-02-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438465', 'tblTempVendorCDR_20' ) start [2025-02-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438465', 'tblTempVendorCDR_20' ) end [2025-02-09 17:04:18] Production.INFO: ProcessCDR(1,14438465,1,1,2) [2025-02-09 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438465', 'tblTempUsageDetail_20' ) start [2025-02-09 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438465', 'tblTempUsageDetail_20' ) end [2025-02-09 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:04:22] Production.INFO: ==17884== Releasing lock... [2025-02-09 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:04:22] Production.INFO: 38 MB #Memory Used# [2025-02-09 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:05:05 [end_date_ymd] => 2025-02-09 17:05:05 [RateCDR] => 1 ) [2025-02-09 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:05:05' and `end` < '2025-02-09 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:05:18] Production.INFO: count ==1376 [2025-02-09 17:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:05:05 - End Time 2025-02-09 17:05:05 [2025-02-09 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438470', 'tblTempUsageDetail_20' ) start [2025-02-09 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438470', 'tblTempUsageDetail_20' ) end [2025-02-09 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438470', 'tblTempVendorCDR_20' ) start [2025-02-09 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438470', 'tblTempVendorCDR_20' ) end [2025-02-09 17:05:19] Production.INFO: ProcessCDR(1,14438470,1,1,2) [2025-02-09 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438470', 'tblTempUsageDetail_20' ) start [2025-02-09 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438470', 'tblTempUsageDetail_20' ) end [2025-02-09 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:05:23] Production.INFO: ==17958== Releasing lock... [2025-02-09 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:05:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:06:05 [end_date_ymd] => 2025-02-09 17:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:06:05' and `end` < '2025-02-09 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-02-09 17:06:18] Production.INFO: count ==1376 [2025-02-09 17:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:06:05 - End Time 2025-02-09 17:06:05 [2025-02-09 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438475', 'tblTempUsageDetail_20' ) start [2025-02-09 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438475', 'tblTempUsageDetail_20' ) end [2025-02-09 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438475', 'tblTempVendorCDR_20' ) start [2025-02-09 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438475', 'tblTempVendorCDR_20' ) end [2025-02-09 17:06:19] Production.INFO: ProcessCDR(1,14438475,1,1,2) [2025-02-09 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438475', 'tblTempUsageDetail_20' ) start [2025-02-09 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438475', 'tblTempUsageDetail_20' ) end [2025-02-09 17:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:06:23] Production.INFO: ==18073== Releasing lock... [2025-02-09 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:07:05 [end_date_ymd] => 2025-02-09 17:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:07:05' and `end` < '2025-02-09 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-02-09 17:07:21] Production.INFO: count ==1378 [2025-02-09 17:07:22] Production.ERROR: pbx CDR StartTime 2025-02-09 14:07:05 - End Time 2025-02-09 17:07:05 [2025-02-09 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438480', 'tblTempUsageDetail_20' ) start [2025-02-09 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438480', 'tblTempUsageDetail_20' ) end [2025-02-09 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438480', 'tblTempVendorCDR_20' ) start [2025-02-09 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438480', 'tblTempVendorCDR_20' ) end [2025-02-09 17:07:22] Production.INFO: ProcessCDR(1,14438480,1,1,2) [2025-02-09 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438480', 'tblTempUsageDetail_20' ) start [2025-02-09 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438480', 'tblTempUsageDetail_20' ) end [2025-02-09 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:07:26] Production.INFO: ==18151== Releasing lock... [2025-02-09 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:07:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:08:05 [end_date_ymd] => 2025-02-09 17:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:08:05' and `end` < '2025-02-09 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-02-09 17:08:19] Production.INFO: count ==1379 [2025-02-09 17:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:08:05 - End Time 2025-02-09 17:08:05 [2025-02-09 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438485', 'tblTempUsageDetail_20' ) start [2025-02-09 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438485', 'tblTempUsageDetail_20' ) end [2025-02-09 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438485', 'tblTempVendorCDR_20' ) start [2025-02-09 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438485', 'tblTempVendorCDR_20' ) end [2025-02-09 17:08:19] Production.INFO: ProcessCDR(1,14438485,1,1,2) [2025-02-09 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438485', 'tblTempUsageDetail_20' ) start [2025-02-09 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438485', 'tblTempUsageDetail_20' ) end [2025-02-09 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:08:24] Production.INFO: ==18229== Releasing lock... [2025-02-09 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:08:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:09:05 [end_date_ymd] => 2025-02-09 17:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:09:05' and `end` < '2025-02-09 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-02-09 17:09:18] Production.INFO: count ==1378 [2025-02-09 17:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:09:05 - End Time 2025-02-09 17:09:05 [2025-02-09 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438490', 'tblTempUsageDetail_20' ) start [2025-02-09 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438490', 'tblTempUsageDetail_20' ) end [2025-02-09 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438490', 'tblTempVendorCDR_20' ) start [2025-02-09 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438490', 'tblTempVendorCDR_20' ) end [2025-02-09 17:09:19] Production.INFO: ProcessCDR(1,14438490,1,1,2) [2025-02-09 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438490', 'tblTempUsageDetail_20' ) start [2025-02-09 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438490', 'tblTempUsageDetail_20' ) end [2025-02-09 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:09:23] Production.INFO: ==18307== Releasing lock... [2025-02-09 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:09:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:10:06 [end_date_ymd] => 2025-02-09 17:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:10:06' and `end` < '2025-02-09 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-02-09 17:10:22] Production.INFO: count ==1378 [2025-02-09 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-09 14:10:06 - End Time 2025-02-09 17:10:06 [2025-02-09 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438496', 'tblTempUsageDetail_20' ) start [2025-02-09 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438496', 'tblTempUsageDetail_20' ) end [2025-02-09 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438496', 'tblTempVendorCDR_20' ) start [2025-02-09 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438496', 'tblTempVendorCDR_20' ) end [2025-02-09 17:10:22] Production.INFO: ProcessCDR(1,14438496,1,1,2) [2025-02-09 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438496', 'tblTempUsageDetail_20' ) start [2025-02-09 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438496', 'tblTempUsageDetail_20' ) end [2025-02-09 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:10:27] Production.INFO: ==18381== Releasing lock... [2025-02-09 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:10:27] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:11:05 [end_date_ymd] => 2025-02-09 17:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:11:05' and `end` < '2025-02-09 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-02-09 17:11:19] Production.INFO: count ==1421 [2025-02-09 17:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:11:05 - End Time 2025-02-09 17:11:05 [2025-02-09 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438501', 'tblTempUsageDetail_20' ) start [2025-02-09 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438501', 'tblTempUsageDetail_20' ) end [2025-02-09 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438501', 'tblTempVendorCDR_20' ) start [2025-02-09 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438501', 'tblTempVendorCDR_20' ) end [2025-02-09 17:11:19] Production.INFO: ProcessCDR(1,14438501,1,1,2) [2025-02-09 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438501', 'tblTempUsageDetail_20' ) start [2025-02-09 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438501', 'tblTempUsageDetail_20' ) end [2025-02-09 17:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:11:24] Production.INFO: ==18459== Releasing lock... [2025-02-09 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:11:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:12:04 [end_date_ymd] => 2025-02-09 17:12:04 [RateCDR] => 1 ) [2025-02-09 17:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:12:04' and `end` < '2025-02-09 17:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:12:18] Production.INFO: count ==1422 [2025-02-09 17:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:12:04 - End Time 2025-02-09 17:12:04 [2025-02-09 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438506', 'tblTempUsageDetail_20' ) start [2025-02-09 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438506', 'tblTempUsageDetail_20' ) end [2025-02-09 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438506', 'tblTempVendorCDR_20' ) start [2025-02-09 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438506', 'tblTempVendorCDR_20' ) end [2025-02-09 17:12:19] Production.INFO: ProcessCDR(1,14438506,1,1,2) [2025-02-09 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438506', 'tblTempUsageDetail_20' ) start [2025-02-09 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438506', 'tblTempUsageDetail_20' ) end [2025-02-09 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:12:24] Production.INFO: ==18534== Releasing lock... [2025-02-09 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:12:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:13:05 [end_date_ymd] => 2025-02-09 17:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:13:05' and `end` < '2025-02-09 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-02-09 17:13:18] Production.INFO: count ==1423 [2025-02-09 17:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:13:05 - End Time 2025-02-09 17:13:05 [2025-02-09 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438511', 'tblTempUsageDetail_20' ) start [2025-02-09 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438511', 'tblTempUsageDetail_20' ) end [2025-02-09 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438511', 'tblTempVendorCDR_20' ) start [2025-02-09 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438511', 'tblTempVendorCDR_20' ) end [2025-02-09 17:13:18] Production.INFO: ProcessCDR(1,14438511,1,1,2) [2025-02-09 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438511', 'tblTempUsageDetail_20' ) start [2025-02-09 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438511', 'tblTempUsageDetail_20' ) end [2025-02-09 17:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:13:23] Production.INFO: ==18607== Releasing lock... [2025-02-09 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:14:05 [end_date_ymd] => 2025-02-09 17:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:14:05' and `end` < '2025-02-09 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-02-09 17:14:18] Production.INFO: count ==1424 [2025-02-09 17:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:14:05 - End Time 2025-02-09 17:14:05 [2025-02-09 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438516', 'tblTempUsageDetail_20' ) start [2025-02-09 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438516', 'tblTempUsageDetail_20' ) end [2025-02-09 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438516', 'tblTempVendorCDR_20' ) start [2025-02-09 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438516', 'tblTempVendorCDR_20' ) end [2025-02-09 17:14:18] Production.INFO: ProcessCDR(1,14438516,1,1,2) [2025-02-09 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438516', 'tblTempUsageDetail_20' ) start [2025-02-09 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438516', 'tblTempUsageDetail_20' ) end [2025-02-09 17:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:14:23] Production.INFO: ==18679== Releasing lock... [2025-02-09 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:14:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:15:05 [end_date_ymd] => 2025-02-09 17:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:15:05' and `end` < '2025-02-09 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-02-09 17:15:18] Production.INFO: count ==1414 [2025-02-09 17:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:15:05 - End Time 2025-02-09 17:15:05 [2025-02-09 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438521', 'tblTempUsageDetail_20' ) start [2025-02-09 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438521', 'tblTempUsageDetail_20' ) end [2025-02-09 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438521', 'tblTempVendorCDR_20' ) start [2025-02-09 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438521', 'tblTempVendorCDR_20' ) end [2025-02-09 17:15:18] Production.INFO: ProcessCDR(1,14438521,1,1,2) [2025-02-09 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438521', 'tblTempUsageDetail_20' ) start [2025-02-09 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438521', 'tblTempUsageDetail_20' ) end [2025-02-09 17:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:15:21] Production.INFO: ==18756== Releasing lock... [2025-02-09 17:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:15:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:16:06 [end_date_ymd] => 2025-02-09 17:16:06 [RateCDR] => 1 ) [2025-02-09 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:16:06' and `end` < '2025-02-09 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:16:19] Production.INFO: count ==1412 [2025-02-09 17:16:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:16:06 - End Time 2025-02-09 17:16:06 [2025-02-09 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438526', 'tblTempUsageDetail_20' ) start [2025-02-09 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438526', 'tblTempUsageDetail_20' ) end [2025-02-09 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438526', 'tblTempVendorCDR_20' ) start [2025-02-09 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438526', 'tblTempVendorCDR_20' ) end [2025-02-09 17:16:20] Production.INFO: ProcessCDR(1,14438526,1,1,2) [2025-02-09 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438526', 'tblTempUsageDetail_20' ) start [2025-02-09 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438526', 'tblTempUsageDetail_20' ) end [2025-02-09 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:16:23] Production.INFO: ==18833== Releasing lock... [2025-02-09 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:16:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:17:05 [end_date_ymd] => 2025-02-09 17:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:17:05' and `end` < '2025-02-09 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-02-09 17:17:18] Production.INFO: count ==1410 [2025-02-09 17:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:17:05 - End Time 2025-02-09 17:17:05 [2025-02-09 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438531', 'tblTempUsageDetail_20' ) start [2025-02-09 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438531', 'tblTempUsageDetail_20' ) end [2025-02-09 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438531', 'tblTempVendorCDR_20' ) start [2025-02-09 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438531', 'tblTempVendorCDR_20' ) end [2025-02-09 17:17:18] Production.INFO: ProcessCDR(1,14438531,1,1,2) [2025-02-09 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438531', 'tblTempUsageDetail_20' ) start [2025-02-09 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438531', 'tblTempUsageDetail_20' ) end [2025-02-09 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:17:23] Production.INFO: ==18904== Releasing lock... [2025-02-09 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:17:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:18:05 [end_date_ymd] => 2025-02-09 17:18:05 [RateCDR] => 1 ) [2025-02-09 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:18:05' and `end` < '2025-02-09 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:18:18] Production.INFO: count ==1410 [2025-02-09 17:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:18:05 - End Time 2025-02-09 17:18:05 [2025-02-09 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438536', 'tblTempUsageDetail_20' ) start [2025-02-09 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438536', 'tblTempUsageDetail_20' ) end [2025-02-09 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438536', 'tblTempVendorCDR_20' ) start [2025-02-09 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438536', 'tblTempVendorCDR_20' ) end [2025-02-09 17:18:19] Production.INFO: ProcessCDR(1,14438536,1,1,2) [2025-02-09 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438536', 'tblTempUsageDetail_20' ) start [2025-02-09 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438536', 'tblTempUsageDetail_20' ) end [2025-02-09 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:18:23] Production.INFO: ==18982== Releasing lock... [2025-02-09 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:18:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:19:05 [end_date_ymd] => 2025-02-09 17:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:19:05' and `end` < '2025-02-09 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-02-09 17:19:18] Production.INFO: count ==1404 [2025-02-09 17:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:19:05 - End Time 2025-02-09 17:19:05 [2025-02-09 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438541', 'tblTempUsageDetail_20' ) start [2025-02-09 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438541', 'tblTempUsageDetail_20' ) end [2025-02-09 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438541', 'tblTempVendorCDR_20' ) start [2025-02-09 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438541', 'tblTempVendorCDR_20' ) end [2025-02-09 17:19:18] Production.INFO: ProcessCDR(1,14438541,1,1,2) [2025-02-09 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438541', 'tblTempUsageDetail_20' ) start [2025-02-09 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438541', 'tblTempUsageDetail_20' ) end [2025-02-09 17:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:19:21] Production.INFO: ==19062== Releasing lock... [2025-02-09 17:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:19:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:20:06 [end_date_ymd] => 2025-02-09 17:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:20:06' and `end` < '2025-02-09 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-02-09 17:20:19] Production.INFO: count ==1404 [2025-02-09 17:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:20:06 - End Time 2025-02-09 17:20:06 [2025-02-09 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438546', 'tblTempUsageDetail_20' ) start [2025-02-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438546', 'tblTempUsageDetail_20' ) end [2025-02-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438546', 'tblTempVendorCDR_20' ) start [2025-02-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438546', 'tblTempVendorCDR_20' ) end [2025-02-09 17:20:19] Production.INFO: ProcessCDR(1,14438546,1,1,2) [2025-02-09 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438546', 'tblTempUsageDetail_20' ) start [2025-02-09 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438546', 'tblTempUsageDetail_20' ) end [2025-02-09 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:20:24] Production.INFO: ==19146== Releasing lock... [2025-02-09 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:20:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:21:05 [end_date_ymd] => 2025-02-09 17:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:21:05' and `end` < '2025-02-09 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-02-09 17:21:19] Production.INFO: count ==1452 [2025-02-09 17:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:21:05 - End Time 2025-02-09 17:21:05 [2025-02-09 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438552', 'tblTempUsageDetail_20' ) start [2025-02-09 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438552', 'tblTempUsageDetail_20' ) end [2025-02-09 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438552', 'tblTempVendorCDR_20' ) start [2025-02-09 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438552', 'tblTempVendorCDR_20' ) end [2025-02-09 17:21:19] Production.INFO: ProcessCDR(1,14438552,1,1,2) [2025-02-09 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438552', 'tblTempUsageDetail_20' ) start [2025-02-09 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438552', 'tblTempUsageDetail_20' ) end [2025-02-09 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:21:23] Production.INFO: ==19264== Releasing lock... [2025-02-09 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:21:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:22:06 [end_date_ymd] => 2025-02-09 17:22:06 [RateCDR] => 1 ) [2025-02-09 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:22:06' and `end` < '2025-02-09 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:22:21] Production.INFO: count ==1449 [2025-02-09 17:22:21] Production.ERROR: pbx CDR StartTime 2025-02-09 14:22:06 - End Time 2025-02-09 17:22:06 [2025-02-09 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438557', 'tblTempUsageDetail_20' ) start [2025-02-09 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438557', 'tblTempUsageDetail_20' ) end [2025-02-09 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438557', 'tblTempVendorCDR_20' ) start [2025-02-09 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438557', 'tblTempVendorCDR_20' ) end [2025-02-09 17:22:21] Production.INFO: ProcessCDR(1,14438557,1,1,2) [2025-02-09 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438557', 'tblTempUsageDetail_20' ) start [2025-02-09 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438557', 'tblTempUsageDetail_20' ) end [2025-02-09 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:22:26] Production.INFO: ==19339== Releasing lock... [2025-02-09 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:22:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:23:06 [end_date_ymd] => 2025-02-09 17:23:06 [RateCDR] => 1 ) [2025-02-09 17: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-02-09 14:23:06' and `end` < '2025-02-09 17: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-02-09 17:23:20] Production.INFO: count ==1447 [2025-02-09 17:23:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:23:06 - End Time 2025-02-09 17:23:06 [2025-02-09 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438562', 'tblTempUsageDetail_20' ) start [2025-02-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438562', 'tblTempUsageDetail_20' ) end [2025-02-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438562', 'tblTempVendorCDR_20' ) start [2025-02-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438562', 'tblTempVendorCDR_20' ) end [2025-02-09 17:23:20] Production.INFO: ProcessCDR(1,14438562,1,1,2) [2025-02-09 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438562', 'tblTempUsageDetail_20' ) start [2025-02-09 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438562', 'tblTempUsageDetail_20' ) end [2025-02-09 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:23:23] Production.INFO: ==19416== Releasing lock... [2025-02-09 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:23:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:24:05 [end_date_ymd] => 2025-02-09 17:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:24:05' and `end` < '2025-02-09 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-02-09 17:24:20] Production.INFO: count ==1456 [2025-02-09 17:24:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:24:05 - End Time 2025-02-09 17:24:05 [2025-02-09 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438567', 'tblTempUsageDetail_20' ) start [2025-02-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438567', 'tblTempUsageDetail_20' ) end [2025-02-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438567', 'tblTempVendorCDR_20' ) start [2025-02-09 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438567', 'tblTempVendorCDR_20' ) end [2025-02-09 17:24:20] Production.INFO: ProcessCDR(1,14438567,1,1,2) [2025-02-09 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438567', 'tblTempUsageDetail_20' ) start [2025-02-09 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438567', 'tblTempUsageDetail_20' ) end [2025-02-09 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:24:24] Production.INFO: ==19488== Releasing lock... [2025-02-09 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:25:05 [end_date_ymd] => 2025-02-09 17:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:25:05' and `end` < '2025-02-09 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-02-09 17:25:18] Production.INFO: count ==1457 [2025-02-09 17:25:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:25:05 - End Time 2025-02-09 17:25:05 [2025-02-09 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438572', 'tblTempUsageDetail_20' ) start [2025-02-09 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438572', 'tblTempUsageDetail_20' ) end [2025-02-09 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438572', 'tblTempVendorCDR_20' ) start [2025-02-09 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438572', 'tblTempVendorCDR_20' ) end [2025-02-09 17:25:19] Production.INFO: ProcessCDR(1,14438572,1,1,2) [2025-02-09 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438572', 'tblTempUsageDetail_20' ) start [2025-02-09 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438572', 'tblTempUsageDetail_20' ) end [2025-02-09 17:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:25:23] Production.INFO: ==19561== Releasing lock... [2025-02-09 17:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:25:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:26:15 [end_date_ymd] => 2025-02-09 17:26:15 [RateCDR] => 1 ) [2025-02-09 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:26:15' and `end` < '2025-02-09 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:26:28] Production.INFO: count ==1457 [2025-02-09 17:26:30] Production.ERROR: pbx CDR StartTime 2025-02-09 14:26:15 - End Time 2025-02-09 17:26:15 [2025-02-09 17:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438577', 'tblTempUsageDetail_20' ) start [2025-02-09 17:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438577', 'tblTempUsageDetail_20' ) end [2025-02-09 17:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438577', 'tblTempVendorCDR_20' ) start [2025-02-09 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438577', 'tblTempVendorCDR_20' ) end [2025-02-09 17:26:34] Production.INFO: ProcessCDR(1,14438577,1,1,2) [2025-02-09 17:26:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:26:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:26:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:26:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:26:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438577', 'tblTempUsageDetail_20' ) start [2025-02-09 17:26:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438577', 'tblTempUsageDetail_20' ) end [2025-02-09 17:26:53] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:26:53] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:26:57] Production.INFO: ==19637== Releasing lock... [2025-02-09 17:26:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:26:57] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:27:33] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:27:33 [end_date_ymd] => 2025-02-09 17:27:33 [RateCDR] => 1 ) [2025-02-09 17:27:33] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:27:33' and `end` < '2025-02-09 17:27:33' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:27:48] Production.INFO: count ==1458 [2025-02-09 17:27:56] Production.ERROR: pbx CDR StartTime 2025-02-09 14:27:33 - End Time 2025-02-09 17:27:33 [2025-02-09 17:27:56] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:27:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438581', 'tblTempUsageDetail_20' ) start [2025-02-09 17:27:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438581', 'tblTempUsageDetail_20' ) end [2025-02-09 17:27:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438581', 'tblTempVendorCDR_20' ) start [2025-02-09 17:27:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438581', 'tblTempVendorCDR_20' ) end [2025-02-09 17:27:56] Production.INFO: ProcessCDR(1,14438581,1,1,2) [2025-02-09 17:27:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:28:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:28:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438581', 'tblTempUsageDetail_20' ) start [2025-02-09 17:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438581', 'tblTempUsageDetail_20' ) end [2025-02-09 17:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:28:26] Production.INFO: ==19718== Releasing lock... [2025-02-09 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:28:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:29:19] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:29:19 [end_date_ymd] => 2025-02-09 17:29:19 [RateCDR] => 1 ) [2025-02-09 17:29:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:29:19' and `end` < '2025-02-09 17:29:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:29:32] Production.INFO: count ==1463 [2025-02-09 17:29:38] Production.ERROR: pbx CDR StartTime 2025-02-09 14:29:19 - End Time 2025-02-09 17:29:19 [2025-02-09 17:29:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438589', 'tblTempUsageDetail_20' ) start [2025-02-09 17:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438589', 'tblTempUsageDetail_20' ) end [2025-02-09 17:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438589', 'tblTempVendorCDR_20' ) start [2025-02-09 17:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438589', 'tblTempVendorCDR_20' ) end [2025-02-09 17:29:38] Production.INFO: ProcessCDR(1,14438589,1,1,2) [2025-02-09 17:29:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:29:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:29:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438589', 'tblTempUsageDetail_20' ) start [2025-02-09 17:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438589', 'tblTempUsageDetail_20' ) end [2025-02-09 17:30:40] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:30:40] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:30:48] Production.INFO: ==19844== Releasing lock... [2025-02-09 17:30:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:30:48] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 17:31:31] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:31:31 [end_date_ymd] => 2025-02-09 17:31:31 [RateCDR] => 1 ) [2025-02-09 17:31:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:31:31' and `end` < '2025-02-09 17:31:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:31:44] Production.INFO: count ==1523 [2025-02-09 17:32:06] Production.ERROR: pbx CDR StartTime 2025-02-09 14:31:31 - End Time 2025-02-09 17:31:31 [2025-02-09 17:32:06] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438597', 'tblTempUsageDetail_20' ) start [2025-02-09 17:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438597', 'tblTempUsageDetail_20' ) end [2025-02-09 17:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438597', 'tblTempVendorCDR_20' ) start [2025-02-09 17:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438597', 'tblTempVendorCDR_20' ) end [2025-02-09 17:32:06] Production.INFO: ProcessCDR(1,14438597,1,1,2) [2025-02-09 17:32:06] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:32:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:32:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438597', 'tblTempUsageDetail_20' ) start [2025-02-09 17:32:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438597', 'tblTempUsageDetail_20' ) end [2025-02-09 17:32:47] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:32:47] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:32:47] Production.INFO: ==19985== Releasing lock... [2025-02-09 17:32:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:32:47] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:33:21] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:33:21 [end_date_ymd] => 2025-02-09 17:33:21 [RateCDR] => 1 ) [2025-02-09 17:33:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:33:21' and `end` < '2025-02-09 17:33:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:33:36] Production.INFO: count ==1528 [2025-02-09 17:33:50] Production.ERROR: pbx CDR StartTime 2025-02-09 14:33:21 - End Time 2025-02-09 17:33:21 [2025-02-09 17:33:50] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:33:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438605', 'tblTempUsageDetail_20' ) start [2025-02-09 17:33:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438605', 'tblTempUsageDetail_20' ) end [2025-02-09 17:33:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438605', 'tblTempVendorCDR_20' ) start [2025-02-09 17:33:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438605', 'tblTempVendorCDR_20' ) end [2025-02-09 17:33:50] Production.INFO: ProcessCDR(1,14438605,1,1,2) [2025-02-09 17:33:50] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:33:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:33:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:33:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:33:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438605', 'tblTempUsageDetail_20' ) start [2025-02-09 17:33:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438605', 'tblTempUsageDetail_20' ) end [2025-02-09 17:33:56] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:33:56] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:33:56] Production.INFO: ==20122== Releasing lock... [2025-02-09 17:33:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:33:56] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:34:05 [end_date_ymd] => 2025-02-09 17:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:34:05' and `end` < '2025-02-09 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:34:24] Production.INFO: count ==1532 [2025-02-09 17:34:25] Production.ERROR: pbx CDR StartTime 2025-02-09 14:34:05 - End Time 2025-02-09 17:34:05 [2025-02-09 17:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438610', 'tblTempUsageDetail_20' ) start [2025-02-09 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438610', 'tblTempUsageDetail_20' ) end [2025-02-09 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438610', 'tblTempVendorCDR_20' ) start [2025-02-09 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438610', 'tblTempVendorCDR_20' ) end [2025-02-09 17:34:25] Production.INFO: ProcessCDR(1,14438610,1,1,2) [2025-02-09 17:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438610', 'tblTempUsageDetail_20' ) start [2025-02-09 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438610', 'tblTempUsageDetail_20' ) end [2025-02-09 17:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:34:29] Production.INFO: ==20206== Releasing lock... [2025-02-09 17:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:34:29] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:35:05 [end_date_ymd] => 2025-02-09 17:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:35:05' and `end` < '2025-02-09 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-02-09 17:35:19] Production.INFO: count ==1537 [2025-02-09 17:35:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:35:05 - End Time 2025-02-09 17:35:05 [2025-02-09 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438615', 'tblTempUsageDetail_20' ) start [2025-02-09 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438615', 'tblTempUsageDetail_20' ) end [2025-02-09 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438615', 'tblTempVendorCDR_20' ) start [2025-02-09 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438615', 'tblTempVendorCDR_20' ) end [2025-02-09 17:35:19] Production.INFO: ProcessCDR(1,14438615,1,1,2) [2025-02-09 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438615', 'tblTempUsageDetail_20' ) start [2025-02-09 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438615', 'tblTempUsageDetail_20' ) end [2025-02-09 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:35:25] Production.INFO: ==20278== Releasing lock... [2025-02-09 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:35:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:36:05 [end_date_ymd] => 2025-02-09 17:36:05 [RateCDR] => 1 ) [2025-02-09 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:36:05' and `end` < '2025-02-09 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:36:18] Production.INFO: count ==1541 [2025-02-09 17:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:36:05 - End Time 2025-02-09 17:36:05 [2025-02-09 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438620', 'tblTempUsageDetail_20' ) start [2025-02-09 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438620', 'tblTempUsageDetail_20' ) end [2025-02-09 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438620', 'tblTempVendorCDR_20' ) start [2025-02-09 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438620', 'tblTempVendorCDR_20' ) end [2025-02-09 17:36:19] Production.INFO: ProcessCDR(1,14438620,1,1,2) [2025-02-09 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438620', 'tblTempUsageDetail_20' ) start [2025-02-09 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438620', 'tblTempUsageDetail_20' ) end [2025-02-09 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:36:23] Production.INFO: ==20351== Releasing lock... [2025-02-09 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:37:04 [end_date_ymd] => 2025-02-09 17:37:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:37:04' and `end` < '2025-02-09 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-02-09 17:37:18] Production.INFO: count ==1541 [2025-02-09 17:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:37:04 - End Time 2025-02-09 17:37:04 [2025-02-09 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438625', 'tblTempUsageDetail_20' ) start [2025-02-09 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438625', 'tblTempUsageDetail_20' ) end [2025-02-09 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438625', 'tblTempVendorCDR_20' ) start [2025-02-09 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438625', 'tblTempVendorCDR_20' ) end [2025-02-09 17:37:19] Production.INFO: ProcessCDR(1,14438625,1,1,2) [2025-02-09 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438625', 'tblTempUsageDetail_20' ) start [2025-02-09 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438625', 'tblTempUsageDetail_20' ) end [2025-02-09 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:37:22] Production.INFO: ==20464== Releasing lock... [2025-02-09 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:38:05 [end_date_ymd] => 2025-02-09 17:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:38:05' and `end` < '2025-02-09 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-02-09 17:38:18] Production.INFO: count ==1542 [2025-02-09 17:38:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:38:05 - End Time 2025-02-09 17:38:05 [2025-02-09 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438630', 'tblTempUsageDetail_20' ) start [2025-02-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438630', 'tblTempUsageDetail_20' ) end [2025-02-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438630', 'tblTempVendorCDR_20' ) start [2025-02-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438630', 'tblTempVendorCDR_20' ) end [2025-02-09 17:38:18] Production.INFO: ProcessCDR(1,14438630,1,1,2) [2025-02-09 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438630', 'tblTempUsageDetail_20' ) start [2025-02-09 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438630', 'tblTempUsageDetail_20' ) end [2025-02-09 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:38:23] Production.INFO: ==20537== Releasing lock... [2025-02-09 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:39:06 [end_date_ymd] => 2025-02-09 17:39:06 [RateCDR] => 1 ) [2025-02-09 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:39:06' and `end` < '2025-02-09 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:39:19] Production.INFO: count ==1543 [2025-02-09 17:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:39:06 - End Time 2025-02-09 17:39:06 [2025-02-09 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438635', 'tblTempUsageDetail_20' ) start [2025-02-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438635', 'tblTempUsageDetail_20' ) end [2025-02-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438635', 'tblTempVendorCDR_20' ) start [2025-02-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438635', 'tblTempVendorCDR_20' ) end [2025-02-09 17:39:19] Production.INFO: ProcessCDR(1,14438635,1,1,2) [2025-02-09 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438635', 'tblTempUsageDetail_20' ) start [2025-02-09 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438635', 'tblTempUsageDetail_20' ) end [2025-02-09 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:39:24] Production.INFO: ==20610== Releasing lock... [2025-02-09 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:39:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:40:06 [end_date_ymd] => 2025-02-09 17:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:40:06' and `end` < '2025-02-09 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-02-09 17:40:20] Production.INFO: count ==1543 [2025-02-09 17:40:21] Production.ERROR: pbx CDR StartTime 2025-02-09 14:40:06 - End Time 2025-02-09 17:40:06 [2025-02-09 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438641', 'tblTempUsageDetail_20' ) start [2025-02-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438641', 'tblTempUsageDetail_20' ) end [2025-02-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438641', 'tblTempVendorCDR_20' ) start [2025-02-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438641', 'tblTempVendorCDR_20' ) end [2025-02-09 17:40:21] Production.INFO: ProcessCDR(1,14438641,1,1,2) [2025-02-09 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438641', 'tblTempUsageDetail_20' ) start [2025-02-09 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438641', 'tblTempUsageDetail_20' ) end [2025-02-09 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:40:24] Production.INFO: ==20684== Releasing lock... [2025-02-09 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:40:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-09 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:41:05 [end_date_ymd] => 2025-02-09 17:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:41:05' and `end` < '2025-02-09 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-02-09 17:41:20] Production.INFO: count ==1634 [2025-02-09 17:41:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:41:05 - End Time 2025-02-09 17:41:05 [2025-02-09 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438646', 'tblTempUsageDetail_20' ) start [2025-02-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438646', 'tblTempUsageDetail_20' ) end [2025-02-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438646', 'tblTempVendorCDR_20' ) start [2025-02-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438646', 'tblTempVendorCDR_20' ) end [2025-02-09 17:41:20] Production.INFO: ProcessCDR(1,14438646,1,1,2) [2025-02-09 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438646', 'tblTempUsageDetail_20' ) start [2025-02-09 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438646', 'tblTempUsageDetail_20' ) end [2025-02-09 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:41:25] Production.INFO: ==20761== Releasing lock... [2025-02-09 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:41:25] Production.INFO: 40 MB #Memory Used# [2025-02-09 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:42:05 [end_date_ymd] => 2025-02-09 17:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:42:05' and `end` < '2025-02-09 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-02-09 17:42:19] Production.INFO: count ==1632 [2025-02-09 17:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:42:05 - End Time 2025-02-09 17:42:05 [2025-02-09 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438651', 'tblTempUsageDetail_20' ) start [2025-02-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438651', 'tblTempUsageDetail_20' ) end [2025-02-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438651', 'tblTempVendorCDR_20' ) start [2025-02-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438651', 'tblTempVendorCDR_20' ) end [2025-02-09 17:42:19] Production.INFO: ProcessCDR(1,14438651,1,1,2) [2025-02-09 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438651', 'tblTempUsageDetail_20' ) start [2025-02-09 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438651', 'tblTempUsageDetail_20' ) end [2025-02-09 17:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:42:22] Production.INFO: ==20836== Releasing lock... [2025-02-09 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:43:05 [end_date_ymd] => 2025-02-09 17:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:43:05' and `end` < '2025-02-09 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-02-09 17:43:21] Production.INFO: count ==1628 [2025-02-09 17:43:21] Production.ERROR: pbx CDR StartTime 2025-02-09 14:43:05 - End Time 2025-02-09 17:43:05 [2025-02-09 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438656', 'tblTempUsageDetail_20' ) start [2025-02-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438656', 'tblTempUsageDetail_20' ) end [2025-02-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438656', 'tblTempVendorCDR_20' ) start [2025-02-09 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438656', 'tblTempVendorCDR_20' ) end [2025-02-09 17:43:21] Production.INFO: ProcessCDR(1,14438656,1,1,2) [2025-02-09 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438656', 'tblTempUsageDetail_20' ) start [2025-02-09 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438656', 'tblTempUsageDetail_20' ) end [2025-02-09 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:43:26] Production.INFO: ==20913== Releasing lock... [2025-02-09 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:43:26] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:44:04 [end_date_ymd] => 2025-02-09 17:44:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:44:04' and `end` < '2025-02-09 17: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-02-09 17:44:18] Production.INFO: count ==1627 [2025-02-09 17:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:44:04 - End Time 2025-02-09 17:44:04 [2025-02-09 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438661', 'tblTempUsageDetail_20' ) start [2025-02-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438661', 'tblTempUsageDetail_20' ) end [2025-02-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438661', 'tblTempVendorCDR_20' ) start [2025-02-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438661', 'tblTempVendorCDR_20' ) end [2025-02-09 17:44:18] Production.INFO: ProcessCDR(1,14438661,1,1,2) [2025-02-09 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438661', 'tblTempUsageDetail_20' ) start [2025-02-09 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438661', 'tblTempUsageDetail_20' ) end [2025-02-09 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:44:23] Production.INFO: ==20990== Releasing lock... [2025-02-09 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:44:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:45:05 [end_date_ymd] => 2025-02-09 17:45:05 [RateCDR] => 1 ) [2025-02-09 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:45:05' and `end` < '2025-02-09 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:45:18] Production.INFO: count ==1629 [2025-02-09 17:45:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:45:05 - End Time 2025-02-09 17:45:05 [2025-02-09 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438666', 'tblTempUsageDetail_20' ) start [2025-02-09 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438666', 'tblTempUsageDetail_20' ) end [2025-02-09 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438666', 'tblTempVendorCDR_20' ) start [2025-02-09 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438666', 'tblTempVendorCDR_20' ) end [2025-02-09 17:45:19] Production.INFO: ProcessCDR(1,14438666,1,1,2) [2025-02-09 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438666', 'tblTempUsageDetail_20' ) start [2025-02-09 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438666', 'tblTempUsageDetail_20' ) end [2025-02-09 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:45:22] Production.INFO: ==21062== Releasing lock... [2025-02-09 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:46:04 [end_date_ymd] => 2025-02-09 17:46:04 [RateCDR] => 1 ) [2025-02-09 17: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-02-09 14:46:04' and `end` < '2025-02-09 17: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-02-09 17:46:18] Production.INFO: count ==1629 [2025-02-09 17:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:46:04 - End Time 2025-02-09 17:46:04 [2025-02-09 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438671', 'tblTempUsageDetail_20' ) start [2025-02-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438671', 'tblTempUsageDetail_20' ) end [2025-02-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438671', 'tblTempVendorCDR_20' ) start [2025-02-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438671', 'tblTempVendorCDR_20' ) end [2025-02-09 17:46:18] Production.INFO: ProcessCDR(1,14438671,1,1,2) [2025-02-09 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438671', 'tblTempUsageDetail_20' ) start [2025-02-09 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438671', 'tblTempUsageDetail_20' ) end [2025-02-09 17:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:46:21] Production.INFO: ==21141== Releasing lock... [2025-02-09 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:46:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:47:05 [end_date_ymd] => 2025-02-09 17:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:47:05' and `end` < '2025-02-09 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-02-09 17:47:18] Production.INFO: count ==1631 [2025-02-09 17:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:47:05 - End Time 2025-02-09 17:47:05 [2025-02-09 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438676', 'tblTempUsageDetail_20' ) start [2025-02-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438676', 'tblTempUsageDetail_20' ) end [2025-02-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438676', 'tblTempVendorCDR_20' ) start [2025-02-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438676', 'tblTempVendorCDR_20' ) end [2025-02-09 17:47:18] Production.INFO: ProcessCDR(1,14438676,1,1,2) [2025-02-09 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438676', 'tblTempUsageDetail_20' ) start [2025-02-09 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438676', 'tblTempUsageDetail_20' ) end [2025-02-09 17:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:47:21] Production.INFO: ==21220== Releasing lock... [2025-02-09 17:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:47:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:48:05 [end_date_ymd] => 2025-02-09 17:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:48:05' and `end` < '2025-02-09 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-02-09 17:48:18] Production.INFO: count ==1635 [2025-02-09 17:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:48:05 - End Time 2025-02-09 17:48:05 [2025-02-09 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438681', 'tblTempUsageDetail_20' ) start [2025-02-09 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438681', 'tblTempUsageDetail_20' ) end [2025-02-09 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438681', 'tblTempVendorCDR_20' ) start [2025-02-09 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438681', 'tblTempVendorCDR_20' ) end [2025-02-09 17:48:19] Production.INFO: ProcessCDR(1,14438681,1,1,2) [2025-02-09 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438681', 'tblTempUsageDetail_20' ) start [2025-02-09 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438681', 'tblTempUsageDetail_20' ) end [2025-02-09 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:48:23] Production.INFO: ==21297== Releasing lock... [2025-02-09 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:49:05 [end_date_ymd] => 2025-02-09 17:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:49:05' and `end` < '2025-02-09 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-02-09 17:49:18] Production.INFO: count ==1640 [2025-02-09 17:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:49:05 - End Time 2025-02-09 17:49:05 [2025-02-09 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438686', 'tblTempUsageDetail_20' ) start [2025-02-09 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438686', 'tblTempUsageDetail_20' ) end [2025-02-09 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438686', 'tblTempVendorCDR_20' ) start [2025-02-09 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438686', 'tblTempVendorCDR_20' ) end [2025-02-09 17:49:19] Production.INFO: ProcessCDR(1,14438686,1,1,2) [2025-02-09 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438686', 'tblTempUsageDetail_20' ) start [2025-02-09 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438686', 'tblTempUsageDetail_20' ) end [2025-02-09 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:49:22] Production.INFO: ==21371== Releasing lock... [2025-02-09 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:49:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:50:06 [end_date_ymd] => 2025-02-09 17:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:50:06' and `end` < '2025-02-09 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-02-09 17:50:20] Production.INFO: count ==1651 [2025-02-09 17:50:21] Production.ERROR: pbx CDR StartTime 2025-02-09 14:50:06 - End Time 2025-02-09 17:50:06 [2025-02-09 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438692', 'tblTempUsageDetail_20' ) start [2025-02-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438692', 'tblTempUsageDetail_20' ) end [2025-02-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438692', 'tblTempVendorCDR_20' ) start [2025-02-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438692', 'tblTempVendorCDR_20' ) end [2025-02-09 17:50:21] Production.INFO: ProcessCDR(1,14438692,1,1,2) [2025-02-09 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438692', 'tblTempUsageDetail_20' ) start [2025-02-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438692', 'tblTempUsageDetail_20' ) end [2025-02-09 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:50:24] Production.INFO: ==21450== Releasing lock... [2025-02-09 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:50:24] Production.INFO: 40 MB #Memory Used# [2025-02-09 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:51:05 [end_date_ymd] => 2025-02-09 17:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:51:05' and `end` < '2025-02-09 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-02-09 17:51:19] Production.INFO: count ==1693 [2025-02-09 17:51:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:51:05 - End Time 2025-02-09 17:51:05 [2025-02-09 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438697', 'tblTempUsageDetail_20' ) start [2025-02-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438697', 'tblTempUsageDetail_20' ) end [2025-02-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438697', 'tblTempVendorCDR_20' ) start [2025-02-09 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438697', 'tblTempVendorCDR_20' ) end [2025-02-09 17:51:20] Production.INFO: ProcessCDR(1,14438697,1,1,2) [2025-02-09 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438697', 'tblTempUsageDetail_20' ) start [2025-02-09 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438697', 'tblTempUsageDetail_20' ) end [2025-02-09 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:51:23] Production.INFO: ==21527== Releasing lock... [2025-02-09 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:51:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-09 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:52:05 [end_date_ymd] => 2025-02-09 17:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:52:05' and `end` < '2025-02-09 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-02-09 17:52:20] Production.INFO: count ==1700 [2025-02-09 17:52:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:52:05 - End Time 2025-02-09 17:52:05 [2025-02-09 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438702', 'tblTempUsageDetail_20' ) start [2025-02-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438702', 'tblTempUsageDetail_20' ) end [2025-02-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438702', 'tblTempVendorCDR_20' ) start [2025-02-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438702', 'tblTempVendorCDR_20' ) end [2025-02-09 17:52:20] Production.INFO: ProcessCDR(1,14438702,1,1,2) [2025-02-09 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438702', 'tblTempUsageDetail_20' ) start [2025-02-09 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438702', 'tblTempUsageDetail_20' ) end [2025-02-09 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:52:25] Production.INFO: ==21642== Releasing lock... [2025-02-09 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:52:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:53:04 [end_date_ymd] => 2025-02-09 17:53:04 [RateCDR] => 1 ) [2025-02-09 17: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-02-09 14:53:04' and `end` < '2025-02-09 17: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-02-09 17:53:18] Production.INFO: count ==1711 [2025-02-09 17:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:53:04 - End Time 2025-02-09 17:53:04 [2025-02-09 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438707', 'tblTempUsageDetail_20' ) start [2025-02-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438707', 'tblTempUsageDetail_20' ) end [2025-02-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438707', 'tblTempVendorCDR_20' ) start [2025-02-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438707', 'tblTempVendorCDR_20' ) end [2025-02-09 17:53:18] Production.INFO: ProcessCDR(1,14438707,1,1,2) [2025-02-09 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438707', 'tblTempUsageDetail_20' ) start [2025-02-09 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438707', 'tblTempUsageDetail_20' ) end [2025-02-09 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:53:22] Production.INFO: ==21717== Releasing lock... [2025-02-09 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:53:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:54:05 [end_date_ymd] => 2025-02-09 17:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:54:05' and `end` < '2025-02-09 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-02-09 17:54:21] Production.INFO: count ==1724 [2025-02-09 17:54:21] Production.ERROR: pbx CDR StartTime 2025-02-09 14:54:05 - End Time 2025-02-09 17:54:05 [2025-02-09 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438712', 'tblTempUsageDetail_20' ) start [2025-02-09 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438712', 'tblTempUsageDetail_20' ) end [2025-02-09 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438712', 'tblTempVendorCDR_20' ) start [2025-02-09 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438712', 'tblTempVendorCDR_20' ) end [2025-02-09 17:54:21] Production.INFO: ProcessCDR(1,14438712,1,1,2) [2025-02-09 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438712', 'tblTempUsageDetail_20' ) start [2025-02-09 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438712', 'tblTempUsageDetail_20' ) end [2025-02-09 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:54:26] Production.INFO: ==21791== Releasing lock... [2025-02-09 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:54:26] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:55:06 [end_date_ymd] => 2025-02-09 17:55:06 [RateCDR] => 1 ) [2025-02-09 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:55:06' and `end` < '2025-02-09 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:55:22] Production.INFO: count ==1723 [2025-02-09 17:55:22] Production.ERROR: pbx CDR StartTime 2025-02-09 14:55:06 - End Time 2025-02-09 17:55:06 [2025-02-09 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438717', 'tblTempUsageDetail_20' ) start [2025-02-09 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438717', 'tblTempUsageDetail_20' ) end [2025-02-09 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438717', 'tblTempVendorCDR_20' ) start [2025-02-09 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438717', 'tblTempVendorCDR_20' ) end [2025-02-09 17:55:22] Production.INFO: ProcessCDR(1,14438717,1,1,2) [2025-02-09 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438717', 'tblTempUsageDetail_20' ) start [2025-02-09 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438717', 'tblTempUsageDetail_20' ) end [2025-02-09 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:55:27] Production.INFO: ==21867== Releasing lock... [2025-02-09 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:55:27] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:56:04 [end_date_ymd] => 2025-02-09 17:56:04 [RateCDR] => 1 ) [2025-02-09 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 14:56:04' and `end` < '2025-02-09 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 17:56:18] Production.INFO: count ==1727 [2025-02-09 17:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:56:04 - End Time 2025-02-09 17:56:04 [2025-02-09 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438722', 'tblTempUsageDetail_20' ) start [2025-02-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438722', 'tblTempUsageDetail_20' ) end [2025-02-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438722', 'tblTempVendorCDR_20' ) start [2025-02-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438722', 'tblTempVendorCDR_20' ) end [2025-02-09 17:56:18] Production.INFO: ProcessCDR(1,14438722,1,1,2) [2025-02-09 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438722', 'tblTempUsageDetail_20' ) start [2025-02-09 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438722', 'tblTempUsageDetail_20' ) end [2025-02-09 17:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:56:21] Production.INFO: ==21943== Releasing lock... [2025-02-09 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:56:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:57:05 [end_date_ymd] => 2025-02-09 17:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:57:05' and `end` < '2025-02-09 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-02-09 17:57:19] Production.INFO: count ==1734 [2025-02-09 17:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 14:57:05 - End Time 2025-02-09 17:57:05 [2025-02-09 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438727', 'tblTempUsageDetail_20' ) start [2025-02-09 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438727', 'tblTempUsageDetail_20' ) end [2025-02-09 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438727', 'tblTempVendorCDR_20' ) start [2025-02-09 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438727', 'tblTempVendorCDR_20' ) end [2025-02-09 17:57:19] Production.INFO: ProcessCDR(1,14438727,1,1,2) [2025-02-09 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438727', 'tblTempUsageDetail_20' ) start [2025-02-09 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438727', 'tblTempUsageDetail_20' ) end [2025-02-09 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:57:23] Production.INFO: ==22019== Releasing lock... [2025-02-09 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:57:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:58:05 [end_date_ymd] => 2025-02-09 17:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:58:05' and `end` < '2025-02-09 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-02-09 17:58:18] Production.INFO: count ==1738 [2025-02-09 17:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 14:58:05 - End Time 2025-02-09 17:58:05 [2025-02-09 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438732', 'tblTempUsageDetail_20' ) start [2025-02-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438732', 'tblTempUsageDetail_20' ) end [2025-02-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438732', 'tblTempVendorCDR_20' ) start [2025-02-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438732', 'tblTempVendorCDR_20' ) end [2025-02-09 17:58:18] Production.INFO: ProcessCDR(1,14438732,1,1,2) [2025-02-09 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438732', 'tblTempUsageDetail_20' ) start [2025-02-09 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438732', 'tblTempUsageDetail_20' ) end [2025-02-09 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:58:22] Production.INFO: ==22099== Releasing lock... [2025-02-09 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:58:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 14:59:05 [end_date_ymd] => 2025-02-09 17:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 14:59:05' and `end` < '2025-02-09 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-02-09 17:59:20] Production.INFO: count ==1737 [2025-02-09 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-09 14:59:05 - End Time 2025-02-09 17:59:05 [2025-02-09 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438737', 'tblTempUsageDetail_20' ) start [2025-02-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438737', 'tblTempUsageDetail_20' ) end [2025-02-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438737', 'tblTempVendorCDR_20' ) start [2025-02-09 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438737', 'tblTempVendorCDR_20' ) end [2025-02-09 17:59:20] Production.INFO: ProcessCDR(1,14438737,1,1,2) [2025-02-09 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438737', 'tblTempUsageDetail_20' ) start [2025-02-09 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438737', 'tblTempUsageDetail_20' ) end [2025-02-09 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 17:59:25] Production.INFO: ==22177== Releasing lock... [2025-02-09 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 17:59:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:00:05 [end_date_ymd] => 2025-02-09 18:00:05 [RateCDR] => 1 ) [2025-02-09 18: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-02-09 15:00:05' and `end` < '2025-02-09 18: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-02-09 18:00:20] Production.INFO: count ==1730 [2025-02-09 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:00:05 - End Time 2025-02-09 18:00:05 [2025-02-09 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438743', 'tblTempUsageDetail_20' ) start [2025-02-09 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438743', 'tblTempUsageDetail_20' ) end [2025-02-09 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438743', 'tblTempVendorCDR_20' ) start [2025-02-09 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438743', 'tblTempVendorCDR_20' ) end [2025-02-09 18:00:20] Production.INFO: ProcessCDR(1,14438743,1,1,2) [2025-02-09 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438743', 'tblTempUsageDetail_20' ) start [2025-02-09 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438743', 'tblTempUsageDetail_20' ) end [2025-02-09 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:00:24] Production.INFO: ==22259== Releasing lock... [2025-02-09 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:00:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:01:06 [end_date_ymd] => 2025-02-09 18:01:06 [RateCDR] => 1 ) [2025-02-09 18: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-02-09 15:01:06' and `end` < '2025-02-09 18: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-02-09 18:01:19] Production.INFO: count ==1804 [2025-02-09 18:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:01:06 - End Time 2025-02-09 18:01:06 [2025-02-09 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438748', 'tblTempUsageDetail_20' ) start [2025-02-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438748', 'tblTempUsageDetail_20' ) end [2025-02-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438748', 'tblTempVendorCDR_20' ) start [2025-02-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438748', 'tblTempVendorCDR_20' ) end [2025-02-09 18:01:19] Production.INFO: ProcessCDR(1,14438748,1,1,2) [2025-02-09 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438748', 'tblTempUsageDetail_20' ) start [2025-02-09 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438748', 'tblTempUsageDetail_20' ) end [2025-02-09 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:01:22] Production.INFO: ==22351== Releasing lock... [2025-02-09 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:01:22] Production.INFO: 41 MB #Memory Used# [2025-02-09 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:02:05 [end_date_ymd] => 2025-02-09 18:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:02:05' and `end` < '2025-02-09 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-02-09 18:02:20] Production.INFO: count ==1824 [2025-02-09 18:02:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:02:05 - End Time 2025-02-09 18:02:05 [2025-02-09 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438753', 'tblTempUsageDetail_20' ) start [2025-02-09 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438753', 'tblTempUsageDetail_20' ) end [2025-02-09 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438753', 'tblTempVendorCDR_20' ) start [2025-02-09 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438753', 'tblTempVendorCDR_20' ) end [2025-02-09 18:02:20] Production.INFO: ProcessCDR(1,14438753,1,1,2) [2025-02-09 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438753', 'tblTempUsageDetail_20' ) start [2025-02-09 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438753', 'tblTempUsageDetail_20' ) end [2025-02-09 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:02:23] Production.INFO: ==22429== Releasing lock... [2025-02-09 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:02:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:03:05 [end_date_ymd] => 2025-02-09 18:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:03:05' and `end` < '2025-02-09 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-02-09 18:03:18] Production.INFO: count ==1826 [2025-02-09 18:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:03:05 - End Time 2025-02-09 18:03:05 [2025-02-09 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438758', 'tblTempUsageDetail_20' ) start [2025-02-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438758', 'tblTempUsageDetail_20' ) end [2025-02-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438758', 'tblTempVendorCDR_20' ) start [2025-02-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438758', 'tblTempVendorCDR_20' ) end [2025-02-09 18:03:19] Production.INFO: ProcessCDR(1,14438758,1,1,2) [2025-02-09 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438758', 'tblTempUsageDetail_20' ) start [2025-02-09 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438758', 'tblTempUsageDetail_20' ) end [2025-02-09 18:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:03:22] Production.INFO: ==22505== Releasing lock... [2025-02-09 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:04:06 [end_date_ymd] => 2025-02-09 18:04:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:04:06' and `end` < '2025-02-09 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-02-09 18:04:19] Production.INFO: count ==1825 [2025-02-09 18:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:04:06 - End Time 2025-02-09 18:04:06 [2025-02-09 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438763', 'tblTempUsageDetail_20' ) start [2025-02-09 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438763', 'tblTempUsageDetail_20' ) end [2025-02-09 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438763', 'tblTempVendorCDR_20' ) start [2025-02-09 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438763', 'tblTempVendorCDR_20' ) end [2025-02-09 18:04:19] Production.INFO: ProcessCDR(1,14438763,1,1,2) [2025-02-09 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438763', 'tblTempUsageDetail_20' ) start [2025-02-09 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438763', 'tblTempUsageDetail_20' ) end [2025-02-09 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:04:23] Production.INFO: ==22581== Releasing lock... [2025-02-09 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:05:05 [end_date_ymd] => 2025-02-09 18:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:05:05' and `end` < '2025-02-09 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-02-09 18:05:21] Production.INFO: count ==1824 [2025-02-09 18:05:22] Production.ERROR: pbx CDR StartTime 2025-02-09 15:05:05 - End Time 2025-02-09 18:05:05 [2025-02-09 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438768', 'tblTempUsageDetail_20' ) start [2025-02-09 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438768', 'tblTempUsageDetail_20' ) end [2025-02-09 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438768', 'tblTempVendorCDR_20' ) start [2025-02-09 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438768', 'tblTempVendorCDR_20' ) end [2025-02-09 18:05:22] Production.INFO: ProcessCDR(1,14438768,1,1,2) [2025-02-09 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438768', 'tblTempUsageDetail_20' ) start [2025-02-09 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438768', 'tblTempUsageDetail_20' ) end [2025-02-09 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:05:25] Production.INFO: ==22664== Releasing lock... [2025-02-09 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:05:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:06:05 [end_date_ymd] => 2025-02-09 18:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:06:05' and `end` < '2025-02-09 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-02-09 18:06:20] Production.INFO: count ==1821 [2025-02-09 18:06:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:06:05 - End Time 2025-02-09 18:06:05 [2025-02-09 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438773', 'tblTempUsageDetail_20' ) start [2025-02-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438773', 'tblTempUsageDetail_20' ) end [2025-02-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438773', 'tblTempVendorCDR_20' ) start [2025-02-09 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438773', 'tblTempVendorCDR_20' ) end [2025-02-09 18:06:20] Production.INFO: ProcessCDR(1,14438773,1,1,2) [2025-02-09 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438773', 'tblTempUsageDetail_20' ) start [2025-02-09 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438773', 'tblTempUsageDetail_20' ) end [2025-02-09 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:06:23] Production.INFO: ==22747== Releasing lock... [2025-02-09 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:06:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:07:05 [end_date_ymd] => 2025-02-09 18:07:05 [RateCDR] => 1 ) [2025-02-09 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:07:05' and `end` < '2025-02-09 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:07:18] Production.INFO: count ==1822 [2025-02-09 18:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:07:05 - End Time 2025-02-09 18:07:05 [2025-02-09 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438778', 'tblTempUsageDetail_20' ) start [2025-02-09 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438778', 'tblTempUsageDetail_20' ) end [2025-02-09 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438778', 'tblTempVendorCDR_20' ) start [2025-02-09 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438778', 'tblTempVendorCDR_20' ) end [2025-02-09 18:07:19] Production.INFO: ProcessCDR(1,14438778,1,1,2) [2025-02-09 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438778', 'tblTempUsageDetail_20' ) start [2025-02-09 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438778', 'tblTempUsageDetail_20' ) end [2025-02-09 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:07:23] Production.INFO: ==22819== Releasing lock... [2025-02-09 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:08:05 [end_date_ymd] => 2025-02-09 18:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:08:05' and `end` < '2025-02-09 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-02-09 18:08:19] Production.INFO: count ==1799 [2025-02-09 18:08:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:08:05 - End Time 2025-02-09 18:08:05 [2025-02-09 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438783', 'tblTempUsageDetail_20' ) start [2025-02-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438783', 'tblTempUsageDetail_20' ) end [2025-02-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438783', 'tblTempVendorCDR_20' ) start [2025-02-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438783', 'tblTempVendorCDR_20' ) end [2025-02-09 18:08:20] Production.INFO: ProcessCDR(1,14438783,1,1,2) [2025-02-09 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438783', 'tblTempUsageDetail_20' ) start [2025-02-09 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438783', 'tblTempUsageDetail_20' ) end [2025-02-09 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:08:23] Production.INFO: ==22936== Releasing lock... [2025-02-09 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:08:23] Production.INFO: 41 MB #Memory Used# [2025-02-09 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:09:04 [end_date_ymd] => 2025-02-09 18:09:04 [RateCDR] => 1 ) [2025-02-09 18: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-02-09 15:09:04' and `end` < '2025-02-09 18: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-02-09 18:09:18] Production.INFO: count ==1797 [2025-02-09 18:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:09:04 - End Time 2025-02-09 18:09:04 [2025-02-09 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438788', 'tblTempUsageDetail_20' ) start [2025-02-09 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438788', 'tblTempUsageDetail_20' ) end [2025-02-09 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438788', 'tblTempVendorCDR_20' ) start [2025-02-09 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438788', 'tblTempVendorCDR_20' ) end [2025-02-09 18:09:19] Production.INFO: ProcessCDR(1,14438788,1,1,2) [2025-02-09 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438788', 'tblTempUsageDetail_20' ) start [2025-02-09 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438788', 'tblTempUsageDetail_20' ) end [2025-02-09 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:09:24] Production.INFO: ==23016== Releasing lock... [2025-02-09 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:09:24] Production.INFO: 41 MB #Memory Used# [2025-02-09 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:10:05 [end_date_ymd] => 2025-02-09 18:10:05 [RateCDR] => 1 ) [2025-02-09 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:10:05' and `end` < '2025-02-09 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:10:20] Production.INFO: count ==1793 [2025-02-09 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-09 15:10:05 - End Time 2025-02-09 18:10:05 [2025-02-09 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438794', 'tblTempUsageDetail_20' ) start [2025-02-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438794', 'tblTempUsageDetail_20' ) end [2025-02-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438794', 'tblTempVendorCDR_20' ) start [2025-02-09 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438794', 'tblTempVendorCDR_20' ) end [2025-02-09 18:10:21] Production.INFO: ProcessCDR(1,14438794,1,1,2) [2025-02-09 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438794', 'tblTempUsageDetail_20' ) start [2025-02-09 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438794', 'tblTempUsageDetail_20' ) end [2025-02-09 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:10:25] Production.INFO: ==23097== Releasing lock... [2025-02-09 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:10:25] Production.INFO: 41 MB #Memory Used# [2025-02-09 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:11:05 [end_date_ymd] => 2025-02-09 18:11:05 [RateCDR] => 1 ) [2025-02-09 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:11:05' and `end` < '2025-02-09 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:11:19] Production.INFO: count ==1834 [2025-02-09 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:11:05 - End Time 2025-02-09 18:11:05 [2025-02-09 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438799', 'tblTempUsageDetail_20' ) start [2025-02-09 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438799', 'tblTempUsageDetail_20' ) end [2025-02-09 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438799', 'tblTempVendorCDR_20' ) start [2025-02-09 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438799', 'tblTempVendorCDR_20' ) end [2025-02-09 18:11:19] Production.INFO: ProcessCDR(1,14438799,1,1,2) [2025-02-09 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438799', 'tblTempUsageDetail_20' ) start [2025-02-09 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438799', 'tblTempUsageDetail_20' ) end [2025-02-09 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:11:22] Production.INFO: ==23175== Releasing lock... [2025-02-09 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:12:05 [end_date_ymd] => 2025-02-09 18:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:12:05' and `end` < '2025-02-09 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-02-09 18:12:18] Production.INFO: count ==1831 [2025-02-09 18:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:12:05 - End Time 2025-02-09 18:12:05 [2025-02-09 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438804', 'tblTempUsageDetail_20' ) start [2025-02-09 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438804', 'tblTempUsageDetail_20' ) end [2025-02-09 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438804', 'tblTempVendorCDR_20' ) start [2025-02-09 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438804', 'tblTempVendorCDR_20' ) end [2025-02-09 18:12:19] Production.INFO: ProcessCDR(1,14438804,1,1,2) [2025-02-09 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438804', 'tblTempUsageDetail_20' ) start [2025-02-09 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438804', 'tblTempUsageDetail_20' ) end [2025-02-09 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:12:22] Production.INFO: ==23257== Releasing lock... [2025-02-09 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:13:05 [end_date_ymd] => 2025-02-09 18:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:13:05' and `end` < '2025-02-09 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-02-09 18:13:18] Production.INFO: count ==1830 [2025-02-09 18:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:13:05 - End Time 2025-02-09 18:13:05 [2025-02-09 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438809', 'tblTempUsageDetail_20' ) start [2025-02-09 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438809', 'tblTempUsageDetail_20' ) end [2025-02-09 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438809', 'tblTempVendorCDR_20' ) start [2025-02-09 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438809', 'tblTempVendorCDR_20' ) end [2025-02-09 18:13:18] Production.INFO: ProcessCDR(1,14438809,1,1,2) [2025-02-09 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438809', 'tblTempUsageDetail_20' ) start [2025-02-09 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438809', 'tblTempUsageDetail_20' ) end [2025-02-09 18:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:13:21] Production.INFO: ==23331== Releasing lock... [2025-02-09 18:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:13:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:14:05 [end_date_ymd] => 2025-02-09 18:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:14:05' and `end` < '2025-02-09 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-02-09 18:14:18] Production.INFO: count ==1829 [2025-02-09 18:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:14:05 - End Time 2025-02-09 18:14:05 [2025-02-09 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438814', 'tblTempUsageDetail_20' ) start [2025-02-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438814', 'tblTempUsageDetail_20' ) end [2025-02-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438814', 'tblTempVendorCDR_20' ) start [2025-02-09 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438814', 'tblTempVendorCDR_20' ) end [2025-02-09 18:14:19] Production.INFO: ProcessCDR(1,14438814,1,1,2) [2025-02-09 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438814', 'tblTempUsageDetail_20' ) start [2025-02-09 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438814', 'tblTempUsageDetail_20' ) end [2025-02-09 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:14:22] Production.INFO: ==23406== Releasing lock... [2025-02-09 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:14:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:15:05 [end_date_ymd] => 2025-02-09 18:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:15:05' and `end` < '2025-02-09 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-02-09 18:15:22] Production.INFO: count ==1832 [2025-02-09 18:15:22] Production.ERROR: pbx CDR StartTime 2025-02-09 15:15:05 - End Time 2025-02-09 18:15:05 [2025-02-09 18:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438819', 'tblTempUsageDetail_20' ) start [2025-02-09 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438819', 'tblTempUsageDetail_20' ) end [2025-02-09 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438819', 'tblTempVendorCDR_20' ) start [2025-02-09 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438819', 'tblTempVendorCDR_20' ) end [2025-02-09 18:15:22] Production.INFO: ProcessCDR(1,14438819,1,1,2) [2025-02-09 18:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438819', 'tblTempUsageDetail_20' ) start [2025-02-09 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438819', 'tblTempUsageDetail_20' ) end [2025-02-09 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:15:25] Production.INFO: ==23485== Releasing lock... [2025-02-09 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:15:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:16:05 [end_date_ymd] => 2025-02-09 18:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:16:05' and `end` < '2025-02-09 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-02-09 18:16:20] Production.INFO: count ==1838 [2025-02-09 18:16:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:16:05 - End Time 2025-02-09 18:16:05 [2025-02-09 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438824', 'tblTempUsageDetail_20' ) start [2025-02-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438824', 'tblTempUsageDetail_20' ) end [2025-02-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438824', 'tblTempVendorCDR_20' ) start [2025-02-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438824', 'tblTempVendorCDR_20' ) end [2025-02-09 18:16:20] Production.INFO: ProcessCDR(1,14438824,1,1,2) [2025-02-09 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438824', 'tblTempUsageDetail_20' ) start [2025-02-09 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438824', 'tblTempUsageDetail_20' ) end [2025-02-09 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:16:24] Production.INFO: ==23561== Releasing lock... [2025-02-09 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:16:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-09 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:17:06 [end_date_ymd] => 2025-02-09 18:17:06 [RateCDR] => 1 ) [2025-02-09 18: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-02-09 15:17:06' and `end` < '2025-02-09 18: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-02-09 18:17:20] Production.INFO: count ==1839 [2025-02-09 18:17:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:17:06 - End Time 2025-02-09 18:17:06 [2025-02-09 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438829', 'tblTempUsageDetail_20' ) start [2025-02-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438829', 'tblTempUsageDetail_20' ) end [2025-02-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438829', 'tblTempVendorCDR_20' ) start [2025-02-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438829', 'tblTempVendorCDR_20' ) end [2025-02-09 18:17:20] Production.INFO: ProcessCDR(1,14438829,1,1,2) [2025-02-09 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438829', 'tblTempUsageDetail_20' ) start [2025-02-09 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438829', 'tblTempUsageDetail_20' ) end [2025-02-09 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:17:23] Production.INFO: ==23645== Releasing lock... [2025-02-09 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:17:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-09 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:18:05 [end_date_ymd] => 2025-02-09 18:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:18:05' and `end` < '2025-02-09 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-02-09 18:18:19] Production.INFO: count ==1833 [2025-02-09 18:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:18:05 - End Time 2025-02-09 18:18:05 [2025-02-09 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438834', 'tblTempUsageDetail_20' ) start [2025-02-09 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438834', 'tblTempUsageDetail_20' ) end [2025-02-09 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438834', 'tblTempVendorCDR_20' ) start [2025-02-09 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438834', 'tblTempVendorCDR_20' ) end [2025-02-09 18:18:19] Production.INFO: ProcessCDR(1,14438834,1,1,2) [2025-02-09 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438834', 'tblTempUsageDetail_20' ) start [2025-02-09 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438834', 'tblTempUsageDetail_20' ) end [2025-02-09 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:18:22] Production.INFO: ==23722== Releasing lock... [2025-02-09 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:19:05 [end_date_ymd] => 2025-02-09 18:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:19:05' and `end` < '2025-02-09 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-02-09 18:19:18] Production.INFO: count ==1824 [2025-02-09 18:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:19:05 - End Time 2025-02-09 18:19:05 [2025-02-09 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438839', 'tblTempUsageDetail_20' ) start [2025-02-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438839', 'tblTempUsageDetail_20' ) end [2025-02-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438839', 'tblTempVendorCDR_20' ) start [2025-02-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438839', 'tblTempVendorCDR_20' ) end [2025-02-09 18:19:18] Production.INFO: ProcessCDR(1,14438839,1,1,2) [2025-02-09 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438839', 'tblTempUsageDetail_20' ) start [2025-02-09 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438839', 'tblTempUsageDetail_20' ) end [2025-02-09 18:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:19:21] Production.INFO: ==23803== Releasing lock... [2025-02-09 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:19:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:20:06 [end_date_ymd] => 2025-02-09 18:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:20:06' and `end` < '2025-02-09 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-02-09 18:20:26] Production.INFO: count ==1823 [2025-02-09 18:20:26] Production.ERROR: pbx CDR StartTime 2025-02-09 15:20:06 - End Time 2025-02-09 18:20:06 [2025-02-09 18:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438844', 'tblTempUsageDetail_20' ) start [2025-02-09 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438844', 'tblTempUsageDetail_20' ) end [2025-02-09 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438844', 'tblTempVendorCDR_20' ) start [2025-02-09 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438844', 'tblTempVendorCDR_20' ) end [2025-02-09 18:20:26] Production.INFO: ProcessCDR(1,14438844,1,1,2) [2025-02-09 18:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438844', 'tblTempUsageDetail_20' ) start [2025-02-09 18:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438844', 'tblTempUsageDetail_20' ) end [2025-02-09 18:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:20:31] Production.INFO: ==23881== Releasing lock... [2025-02-09 18:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:20:31] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:21:05 [end_date_ymd] => 2025-02-09 18:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:21:05' and `end` < '2025-02-09 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-02-09 18:21:18] Production.INFO: count ==1895 [2025-02-09 18:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:21:05 - End Time 2025-02-09 18:21:05 [2025-02-09 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438850', 'tblTempUsageDetail_20' ) start [2025-02-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438850', 'tblTempUsageDetail_20' ) end [2025-02-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438850', 'tblTempVendorCDR_20' ) start [2025-02-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438850', 'tblTempVendorCDR_20' ) end [2025-02-09 18:21:18] Production.INFO: ProcessCDR(1,14438850,1,1,2) [2025-02-09 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438850', 'tblTempUsageDetail_20' ) start [2025-02-09 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438850', 'tblTempUsageDetail_20' ) end [2025-02-09 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:21:23] Production.INFO: ==23960== Releasing lock... [2025-02-09 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:21:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:22:05 [end_date_ymd] => 2025-02-09 18:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:22:05' and `end` < '2025-02-09 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-02-09 18:22:20] Production.INFO: count ==1898 [2025-02-09 18:22:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:22:05 - End Time 2025-02-09 18:22:05 [2025-02-09 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438855', 'tblTempUsageDetail_20' ) start [2025-02-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438855', 'tblTempUsageDetail_20' ) end [2025-02-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438855', 'tblTempVendorCDR_20' ) start [2025-02-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438855', 'tblTempVendorCDR_20' ) end [2025-02-09 18:22:20] Production.INFO: ProcessCDR(1,14438855,1,1,2) [2025-02-09 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438855', 'tblTempUsageDetail_20' ) start [2025-02-09 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438855', 'tblTempUsageDetail_20' ) end [2025-02-09 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:22:23] Production.INFO: ==24036== Releasing lock... [2025-02-09 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:22:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:23:05 [end_date_ymd] => 2025-02-09 18:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:23:05' and `end` < '2025-02-09 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-02-09 18:23:19] Production.INFO: count ==1898 [2025-02-09 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:23:05 - End Time 2025-02-09 18:23:05 [2025-02-09 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438860', 'tblTempUsageDetail_20' ) start [2025-02-09 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438860', 'tblTempUsageDetail_20' ) end [2025-02-09 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438860', 'tblTempVendorCDR_20' ) start [2025-02-09 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438860', 'tblTempVendorCDR_20' ) end [2025-02-09 18:23:19] Production.INFO: ProcessCDR(1,14438860,1,1,2) [2025-02-09 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438860', 'tblTempUsageDetail_20' ) start [2025-02-09 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438860', 'tblTempUsageDetail_20' ) end [2025-02-09 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:23:22] Production.INFO: ==24154== Releasing lock... [2025-02-09 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:23:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:24:05 [end_date_ymd] => 2025-02-09 18:24:05 [RateCDR] => 1 ) [2025-02-09 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:24:05' and `end` < '2025-02-09 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:24:18] Production.INFO: count ==1900 [2025-02-09 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:24:05 - End Time 2025-02-09 18:24:05 [2025-02-09 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438865', 'tblTempUsageDetail_20' ) start [2025-02-09 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438865', 'tblTempUsageDetail_20' ) end [2025-02-09 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438865', 'tblTempVendorCDR_20' ) start [2025-02-09 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438865', 'tblTempVendorCDR_20' ) end [2025-02-09 18:24:19] Production.INFO: ProcessCDR(1,14438865,1,1,2) [2025-02-09 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438865', 'tblTempUsageDetail_20' ) start [2025-02-09 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438865', 'tblTempUsageDetail_20' ) end [2025-02-09 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:24:22] Production.INFO: ==24227== Releasing lock... [2025-02-09 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:24:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:25:05 [end_date_ymd] => 2025-02-09 18:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:25:05' and `end` < '2025-02-09 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-02-09 18:25:18] Production.INFO: count ==1916 [2025-02-09 18:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:25:05 - End Time 2025-02-09 18:25:05 [2025-02-09 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438870', 'tblTempUsageDetail_20' ) start [2025-02-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438870', 'tblTempUsageDetail_20' ) end [2025-02-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438870', 'tblTempVendorCDR_20' ) start [2025-02-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438870', 'tblTempVendorCDR_20' ) end [2025-02-09 18:25:18] Production.INFO: ProcessCDR(1,14438870,1,1,2) [2025-02-09 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438870', 'tblTempUsageDetail_20' ) start [2025-02-09 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438870', 'tblTempUsageDetail_20' ) end [2025-02-09 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:25:22] Production.INFO: ==24311== Releasing lock... [2025-02-09 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:25:22] Production.INFO: 42 MB #Memory Used# [2025-02-09 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:26:05 [end_date_ymd] => 2025-02-09 18:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:26:05' and `end` < '2025-02-09 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-02-09 18:26:18] Production.INFO: count ==1920 [2025-02-09 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:26:05 - End Time 2025-02-09 18:26:05 [2025-02-09 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438875', 'tblTempUsageDetail_20' ) start [2025-02-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438875', 'tblTempUsageDetail_20' ) end [2025-02-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438875', 'tblTempVendorCDR_20' ) start [2025-02-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438875', 'tblTempVendorCDR_20' ) end [2025-02-09 18:26:19] Production.INFO: ProcessCDR(1,14438875,1,1,2) [2025-02-09 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438875', 'tblTempUsageDetail_20' ) start [2025-02-09 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438875', 'tblTempUsageDetail_20' ) end [2025-02-09 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:26:23] Production.INFO: ==24389== Releasing lock... [2025-02-09 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:26:23] Production.INFO: 42 MB #Memory Used# [2025-02-09 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:27:04 [end_date_ymd] => 2025-02-09 18:27:04 [RateCDR] => 1 ) [2025-02-09 18:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:27:04' and `end` < '2025-02-09 18:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:27:18] Production.INFO: count ==1919 [2025-02-09 18:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:27:04 - End Time 2025-02-09 18:27:04 [2025-02-09 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438880', 'tblTempUsageDetail_20' ) start [2025-02-09 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438880', 'tblTempUsageDetail_20' ) end [2025-02-09 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438880', 'tblTempVendorCDR_20' ) start [2025-02-09 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438880', 'tblTempVendorCDR_20' ) end [2025-02-09 18:27:18] Production.INFO: ProcessCDR(1,14438880,1,1,2) [2025-02-09 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438880', 'tblTempUsageDetail_20' ) start [2025-02-09 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438880', 'tblTempUsageDetail_20' ) end [2025-02-09 18:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:27:21] Production.INFO: ==24469== Releasing lock... [2025-02-09 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:27:21] Production.INFO: 42 MB #Memory Used# [2025-02-09 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:28:05 [end_date_ymd] => 2025-02-09 18:28:05 [RateCDR] => 1 ) [2025-02-09 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:28:05' and `end` < '2025-02-09 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:28:22] Production.INFO: count ==1922 [2025-02-09 18:28:22] Production.ERROR: pbx CDR StartTime 2025-02-09 15:28:05 - End Time 2025-02-09 18:28:05 [2025-02-09 18:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438885', 'tblTempUsageDetail_20' ) start [2025-02-09 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438885', 'tblTempUsageDetail_20' ) end [2025-02-09 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438885', 'tblTempVendorCDR_20' ) start [2025-02-09 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438885', 'tblTempVendorCDR_20' ) end [2025-02-09 18:28:22] Production.INFO: ProcessCDR(1,14438885,1,1,2) [2025-02-09 18:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438885', 'tblTempUsageDetail_20' ) start [2025-02-09 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438885', 'tblTempUsageDetail_20' ) end [2025-02-09 18:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:28:27] Production.INFO: ==24544== Releasing lock... [2025-02-09 18:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:28:27] Production.INFO: 42 MB #Memory Used# [2025-02-09 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:29:05 [end_date_ymd] => 2025-02-09 18:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:29:05' and `end` < '2025-02-09 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-02-09 18:29:22] Production.INFO: count ==1925 [2025-02-09 18:29:23] Production.ERROR: pbx CDR StartTime 2025-02-09 15:29:05 - End Time 2025-02-09 18:29:05 [2025-02-09 18:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438890', 'tblTempUsageDetail_20' ) start [2025-02-09 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438890', 'tblTempUsageDetail_20' ) end [2025-02-09 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438890', 'tblTempVendorCDR_20' ) start [2025-02-09 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438890', 'tblTempVendorCDR_20' ) end [2025-02-09 18:29:23] Production.INFO: ProcessCDR(1,14438890,1,1,2) [2025-02-09 18:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438890', 'tblTempUsageDetail_20' ) start [2025-02-09 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438890', 'tblTempUsageDetail_20' ) end [2025-02-09 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:29:26] Production.INFO: ==24625== Releasing lock... [2025-02-09 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:29:26] Production.INFO: 42 MB #Memory Used# [2025-02-09 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:30:06 [end_date_ymd] => 2025-02-09 18:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:30:06' and `end` < '2025-02-09 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-02-09 18:30:21] Production.INFO: count ==1926 [2025-02-09 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-09 15:30:06 - End Time 2025-02-09 18:30:06 [2025-02-09 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438896', 'tblTempUsageDetail_20' ) start [2025-02-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438896', 'tblTempUsageDetail_20' ) end [2025-02-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438896', 'tblTempVendorCDR_20' ) start [2025-02-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438896', 'tblTempVendorCDR_20' ) end [2025-02-09 18:30:21] Production.INFO: ProcessCDR(1,14438896,1,1,2) [2025-02-09 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438896', 'tblTempUsageDetail_20' ) start [2025-02-09 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438896', 'tblTempUsageDetail_20' ) end [2025-02-09 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:30:25] Production.INFO: ==24705== Releasing lock... [2025-02-09 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:30:25] Production.INFO: 42 MB #Memory Used# [2025-02-09 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:31:05 [end_date_ymd] => 2025-02-09 18:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:31:05' and `end` < '2025-02-09 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-02-09 18:31:20] Production.INFO: count ==1959 [2025-02-09 18:31:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:31:05 - End Time 2025-02-09 18:31:05 [2025-02-09 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438901', 'tblTempUsageDetail_20' ) start [2025-02-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438901', 'tblTempUsageDetail_20' ) end [2025-02-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438901', 'tblTempVendorCDR_20' ) start [2025-02-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438901', 'tblTempVendorCDR_20' ) end [2025-02-09 18:31:20] Production.INFO: ProcessCDR(1,14438901,1,1,2) [2025-02-09 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438901', 'tblTempUsageDetail_20' ) start [2025-02-09 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438901', 'tblTempUsageDetail_20' ) end [2025-02-09 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:31:23] Production.INFO: ==24785== Releasing lock... [2025-02-09 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:31:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:32:05 [end_date_ymd] => 2025-02-09 18:32:05 [RateCDR] => 1 ) [2025-02-09 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:32:05' and `end` < '2025-02-09 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:32:18] Production.INFO: count ==1965 [2025-02-09 18:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:32:05 - End Time 2025-02-09 18:32:05 [2025-02-09 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438906', 'tblTempUsageDetail_20' ) start [2025-02-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438906', 'tblTempUsageDetail_20' ) end [2025-02-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438906', 'tblTempVendorCDR_20' ) start [2025-02-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438906', 'tblTempVendorCDR_20' ) end [2025-02-09 18:32:19] Production.INFO: ProcessCDR(1,14438906,1,1,2) [2025-02-09 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438906', 'tblTempUsageDetail_20' ) start [2025-02-09 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438906', 'tblTempUsageDetail_20' ) end [2025-02-09 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:32:22] Production.INFO: ==24861== Releasing lock... [2025-02-09 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:32:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:33:06 [end_date_ymd] => 2025-02-09 18:33:06 [RateCDR] => 1 ) [2025-02-09 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:33:06' and `end` < '2025-02-09 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:33:20] Production.INFO: count ==1963 [2025-02-09 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:33:06 - End Time 2025-02-09 18:33:06 [2025-02-09 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438911', 'tblTempUsageDetail_20' ) start [2025-02-09 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438911', 'tblTempUsageDetail_20' ) end [2025-02-09 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438911', 'tblTempVendorCDR_20' ) start [2025-02-09 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438911', 'tblTempVendorCDR_20' ) end [2025-02-09 18:33:21] Production.INFO: ProcessCDR(1,14438911,1,1,2) [2025-02-09 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438911', 'tblTempUsageDetail_20' ) start [2025-02-09 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438911', 'tblTempUsageDetail_20' ) end [2025-02-09 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:33:24] Production.INFO: ==24939== Releasing lock... [2025-02-09 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:33:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:34:05 [end_date_ymd] => 2025-02-09 18:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:34:05' and `end` < '2025-02-09 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-02-09 18:34:18] Production.INFO: count ==1965 [2025-02-09 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:34:05 - End Time 2025-02-09 18:34:05 [2025-02-09 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438916', 'tblTempUsageDetail_20' ) start [2025-02-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438916', 'tblTempUsageDetail_20' ) end [2025-02-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438916', 'tblTempVendorCDR_20' ) start [2025-02-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438916', 'tblTempVendorCDR_20' ) end [2025-02-09 18:34:19] Production.INFO: ProcessCDR(1,14438916,1,1,2) [2025-02-09 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438916', 'tblTempUsageDetail_20' ) start [2025-02-09 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438916', 'tblTempUsageDetail_20' ) end [2025-02-09 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:34:22] Production.INFO: ==25029== Releasing lock... [2025-02-09 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:34:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:35:05 [end_date_ymd] => 2025-02-09 18:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:35:05' and `end` < '2025-02-09 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-02-09 18:35:20] Production.INFO: count ==1967 [2025-02-09 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:35:05 - End Time 2025-02-09 18:35:05 [2025-02-09 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438921', 'tblTempUsageDetail_20' ) start [2025-02-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438921', 'tblTempUsageDetail_20' ) end [2025-02-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438921', 'tblTempVendorCDR_20' ) start [2025-02-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438921', 'tblTempVendorCDR_20' ) end [2025-02-09 18:35:20] Production.INFO: ProcessCDR(1,14438921,1,1,2) [2025-02-09 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438921', 'tblTempUsageDetail_20' ) start [2025-02-09 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438921', 'tblTempUsageDetail_20' ) end [2025-02-09 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:35:23] Production.INFO: ==25107== Releasing lock... [2025-02-09 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:35:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:36:05 [end_date_ymd] => 2025-02-09 18:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:36:05' and `end` < '2025-02-09 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-02-09 18:36:20] Production.INFO: count ==1964 [2025-02-09 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:36:05 - End Time 2025-02-09 18:36:05 [2025-02-09 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438926', 'tblTempUsageDetail_20' ) start [2025-02-09 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438926', 'tblTempUsageDetail_20' ) end [2025-02-09 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438926', 'tblTempVendorCDR_20' ) start [2025-02-09 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438926', 'tblTempVendorCDR_20' ) end [2025-02-09 18:36:20] Production.INFO: ProcessCDR(1,14438926,1,1,2) [2025-02-09 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438926', 'tblTempUsageDetail_20' ) start [2025-02-09 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438926', 'tblTempUsageDetail_20' ) end [2025-02-09 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:36:25] Production.INFO: ==25185== Releasing lock... [2025-02-09 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:36:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:37:05 [end_date_ymd] => 2025-02-09 18:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:37:05' and `end` < '2025-02-09 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-02-09 18:37:18] Production.INFO: count ==1965 [2025-02-09 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:37:05 - End Time 2025-02-09 18:37:05 [2025-02-09 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438931', 'tblTempUsageDetail_20' ) start [2025-02-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438931', 'tblTempUsageDetail_20' ) end [2025-02-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438931', 'tblTempVendorCDR_20' ) start [2025-02-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438931', 'tblTempVendorCDR_20' ) end [2025-02-09 18:37:19] Production.INFO: ProcessCDR(1,14438931,1,1,2) [2025-02-09 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438931', 'tblTempUsageDetail_20' ) start [2025-02-09 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438931', 'tblTempUsageDetail_20' ) end [2025-02-09 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:37:23] Production.INFO: ==25259== Releasing lock... [2025-02-09 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:38:05 [end_date_ymd] => 2025-02-09 18:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:38:05' and `end` < '2025-02-09 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-02-09 18:38:18] Production.INFO: count ==1963 [2025-02-09 18:38:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:38:05 - End Time 2025-02-09 18:38:05 [2025-02-09 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438936', 'tblTempUsageDetail_20' ) start [2025-02-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438936', 'tblTempUsageDetail_20' ) end [2025-02-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438936', 'tblTempVendorCDR_20' ) start [2025-02-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438936', 'tblTempVendorCDR_20' ) end [2025-02-09 18:38:18] Production.INFO: ProcessCDR(1,14438936,1,1,2) [2025-02-09 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438936', 'tblTempUsageDetail_20' ) start [2025-02-09 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438936', 'tblTempUsageDetail_20' ) end [2025-02-09 18:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:38:21] Production.INFO: ==25371== Releasing lock... [2025-02-09 18:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:38:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:39:05 [end_date_ymd] => 2025-02-09 18:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:39:05' and `end` < '2025-02-09 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-02-09 18:39:21] Production.INFO: count ==1969 [2025-02-09 18:39:21] Production.ERROR: pbx CDR StartTime 2025-02-09 15:39:05 - End Time 2025-02-09 18:39:05 [2025-02-09 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438941', 'tblTempUsageDetail_20' ) start [2025-02-09 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438941', 'tblTempUsageDetail_20' ) end [2025-02-09 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438941', 'tblTempVendorCDR_20' ) start [2025-02-09 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438941', 'tblTempVendorCDR_20' ) end [2025-02-09 18:39:21] Production.INFO: ProcessCDR(1,14438941,1,1,2) [2025-02-09 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438941', 'tblTempUsageDetail_20' ) start [2025-02-09 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438941', 'tblTempUsageDetail_20' ) end [2025-02-09 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:39:24] Production.INFO: ==25453== Releasing lock... [2025-02-09 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:39:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:40:07 [end_date_ymd] => 2025-02-09 18:40:07 [RateCDR] => 1 ) [2025-02-09 18: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-02-09 15:40:07' and `end` < '2025-02-09 18: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-02-09 18:40:20] Production.INFO: count ==1970 [2025-02-09 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:40:07 - End Time 2025-02-09 18:40:07 [2025-02-09 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438947', 'tblTempUsageDetail_20' ) start [2025-02-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438947', 'tblTempUsageDetail_20' ) end [2025-02-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438947', 'tblTempVendorCDR_20' ) start [2025-02-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438947', 'tblTempVendorCDR_20' ) end [2025-02-09 18:40:20] Production.INFO: ProcessCDR(1,14438947,1,1,2) [2025-02-09 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438947', 'tblTempUsageDetail_20' ) start [2025-02-09 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438947', 'tblTempUsageDetail_20' ) end [2025-02-09 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:40:25] Production.INFO: ==25538== Releasing lock... [2025-02-09 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:40:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:41:05 [end_date_ymd] => 2025-02-09 18:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:41:05' and `end` < '2025-02-09 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-02-09 18:41:19] Production.INFO: count ==2005 [2025-02-09 18:41:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:41:05 - End Time 2025-02-09 18:41:05 [2025-02-09 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438952', 'tblTempUsageDetail_20' ) start [2025-02-09 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438952', 'tblTempUsageDetail_20' ) end [2025-02-09 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438952', 'tblTempVendorCDR_20' ) start [2025-02-09 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438952', 'tblTempVendorCDR_20' ) end [2025-02-09 18:41:20] Production.INFO: ProcessCDR(1,14438952,1,1,2) [2025-02-09 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438952', 'tblTempUsageDetail_20' ) start [2025-02-09 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438952', 'tblTempUsageDetail_20' ) end [2025-02-09 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:41:25] Production.INFO: ==25630== Releasing lock... [2025-02-09 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:41:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:42:05 [end_date_ymd] => 2025-02-09 18:42:05 [RateCDR] => 1 ) [2025-02-09 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:42:05' and `end` < '2025-02-09 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:42:19] Production.INFO: count ==2010 [2025-02-09 18:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:42:05 - End Time 2025-02-09 18:42:05 [2025-02-09 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438957', 'tblTempUsageDetail_20' ) start [2025-02-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438957', 'tblTempUsageDetail_20' ) end [2025-02-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438957', 'tblTempVendorCDR_20' ) start [2025-02-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438957', 'tblTempVendorCDR_20' ) end [2025-02-09 18:42:19] Production.INFO: ProcessCDR(1,14438957,1,1,2) [2025-02-09 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438957', 'tblTempUsageDetail_20' ) start [2025-02-09 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438957', 'tblTempUsageDetail_20' ) end [2025-02-09 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:42:23] Production.INFO: ==25708== Releasing lock... [2025-02-09 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:42:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:43:05 [end_date_ymd] => 2025-02-09 18:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:43:05' and `end` < '2025-02-09 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-02-09 18:43:20] Production.INFO: count ==2012 [2025-02-09 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-09 15:43:05 - End Time 2025-02-09 18:43:05 [2025-02-09 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438962', 'tblTempUsageDetail_20' ) start [2025-02-09 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438962', 'tblTempUsageDetail_20' ) end [2025-02-09 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438962', 'tblTempVendorCDR_20' ) start [2025-02-09 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438962', 'tblTempVendorCDR_20' ) end [2025-02-09 18:43:20] Production.INFO: ProcessCDR(1,14438962,1,1,2) [2025-02-09 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438962', 'tblTempUsageDetail_20' ) start [2025-02-09 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438962', 'tblTempUsageDetail_20' ) end [2025-02-09 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:43:24] Production.INFO: ==25785== Releasing lock... [2025-02-09 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:43:24] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:44:05 [end_date_ymd] => 2025-02-09 18:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:44:05' and `end` < '2025-02-09 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-02-09 18:44:18] Production.INFO: count ==2012 [2025-02-09 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:44:05 - End Time 2025-02-09 18:44:05 [2025-02-09 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438967', 'tblTempUsageDetail_20' ) start [2025-02-09 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438967', 'tblTempUsageDetail_20' ) end [2025-02-09 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438967', 'tblTempVendorCDR_20' ) start [2025-02-09 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438967', 'tblTempVendorCDR_20' ) end [2025-02-09 18:44:19] Production.INFO: ProcessCDR(1,14438967,1,1,2) [2025-02-09 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438967', 'tblTempUsageDetail_20' ) start [2025-02-09 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438967', 'tblTempUsageDetail_20' ) end [2025-02-09 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:44:24] Production.INFO: ==25869== Releasing lock... [2025-02-09 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:44:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:45:05 [end_date_ymd] => 2025-02-09 18:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:45:05' and `end` < '2025-02-09 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-02-09 18:45:18] Production.INFO: count ==2012 [2025-02-09 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:45:05 - End Time 2025-02-09 18:45:05 [2025-02-09 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438972', 'tblTempUsageDetail_20' ) start [2025-02-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438972', 'tblTempUsageDetail_20' ) end [2025-02-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438972', 'tblTempVendorCDR_20' ) start [2025-02-09 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438972', 'tblTempVendorCDR_20' ) end [2025-02-09 18:45:19] Production.INFO: ProcessCDR(1,14438972,1,1,2) [2025-02-09 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438972', 'tblTempUsageDetail_20' ) start [2025-02-09 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438972', 'tblTempUsageDetail_20' ) end [2025-02-09 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:45:23] Production.INFO: ==25944== Releasing lock... [2025-02-09 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:45:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:46:05 [end_date_ymd] => 2025-02-09 18:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:46:05' and `end` < '2025-02-09 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-02-09 18:46:18] Production.INFO: count ==2014 [2025-02-09 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:46:05 - End Time 2025-02-09 18:46:05 [2025-02-09 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438977', 'tblTempUsageDetail_20' ) start [2025-02-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438977', 'tblTempUsageDetail_20' ) end [2025-02-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438977', 'tblTempVendorCDR_20' ) start [2025-02-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438977', 'tblTempVendorCDR_20' ) end [2025-02-09 18:46:19] Production.INFO: ProcessCDR(1,14438977,1,1,2) [2025-02-09 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438977', 'tblTempUsageDetail_20' ) start [2025-02-09 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438977', 'tblTempUsageDetail_20' ) end [2025-02-09 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:46:22] Production.INFO: ==26019== Releasing lock... [2025-02-09 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:47:04 [end_date_ymd] => 2025-02-09 18:47:04 [RateCDR] => 1 ) [2025-02-09 18: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-02-09 15:47:04' and `end` < '2025-02-09 18: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-02-09 18:47:17] Production.INFO: count ==2025 [2025-02-09 18:47:17] Production.ERROR: pbx CDR StartTime 2025-02-09 15:47:04 - End Time 2025-02-09 18:47:04 [2025-02-09 18:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438982', 'tblTempUsageDetail_20' ) start [2025-02-09 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438982', 'tblTempUsageDetail_20' ) end [2025-02-09 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438982', 'tblTempVendorCDR_20' ) start [2025-02-09 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438982', 'tblTempVendorCDR_20' ) end [2025-02-09 18:47:17] Production.INFO: ProcessCDR(1,14438982,1,1,2) [2025-02-09 18:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438982', 'tblTempUsageDetail_20' ) start [2025-02-09 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438982', 'tblTempUsageDetail_20' ) end [2025-02-09 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:47:22] Production.INFO: ==26094== Releasing lock... [2025-02-09 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:47:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:48:05 [end_date_ymd] => 2025-02-09 18:48:05 [RateCDR] => 1 ) [2025-02-09 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:48:05' and `end` < '2025-02-09 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:48:18] Production.INFO: count ==2033 [2025-02-09 18:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:48:05 - End Time 2025-02-09 18:48:05 [2025-02-09 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438987', 'tblTempUsageDetail_20' ) start [2025-02-09 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438987', 'tblTempUsageDetail_20' ) end [2025-02-09 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438987', 'tblTempVendorCDR_20' ) start [2025-02-09 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438987', 'tblTempVendorCDR_20' ) end [2025-02-09 18:48:18] Production.INFO: ProcessCDR(1,14438987,1,1,2) [2025-02-09 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438987', 'tblTempUsageDetail_20' ) start [2025-02-09 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438987', 'tblTempUsageDetail_20' ) end [2025-02-09 18:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:48:21] Production.INFO: ==26172== Releasing lock... [2025-02-09 18:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:48:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:49:05 [end_date_ymd] => 2025-02-09 18:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:49:05' and `end` < '2025-02-09 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-02-09 18:49:18] Production.INFO: count ==2029 [2025-02-09 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:49:05 - End Time 2025-02-09 18:49:05 [2025-02-09 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438992', 'tblTempUsageDetail_20' ) start [2025-02-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438992', 'tblTempUsageDetail_20' ) end [2025-02-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438992', 'tblTempVendorCDR_20' ) start [2025-02-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438992', 'tblTempVendorCDR_20' ) end [2025-02-09 18:49:19] Production.INFO: ProcessCDR(1,14438992,1,1,2) [2025-02-09 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438992', 'tblTempUsageDetail_20' ) start [2025-02-09 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438992', 'tblTempUsageDetail_20' ) end [2025-02-09 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:49:23] Production.INFO: ==26248== Releasing lock... [2025-02-09 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:49:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:50:06 [end_date_ymd] => 2025-02-09 18:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:50:06' and `end` < '2025-02-09 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-02-09 18:50:19] Production.INFO: count ==2032 [2025-02-09 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:50:06 - End Time 2025-02-09 18:50:06 [2025-02-09 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438998', 'tblTempUsageDetail_20' ) start [2025-02-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14438998', 'tblTempUsageDetail_20' ) end [2025-02-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438998', 'tblTempVendorCDR_20' ) start [2025-02-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14438998', 'tblTempVendorCDR_20' ) end [2025-02-09 18:50:19] Production.INFO: ProcessCDR(1,14438998,1,1,2) [2025-02-09 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14438998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14438998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14438998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14438998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438998', 'tblTempUsageDetail_20' ) start [2025-02-09 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14438998', 'tblTempUsageDetail_20' ) end [2025-02-09 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:50:23] Production.INFO: ==26327== Releasing lock... [2025-02-09 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:50:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:51:05 [end_date_ymd] => 2025-02-09 18:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:51:05' and `end` < '2025-02-09 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-02-09 18:51:21] Production.INFO: count ==2048 [2025-02-09 18:51:21] Production.ERROR: pbx CDR StartTime 2025-02-09 15:51:05 - End Time 2025-02-09 18:51:05 [2025-02-09 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439003', 'tblTempUsageDetail_20' ) start [2025-02-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439003', 'tblTempUsageDetail_20' ) end [2025-02-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439003', 'tblTempVendorCDR_20' ) start [2025-02-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439003', 'tblTempVendorCDR_20' ) end [2025-02-09 18:51:21] Production.INFO: ProcessCDR(1,14439003,1,1,2) [2025-02-09 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439003', 'tblTempUsageDetail_20' ) start [2025-02-09 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439003', 'tblTempUsageDetail_20' ) end [2025-02-09 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:51:26] Production.INFO: ==26409== Releasing lock... [2025-02-09 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:51:26] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:52:05 [end_date_ymd] => 2025-02-09 18:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:52:05' and `end` < '2025-02-09 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-02-09 18:52:18] Production.INFO: count ==2038 [2025-02-09 18:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:52:05 - End Time 2025-02-09 18:52:05 [2025-02-09 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439008', 'tblTempUsageDetail_20' ) start [2025-02-09 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439008', 'tblTempUsageDetail_20' ) end [2025-02-09 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439008', 'tblTempVendorCDR_20' ) start [2025-02-09 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439008', 'tblTempVendorCDR_20' ) end [2025-02-09 18:52:18] Production.INFO: ProcessCDR(1,14439008,1,1,2) [2025-02-09 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439008', 'tblTempUsageDetail_20' ) start [2025-02-09 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439008', 'tblTempUsageDetail_20' ) end [2025-02-09 18:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:52:21] Production.INFO: ==26482== Releasing lock... [2025-02-09 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:52:21] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:53:05 [end_date_ymd] => 2025-02-09 18:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:53:05' and `end` < '2025-02-09 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-02-09 18:53:21] Production.INFO: count ==2039 [2025-02-09 18:53:21] Production.ERROR: pbx CDR StartTime 2025-02-09 15:53:05 - End Time 2025-02-09 18:53:05 [2025-02-09 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439013', 'tblTempUsageDetail_20' ) start [2025-02-09 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439013', 'tblTempUsageDetail_20' ) end [2025-02-09 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439013', 'tblTempVendorCDR_20' ) start [2025-02-09 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439013', 'tblTempVendorCDR_20' ) end [2025-02-09 18:53:21] Production.INFO: ProcessCDR(1,14439013,1,1,2) [2025-02-09 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439013', 'tblTempUsageDetail_20' ) start [2025-02-09 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439013', 'tblTempUsageDetail_20' ) end [2025-02-09 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:53:24] Production.INFO: ==26627== Releasing lock... [2025-02-09 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:53:24] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:54:04 [end_date_ymd] => 2025-02-09 18:54:04 [RateCDR] => 1 ) [2025-02-09 18:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:54:04' and `end` < '2025-02-09 18:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:54:17] Production.INFO: count ==2038 [2025-02-09 18:54:17] Production.ERROR: pbx CDR StartTime 2025-02-09 15:54:04 - End Time 2025-02-09 18:54:04 [2025-02-09 18:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439018', 'tblTempUsageDetail_20' ) start [2025-02-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439018', 'tblTempUsageDetail_20' ) end [2025-02-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439018', 'tblTempVendorCDR_20' ) start [2025-02-09 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439018', 'tblTempVendorCDR_20' ) end [2025-02-09 18:54:18] Production.INFO: ProcessCDR(1,14439018,1,1,2) [2025-02-09 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439018', 'tblTempUsageDetail_20' ) start [2025-02-09 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439018', 'tblTempUsageDetail_20' ) end [2025-02-09 18:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:54:21] Production.INFO: ==26779== Releasing lock... [2025-02-09 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:54:21] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:55:05 [end_date_ymd] => 2025-02-09 18:55:05 [RateCDR] => 1 ) [2025-02-09 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 15:55:05' and `end` < '2025-02-09 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 18:55:18] Production.INFO: count ==2042 [2025-02-09 18:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:55:05 - End Time 2025-02-09 18:55:05 [2025-02-09 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439023', 'tblTempUsageDetail_20' ) start [2025-02-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439023', 'tblTempUsageDetail_20' ) end [2025-02-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439023', 'tblTempVendorCDR_20' ) start [2025-02-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439023', 'tblTempVendorCDR_20' ) end [2025-02-09 18:55:18] Production.INFO: ProcessCDR(1,14439023,1,1,2) [2025-02-09 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439023', 'tblTempUsageDetail_20' ) start [2025-02-09 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439023', 'tblTempUsageDetail_20' ) end [2025-02-09 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:55:23] Production.INFO: ==26892== Releasing lock... [2025-02-09 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:55:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:56:05 [end_date_ymd] => 2025-02-09 18:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:56:05' and `end` < '2025-02-09 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-02-09 18:56:18] Production.INFO: count ==2040 [2025-02-09 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:56:05 - End Time 2025-02-09 18:56:05 [2025-02-09 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439028', 'tblTempUsageDetail_20' ) start [2025-02-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439028', 'tblTempUsageDetail_20' ) end [2025-02-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439028', 'tblTempVendorCDR_20' ) start [2025-02-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439028', 'tblTempVendorCDR_20' ) end [2025-02-09 18:56:19] Production.INFO: ProcessCDR(1,14439028,1,1,2) [2025-02-09 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439028', 'tblTempUsageDetail_20' ) start [2025-02-09 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439028', 'tblTempUsageDetail_20' ) end [2025-02-09 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:56:22] Production.INFO: ==27004== Releasing lock... [2025-02-09 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:56:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:57:05 [end_date_ymd] => 2025-02-09 18:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:57:05' and `end` < '2025-02-09 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-02-09 18:57:18] Production.INFO: count ==2042 [2025-02-09 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 15:57:05 - End Time 2025-02-09 18:57:05 [2025-02-09 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439033', 'tblTempUsageDetail_20' ) start [2025-02-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439033', 'tblTempUsageDetail_20' ) end [2025-02-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439033', 'tblTempVendorCDR_20' ) start [2025-02-09 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439033', 'tblTempVendorCDR_20' ) end [2025-02-09 18:57:19] Production.INFO: ProcessCDR(1,14439033,1,1,2) [2025-02-09 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439033', 'tblTempUsageDetail_20' ) start [2025-02-09 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439033', 'tblTempUsageDetail_20' ) end [2025-02-09 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:57:22] Production.INFO: ==27080== Releasing lock... [2025-02-09 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:57:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:58:05 [end_date_ymd] => 2025-02-09 18:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:58:05' and `end` < '2025-02-09 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-02-09 18:58:18] Production.INFO: count ==2049 [2025-02-09 18:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:58:05 - End Time 2025-02-09 18:58:05 [2025-02-09 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439038', 'tblTempUsageDetail_20' ) start [2025-02-09 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439038', 'tblTempUsageDetail_20' ) end [2025-02-09 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439038', 'tblTempVendorCDR_20' ) start [2025-02-09 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439038', 'tblTempVendorCDR_20' ) end [2025-02-09 18:58:18] Production.INFO: ProcessCDR(1,14439038,1,1,2) [2025-02-09 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439038', 'tblTempUsageDetail_20' ) start [2025-02-09 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439038', 'tblTempUsageDetail_20' ) end [2025-02-09 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:58:23] Production.INFO: ==27157== Releasing lock... [2025-02-09 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:58:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 15:59:05 [end_date_ymd] => 2025-02-09 18:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 15:59:05' and `end` < '2025-02-09 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-02-09 18:59:18] Production.INFO: count ==2050 [2025-02-09 18:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 15:59:05 - End Time 2025-02-09 18:59:05 [2025-02-09 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439043', 'tblTempUsageDetail_20' ) start [2025-02-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439043', 'tblTempUsageDetail_20' ) end [2025-02-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439043', 'tblTempVendorCDR_20' ) start [2025-02-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439043', 'tblTempVendorCDR_20' ) end [2025-02-09 18:59:18] Production.INFO: ProcessCDR(1,14439043,1,1,2) [2025-02-09 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439043', 'tblTempUsageDetail_20' ) start [2025-02-09 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439043', 'tblTempUsageDetail_20' ) end [2025-02-09 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 18:59:22] Production.INFO: ==27231== Releasing lock... [2025-02-09 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 18:59:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:00:06 [end_date_ymd] => 2025-02-09 19:00:06 [RateCDR] => 1 ) [2025-02-09 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:00:06' and `end` < '2025-02-09 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:00:19] Production.INFO: count ==2054 [2025-02-09 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:00:06 - End Time 2025-02-09 19:00:06 [2025-02-09 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439049', 'tblTempUsageDetail_20' ) start [2025-02-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439049', 'tblTempUsageDetail_20' ) end [2025-02-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439049', 'tblTempVendorCDR_20' ) start [2025-02-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439049', 'tblTempVendorCDR_20' ) end [2025-02-09 19:00:20] Production.INFO: ProcessCDR(1,14439049,1,1,2) [2025-02-09 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439049', 'tblTempUsageDetail_20' ) start [2025-02-09 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439049', 'tblTempUsageDetail_20' ) end [2025-02-09 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:00:23] Production.INFO: ==27313== Releasing lock... [2025-02-09 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:00:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:01:05 [end_date_ymd] => 2025-02-09 19:01:05 [RateCDR] => 1 ) [2025-02-09 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:01:05' and `end` < '2025-02-09 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:01:18] Production.INFO: count ==2064 [2025-02-09 19:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:01:05 - End Time 2025-02-09 19:01:05 [2025-02-09 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439054', 'tblTempUsageDetail_20' ) start [2025-02-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439054', 'tblTempUsageDetail_20' ) end [2025-02-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439054', 'tblTempVendorCDR_20' ) start [2025-02-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439054', 'tblTempVendorCDR_20' ) end [2025-02-09 19:01:19] Production.INFO: ProcessCDR(1,14439054,1,1,2) [2025-02-09 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439054', 'tblTempUsageDetail_20' ) start [2025-02-09 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439054', 'tblTempUsageDetail_20' ) end [2025-02-09 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:01:22] Production.INFO: ==27403== Releasing lock... [2025-02-09 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:01:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:02:06 [end_date_ymd] => 2025-02-09 19:02:06 [RateCDR] => 1 ) [2025-02-09 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:02:06' and `end` < '2025-02-09 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:02:20] Production.INFO: count ==2067 [2025-02-09 19:02:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:02:06 - End Time 2025-02-09 19:02:06 [2025-02-09 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439059', 'tblTempUsageDetail_20' ) start [2025-02-09 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439059', 'tblTempUsageDetail_20' ) end [2025-02-09 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439059', 'tblTempVendorCDR_20' ) start [2025-02-09 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439059', 'tblTempVendorCDR_20' ) end [2025-02-09 19:02:21] Production.INFO: ProcessCDR(1,14439059,1,1,2) [2025-02-09 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439059', 'tblTempUsageDetail_20' ) start [2025-02-09 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439059', 'tblTempUsageDetail_20' ) end [2025-02-09 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:02:25] Production.INFO: ==27553== Releasing lock... [2025-02-09 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:02:25] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:03:06 [end_date_ymd] => 2025-02-09 19:03:06 [RateCDR] => 1 ) [2025-02-09 19: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-02-09 16:03:06' and `end` < '2025-02-09 19: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-02-09 19:03:20] Production.INFO: count ==2066 [2025-02-09 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:03:06 - End Time 2025-02-09 19:03:06 [2025-02-09 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439064', 'tblTempUsageDetail_20' ) start [2025-02-09 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439064', 'tblTempUsageDetail_20' ) end [2025-02-09 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439064', 'tblTempVendorCDR_20' ) start [2025-02-09 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439064', 'tblTempVendorCDR_20' ) end [2025-02-09 19:03:20] Production.INFO: ProcessCDR(1,14439064,1,1,2) [2025-02-09 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439064', 'tblTempUsageDetail_20' ) start [2025-02-09 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439064', 'tblTempUsageDetail_20' ) end [2025-02-09 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:03:25] Production.INFO: ==27635== Releasing lock... [2025-02-09 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:03:25] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:04:05 [end_date_ymd] => 2025-02-09 19:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:04:05' and `end` < '2025-02-09 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-02-09 19:04:18] Production.INFO: count ==2064 [2025-02-09 19:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:04:05 - End Time 2025-02-09 19:04:05 [2025-02-09 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439069', 'tblTempUsageDetail_20' ) start [2025-02-09 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439069', 'tblTempUsageDetail_20' ) end [2025-02-09 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439069', 'tblTempVendorCDR_20' ) start [2025-02-09 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439069', 'tblTempVendorCDR_20' ) end [2025-02-09 19:04:18] Production.INFO: ProcessCDR(1,14439069,1,1,2) [2025-02-09 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439069', 'tblTempUsageDetail_20' ) start [2025-02-09 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439069', 'tblTempUsageDetail_20' ) end [2025-02-09 19:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:04:21] Production.INFO: ==27709== Releasing lock... [2025-02-09 19:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:04:21] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:05:05 [end_date_ymd] => 2025-02-09 19:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:05:05' and `end` < '2025-02-09 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-02-09 19:05:18] Production.INFO: count ==2060 [2025-02-09 19:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:05:05 - End Time 2025-02-09 19:05:05 [2025-02-09 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439074', 'tblTempUsageDetail_20' ) start [2025-02-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439074', 'tblTempUsageDetail_20' ) end [2025-02-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439074', 'tblTempVendorCDR_20' ) start [2025-02-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439074', 'tblTempVendorCDR_20' ) end [2025-02-09 19:05:19] Production.INFO: ProcessCDR(1,14439074,1,1,2) [2025-02-09 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439074', 'tblTempUsageDetail_20' ) start [2025-02-09 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439074', 'tblTempUsageDetail_20' ) end [2025-02-09 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:05:22] Production.INFO: ==27865== Releasing lock... [2025-02-09 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:05:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:06:06 [end_date_ymd] => 2025-02-09 19:06:06 [RateCDR] => 1 ) [2025-02-09 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:06:06' and `end` < '2025-02-09 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:06:19] Production.INFO: count ==2063 [2025-02-09 19:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:06:06 - End Time 2025-02-09 19:06:06 [2025-02-09 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439079', 'tblTempUsageDetail_20' ) start [2025-02-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439079', 'tblTempUsageDetail_20' ) end [2025-02-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439079', 'tblTempVendorCDR_20' ) start [2025-02-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439079', 'tblTempVendorCDR_20' ) end [2025-02-09 19:06:19] Production.INFO: ProcessCDR(1,14439079,1,1,2) [2025-02-09 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439079', 'tblTempUsageDetail_20' ) start [2025-02-09 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439079', 'tblTempUsageDetail_20' ) end [2025-02-09 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:06:24] Production.INFO: ==27954== Releasing lock... [2025-02-09 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:06:24] Production.INFO: 43 MB #Memory Used# [2025-02-09 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:07:06 [end_date_ymd] => 2025-02-09 19:07:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:07:06' and `end` < '2025-02-09 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-02-09 19:07:19] Production.INFO: count ==2069 [2025-02-09 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:07:06 - End Time 2025-02-09 19:07:06 [2025-02-09 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439084', 'tblTempUsageDetail_20' ) start [2025-02-09 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439084', 'tblTempUsageDetail_20' ) end [2025-02-09 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439084', 'tblTempVendorCDR_20' ) start [2025-02-09 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439084', 'tblTempVendorCDR_20' ) end [2025-02-09 19:07:20] Production.INFO: ProcessCDR(1,14439084,1,1,2) [2025-02-09 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439084', 'tblTempUsageDetail_20' ) start [2025-02-09 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439084', 'tblTempUsageDetail_20' ) end [2025-02-09 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:07:24] Production.INFO: ==28035== Releasing lock... [2025-02-09 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:07:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:08:05 [end_date_ymd] => 2025-02-09 19:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:08:05' and `end` < '2025-02-09 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-02-09 19:08:18] Production.INFO: count ==2072 [2025-02-09 19:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:08:05 - End Time 2025-02-09 19:08:05 [2025-02-09 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439089', 'tblTempUsageDetail_20' ) start [2025-02-09 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439089', 'tblTempUsageDetail_20' ) end [2025-02-09 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439089', 'tblTempVendorCDR_20' ) start [2025-02-09 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439089', 'tblTempVendorCDR_20' ) end [2025-02-09 19:08:19] Production.INFO: ProcessCDR(1,14439089,1,1,2) [2025-02-09 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439089', 'tblTempUsageDetail_20' ) start [2025-02-09 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439089', 'tblTempUsageDetail_20' ) end [2025-02-09 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:08:24] Production.INFO: ==28189== Releasing lock... [2025-02-09 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:08:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:09:05 [end_date_ymd] => 2025-02-09 19:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:09:05' and `end` < '2025-02-09 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-02-09 19:09:18] Production.INFO: count ==2071 [2025-02-09 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:09:05 - End Time 2025-02-09 19:09:05 [2025-02-09 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439094', 'tblTempUsageDetail_20' ) start [2025-02-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439094', 'tblTempUsageDetail_20' ) end [2025-02-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439094', 'tblTempVendorCDR_20' ) start [2025-02-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439094', 'tblTempVendorCDR_20' ) end [2025-02-09 19:09:19] Production.INFO: ProcessCDR(1,14439094,1,1,2) [2025-02-09 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439094', 'tblTempUsageDetail_20' ) start [2025-02-09 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439094', 'tblTempUsageDetail_20' ) end [2025-02-09 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:09:23] Production.INFO: ==28300== Releasing lock... [2025-02-09 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:09:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:10:06 [end_date_ymd] => 2025-02-09 19:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:10:06' and `end` < '2025-02-09 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-02-09 19:10:20] Production.INFO: count ==2070 [2025-02-09 19:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:10:06 - End Time 2025-02-09 19:10:06 [2025-02-09 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439100', 'tblTempUsageDetail_20' ) start [2025-02-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439100', 'tblTempUsageDetail_20' ) end [2025-02-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439100', 'tblTempVendorCDR_20' ) start [2025-02-09 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439100', 'tblTempVendorCDR_20' ) end [2025-02-09 19:10:20] Production.INFO: ProcessCDR(1,14439100,1,1,2) [2025-02-09 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439100', 'tblTempUsageDetail_20' ) start [2025-02-09 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439100', 'tblTempUsageDetail_20' ) end [2025-02-09 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:10:23] Production.INFO: ==28382== Releasing lock... [2025-02-09 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:10:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:11:05 [end_date_ymd] => 2025-02-09 19:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:11:05' and `end` < '2025-02-09 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-02-09 19:11:19] Production.INFO: count ==2074 [2025-02-09 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:11:05 - End Time 2025-02-09 19:11:05 [2025-02-09 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439105', 'tblTempUsageDetail_20' ) start [2025-02-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439105', 'tblTempUsageDetail_20' ) end [2025-02-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439105', 'tblTempVendorCDR_20' ) start [2025-02-09 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439105', 'tblTempVendorCDR_20' ) end [2025-02-09 19:11:20] Production.INFO: ProcessCDR(1,14439105,1,1,2) [2025-02-09 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439105', 'tblTempUsageDetail_20' ) start [2025-02-09 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439105', 'tblTempUsageDetail_20' ) end [2025-02-09 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:11:24] Production.INFO: ==28459== Releasing lock... [2025-02-09 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:11:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:12:05 [end_date_ymd] => 2025-02-09 19:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:12:05' and `end` < '2025-02-09 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-02-09 19:12:18] Production.INFO: count ==2079 [2025-02-09 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:12:05 - End Time 2025-02-09 19:12:05 [2025-02-09 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439110', 'tblTempUsageDetail_20' ) start [2025-02-09 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439110', 'tblTempUsageDetail_20' ) end [2025-02-09 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439110', 'tblTempVendorCDR_20' ) start [2025-02-09 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439110', 'tblTempVendorCDR_20' ) end [2025-02-09 19:12:19] Production.INFO: ProcessCDR(1,14439110,1,1,2) [2025-02-09 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439110', 'tblTempUsageDetail_20' ) start [2025-02-09 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439110', 'tblTempUsageDetail_20' ) end [2025-02-09 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:12:23] Production.INFO: ==28614== Releasing lock... [2025-02-09 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:12:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:13:05 [end_date_ymd] => 2025-02-09 19:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:13:05' and `end` < '2025-02-09 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-02-09 19:13:19] Production.INFO: count ==2087 [2025-02-09 19:13:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:13:05 - End Time 2025-02-09 19:13:05 [2025-02-09 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439115', 'tblTempUsageDetail_20' ) start [2025-02-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439115', 'tblTempUsageDetail_20' ) end [2025-02-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439115', 'tblTempVendorCDR_20' ) start [2025-02-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439115', 'tblTempVendorCDR_20' ) end [2025-02-09 19:13:20] Production.INFO: ProcessCDR(1,14439115,1,1,2) [2025-02-09 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439115', 'tblTempUsageDetail_20' ) start [2025-02-09 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439115', 'tblTempUsageDetail_20' ) end [2025-02-09 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:13:24] Production.INFO: ==28688== Releasing lock... [2025-02-09 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:13:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:14:05 [end_date_ymd] => 2025-02-09 19:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:14:05' and `end` < '2025-02-09 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-02-09 19:14:18] Production.INFO: count ==2079 [2025-02-09 19:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:14:05 - End Time 2025-02-09 19:14:05 [2025-02-09 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439120', 'tblTempUsageDetail_20' ) start [2025-02-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439120', 'tblTempUsageDetail_20' ) end [2025-02-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439120', 'tblTempVendorCDR_20' ) start [2025-02-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439120', 'tblTempVendorCDR_20' ) end [2025-02-09 19:14:18] Production.INFO: ProcessCDR(1,14439120,1,1,2) [2025-02-09 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439120', 'tblTempUsageDetail_20' ) start [2025-02-09 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439120', 'tblTempUsageDetail_20' ) end [2025-02-09 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:14:23] Production.INFO: ==28761== Releasing lock... [2025-02-09 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:14:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:15:05 [end_date_ymd] => 2025-02-09 19:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:15:05' and `end` < '2025-02-09 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-02-09 19:15:18] Production.INFO: count ==2086 [2025-02-09 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:15:05 - End Time 2025-02-09 19:15:05 [2025-02-09 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439125', 'tblTempUsageDetail_20' ) start [2025-02-09 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439125', 'tblTempUsageDetail_20' ) end [2025-02-09 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439125', 'tblTempVendorCDR_20' ) start [2025-02-09 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439125', 'tblTempVendorCDR_20' ) end [2025-02-09 19:15:18] Production.INFO: ProcessCDR(1,14439125,1,1,2) [2025-02-09 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439125', 'tblTempUsageDetail_20' ) start [2025-02-09 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439125', 'tblTempUsageDetail_20' ) end [2025-02-09 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:15:23] Production.INFO: ==28913== Releasing lock... [2025-02-09 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:15:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:16:06 [end_date_ymd] => 2025-02-09 19:16:06 [RateCDR] => 1 ) [2025-02-09 19: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-02-09 16:16:06' and `end` < '2025-02-09 19: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-02-09 19:16:21] Production.INFO: count ==2092 [2025-02-09 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:16:06 - End Time 2025-02-09 19:16:06 [2025-02-09 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439130', 'tblTempUsageDetail_20' ) start [2025-02-09 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439130', 'tblTempUsageDetail_20' ) end [2025-02-09 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439130', 'tblTempVendorCDR_20' ) start [2025-02-09 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439130', 'tblTempVendorCDR_20' ) end [2025-02-09 19:16:21] Production.INFO: ProcessCDR(1,14439130,1,1,2) [2025-02-09 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439130', 'tblTempUsageDetail_20' ) start [2025-02-09 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439130', 'tblTempUsageDetail_20' ) end [2025-02-09 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:16:24] Production.INFO: ==29053== Releasing lock... [2025-02-09 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:16:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:17:05 [end_date_ymd] => 2025-02-09 19:17:05 [RateCDR] => 1 ) [2025-02-09 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:17:05' and `end` < '2025-02-09 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-02-09 19:17:19] Production.INFO: count ==2099 [2025-02-09 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:17:05 - End Time 2025-02-09 19:17:05 [2025-02-09 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439135', 'tblTempUsageDetail_20' ) start [2025-02-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439135', 'tblTempUsageDetail_20' ) end [2025-02-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439135', 'tblTempVendorCDR_20' ) start [2025-02-09 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439135', 'tblTempVendorCDR_20' ) end [2025-02-09 19:17:20] Production.INFO: ProcessCDR(1,14439135,1,1,2) [2025-02-09 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439135', 'tblTempUsageDetail_20' ) start [2025-02-09 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439135', 'tblTempUsageDetail_20' ) end [2025-02-09 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:17:24] Production.INFO: ==29129== Releasing lock... [2025-02-09 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:17:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:18:05 [end_date_ymd] => 2025-02-09 19:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:18:05' and `end` < '2025-02-09 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-02-09 19:18:19] Production.INFO: count ==2104 [2025-02-09 19:18:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:18:05 - End Time 2025-02-09 19:18:05 [2025-02-09 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439140', 'tblTempUsageDetail_20' ) start [2025-02-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439140', 'tblTempUsageDetail_20' ) end [2025-02-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439140', 'tblTempVendorCDR_20' ) start [2025-02-09 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439140', 'tblTempVendorCDR_20' ) end [2025-02-09 19:18:20] Production.INFO: ProcessCDR(1,14439140,1,1,2) [2025-02-09 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439140', 'tblTempUsageDetail_20' ) start [2025-02-09 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439140', 'tblTempUsageDetail_20' ) end [2025-02-09 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:18:25] Production.INFO: ==29204== Releasing lock... [2025-02-09 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:18:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:19:05 [end_date_ymd] => 2025-02-09 19:19:05 [RateCDR] => 1 ) [2025-02-09 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:19:05' and `end` < '2025-02-09 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:19:18] Production.INFO: count ==2115 [2025-02-09 19:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:19:05 - End Time 2025-02-09 19:19:05 [2025-02-09 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439145', 'tblTempUsageDetail_20' ) start [2025-02-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439145', 'tblTempUsageDetail_20' ) end [2025-02-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439145', 'tblTempVendorCDR_20' ) start [2025-02-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439145', 'tblTempVendorCDR_20' ) end [2025-02-09 19:19:18] Production.INFO: ProcessCDR(1,14439145,1,1,2) [2025-02-09 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439145', 'tblTempUsageDetail_20' ) start [2025-02-09 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439145', 'tblTempUsageDetail_20' ) end [2025-02-09 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:19:23] Production.INFO: ==29281== Releasing lock... [2025-02-09 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:19:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:20:07 [end_date_ymd] => 2025-02-09 19:20:07 [RateCDR] => 1 ) [2025-02-09 19:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:20:07' and `end` < '2025-02-09 19:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:20:20] Production.INFO: count ==2113 [2025-02-09 19:20:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:20:07 - End Time 2025-02-09 19:20:07 [2025-02-09 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439151', 'tblTempUsageDetail_20' ) start [2025-02-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439151', 'tblTempUsageDetail_20' ) end [2025-02-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439151', 'tblTempVendorCDR_20' ) start [2025-02-09 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439151', 'tblTempVendorCDR_20' ) end [2025-02-09 19:20:21] Production.INFO: ProcessCDR(1,14439151,1,1,2) [2025-02-09 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439151', 'tblTempUsageDetail_20' ) start [2025-02-09 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439151', 'tblTempUsageDetail_20' ) end [2025-02-09 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:20:25] Production.INFO: ==29393== Releasing lock... [2025-02-09 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:20:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:21:05 [end_date_ymd] => 2025-02-09 19:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:21:05' and `end` < '2025-02-09 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-02-09 19:21:18] Production.INFO: count ==2134 [2025-02-09 19:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:21:05 - End Time 2025-02-09 19:21:05 [2025-02-09 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439156', 'tblTempUsageDetail_20' ) start [2025-02-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439156', 'tblTempUsageDetail_20' ) end [2025-02-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439156', 'tblTempVendorCDR_20' ) start [2025-02-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439156', 'tblTempVendorCDR_20' ) end [2025-02-09 19:21:18] Production.INFO: ProcessCDR(1,14439156,1,1,2) [2025-02-09 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439156', 'tblTempUsageDetail_20' ) start [2025-02-09 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439156', 'tblTempUsageDetail_20' ) end [2025-02-09 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:21:23] Production.INFO: ==29466== Releasing lock... [2025-02-09 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:21:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:22:06 [end_date_ymd] => 2025-02-09 19:22:06 [RateCDR] => 1 ) [2025-02-09 19: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-02-09 16:22:06' and `end` < '2025-02-09 19: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-02-09 19:22:21] Production.INFO: count ==2133 [2025-02-09 19:22:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:22:06 - End Time 2025-02-09 19:22:06 [2025-02-09 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439161', 'tblTempUsageDetail_20' ) start [2025-02-09 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439161', 'tblTempUsageDetail_20' ) end [2025-02-09 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439161', 'tblTempVendorCDR_20' ) start [2025-02-09 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439161', 'tblTempVendorCDR_20' ) end [2025-02-09 19:22:21] Production.INFO: ProcessCDR(1,14439161,1,1,2) [2025-02-09 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439161', 'tblTempUsageDetail_20' ) start [2025-02-09 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439161', 'tblTempUsageDetail_20' ) end [2025-02-09 19:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:22:26] Production.INFO: ==29576== Releasing lock... [2025-02-09 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:22:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:23:05 [end_date_ymd] => 2025-02-09 19:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:23:05' and `end` < '2025-02-09 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-02-09 19:23:18] Production.INFO: count ==2179 [2025-02-09 19:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:23:05 - End Time 2025-02-09 19:23:05 [2025-02-09 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439166', 'tblTempUsageDetail_20' ) start [2025-02-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439166', 'tblTempUsageDetail_20' ) end [2025-02-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439166', 'tblTempVendorCDR_20' ) start [2025-02-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439166', 'tblTempVendorCDR_20' ) end [2025-02-09 19:23:18] Production.INFO: ProcessCDR(1,14439166,1,1,2) [2025-02-09 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439166', 'tblTempUsageDetail_20' ) start [2025-02-09 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439166', 'tblTempUsageDetail_20' ) end [2025-02-09 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:23:22] Production.INFO: ==29655== Releasing lock... [2025-02-09 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:23:22] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:24:05 [end_date_ymd] => 2025-02-09 19:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:24:05' and `end` < '2025-02-09 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-02-09 19:24:19] Production.INFO: count ==2175 [2025-02-09 19:24:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:24:05 - End Time 2025-02-09 19:24:05 [2025-02-09 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439171', 'tblTempUsageDetail_20' ) start [2025-02-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439171', 'tblTempUsageDetail_20' ) end [2025-02-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439171', 'tblTempVendorCDR_20' ) start [2025-02-09 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439171', 'tblTempVendorCDR_20' ) end [2025-02-09 19:24:20] Production.INFO: ProcessCDR(1,14439171,1,1,2) [2025-02-09 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439171', 'tblTempUsageDetail_20' ) start [2025-02-09 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439171', 'tblTempUsageDetail_20' ) end [2025-02-09 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:24:23] Production.INFO: ==29731== Releasing lock... [2025-02-09 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:24:23] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:25:06 [end_date_ymd] => 2025-02-09 19:25:06 [RateCDR] => 1 ) [2025-02-09 19: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-02-09 16:25:06' and `end` < '2025-02-09 19: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-02-09 19:25:23] Production.INFO: count ==2177 [2025-02-09 19:25:24] Production.ERROR: pbx CDR StartTime 2025-02-09 16:25:06 - End Time 2025-02-09 19:25:06 [2025-02-09 19:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439176', 'tblTempUsageDetail_20' ) start [2025-02-09 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439176', 'tblTempUsageDetail_20' ) end [2025-02-09 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439176', 'tblTempVendorCDR_20' ) start [2025-02-09 19:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439176', 'tblTempVendorCDR_20' ) end [2025-02-09 19:25:24] Production.INFO: ProcessCDR(1,14439176,1,1,2) [2025-02-09 19:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439176', 'tblTempUsageDetail_20' ) start [2025-02-09 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439176', 'tblTempUsageDetail_20' ) end [2025-02-09 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:25:27] Production.INFO: ==29848== Releasing lock... [2025-02-09 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:25:27] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:26:05 [end_date_ymd] => 2025-02-09 19:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:26:05' and `end` < '2025-02-09 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-02-09 19:26:19] Production.INFO: count ==2177 [2025-02-09 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:26:05 - End Time 2025-02-09 19:26:05 [2025-02-09 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439177', 'tblTempUsageDetail_20' ) start [2025-02-09 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439177', 'tblTempUsageDetail_20' ) end [2025-02-09 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439177', 'tblTempVendorCDR_20' ) start [2025-02-09 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439177', 'tblTempVendorCDR_20' ) end [2025-02-09 19:26:19] Production.INFO: ProcessCDR(1,14439177,1,1,2) [2025-02-09 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439177', 'tblTempUsageDetail_20' ) start [2025-02-09 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439177', 'tblTempUsageDetail_20' ) end [2025-02-09 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:26:24] Production.INFO: ==29939== Releasing lock... [2025-02-09 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:26:24] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:27:05 [end_date_ymd] => 2025-02-09 19:27:05 [RateCDR] => 1 ) [2025-02-09 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:27:05' and `end` < '2025-02-09 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:27:19] Production.INFO: count ==2174 [2025-02-09 19:27:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:27:05 - End Time 2025-02-09 19:27:05 [2025-02-09 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439185', 'tblTempUsageDetail_20' ) start [2025-02-09 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439185', 'tblTempUsageDetail_20' ) end [2025-02-09 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439185', 'tblTempVendorCDR_20' ) start [2025-02-09 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439185', 'tblTempVendorCDR_20' ) end [2025-02-09 19:27:20] Production.INFO: ProcessCDR(1,14439185,1,1,2) [2025-02-09 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439185', 'tblTempUsageDetail_20' ) start [2025-02-09 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439185', 'tblTempUsageDetail_20' ) end [2025-02-09 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:27:24] Production.INFO: ==30014== Releasing lock... [2025-02-09 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:27:24] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:28:05 [end_date_ymd] => 2025-02-09 19:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:28:05' and `end` < '2025-02-09 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-02-09 19:28:19] Production.INFO: count ==2170 [2025-02-09 19:28:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:28:05 - End Time 2025-02-09 19:28:05 [2025-02-09 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439191', 'tblTempUsageDetail_20' ) start [2025-02-09 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439191', 'tblTempUsageDetail_20' ) end [2025-02-09 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439191', 'tblTempVendorCDR_20' ) start [2025-02-09 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439191', 'tblTempVendorCDR_20' ) end [2025-02-09 19:28:20] Production.INFO: ProcessCDR(1,14439191,1,1,2) [2025-02-09 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439191', 'tblTempUsageDetail_20' ) start [2025-02-09 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439191', 'tblTempUsageDetail_20' ) end [2025-02-09 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:28:23] Production.INFO: ==30087== Releasing lock... [2025-02-09 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:28:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:29:05 [end_date_ymd] => 2025-02-09 19:29:05 [RateCDR] => 1 ) [2025-02-09 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:29:05' and `end` < '2025-02-09 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:29:21] Production.INFO: count ==2167 [2025-02-09 19:29:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:29:05 - End Time 2025-02-09 19:29:05 [2025-02-09 19:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439196', 'tblTempUsageDetail_20' ) start [2025-02-09 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439196', 'tblTempUsageDetail_20' ) end [2025-02-09 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439196', 'tblTempVendorCDR_20' ) start [2025-02-09 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439196', 'tblTempVendorCDR_20' ) end [2025-02-09 19:29:21] Production.INFO: ProcessCDR(1,14439196,1,1,2) [2025-02-09 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439196', 'tblTempUsageDetail_20' ) start [2025-02-09 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439196', 'tblTempUsageDetail_20' ) end [2025-02-09 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:29:25] Production.INFO: ==30165== Releasing lock... [2025-02-09 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:29:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:30:06 [end_date_ymd] => 2025-02-09 19:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:30:06' and `end` < '2025-02-09 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-02-09 19:30:19] Production.INFO: count ==2167 [2025-02-09 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:30:06 - End Time 2025-02-09 19:30:06 [2025-02-09 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439202', 'tblTempUsageDetail_20' ) start [2025-02-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439202', 'tblTempUsageDetail_20' ) end [2025-02-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439202', 'tblTempVendorCDR_20' ) start [2025-02-09 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439202', 'tblTempVendorCDR_20' ) end [2025-02-09 19:30:19] Production.INFO: ProcessCDR(1,14439202,1,1,2) [2025-02-09 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439202', 'tblTempUsageDetail_20' ) start [2025-02-09 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439202', 'tblTempUsageDetail_20' ) end [2025-02-09 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:30:22] Production.INFO: ==30244== Releasing lock... [2025-02-09 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:30:22] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:31:05 [end_date_ymd] => 2025-02-09 19:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:31:05' and `end` < '2025-02-09 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-02-09 19:31:20] Production.INFO: count ==2175 [2025-02-09 19:31:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:31:05 - End Time 2025-02-09 19:31:05 [2025-02-09 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439207', 'tblTempUsageDetail_20' ) start [2025-02-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439207', 'tblTempUsageDetail_20' ) end [2025-02-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439207', 'tblTempVendorCDR_20' ) start [2025-02-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439207', 'tblTempVendorCDR_20' ) end [2025-02-09 19:31:20] Production.INFO: ProcessCDR(1,14439207,1,1,2) [2025-02-09 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439207', 'tblTempUsageDetail_20' ) start [2025-02-09 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439207', 'tblTempUsageDetail_20' ) end [2025-02-09 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:31:24] Production.INFO: ==30322== Releasing lock... [2025-02-09 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:31:24] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:32:05 [end_date_ymd] => 2025-02-09 19:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:32:05' and `end` < '2025-02-09 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-02-09 19:32:19] Production.INFO: count ==2173 [2025-02-09 19:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:32:05 - End Time 2025-02-09 19:32:05 [2025-02-09 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439212', 'tblTempUsageDetail_20' ) start [2025-02-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439212', 'tblTempUsageDetail_20' ) end [2025-02-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439212', 'tblTempVendorCDR_20' ) start [2025-02-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439212', 'tblTempVendorCDR_20' ) end [2025-02-09 19:32:19] Production.INFO: ProcessCDR(1,14439212,1,1,2) [2025-02-09 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439212', 'tblTempUsageDetail_20' ) start [2025-02-09 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439212', 'tblTempUsageDetail_20' ) end [2025-02-09 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:32:24] Production.INFO: ==30398== Releasing lock... [2025-02-09 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:32:24] Production.INFO: 44 MB #Memory Used# [2025-02-09 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:33:05 [end_date_ymd] => 2025-02-09 19:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:33:05' and `end` < '2025-02-09 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-02-09 19:33:19] Production.INFO: count ==2167 [2025-02-09 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:33:05 - End Time 2025-02-09 19:33:05 [2025-02-09 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439217', 'tblTempUsageDetail_20' ) start [2025-02-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439217', 'tblTempUsageDetail_20' ) end [2025-02-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439217', 'tblTempVendorCDR_20' ) start [2025-02-09 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439217', 'tblTempVendorCDR_20' ) end [2025-02-09 19:33:19] Production.INFO: ProcessCDR(1,14439217,1,1,2) [2025-02-09 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439217', 'tblTempUsageDetail_20' ) start [2025-02-09 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439217', 'tblTempUsageDetail_20' ) end [2025-02-09 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:33:22] Production.INFO: ==30475== Releasing lock... [2025-02-09 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:33:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:34:05 [end_date_ymd] => 2025-02-09 19:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:34:05' and `end` < '2025-02-09 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-02-09 19:34:18] Production.INFO: count ==2165 [2025-02-09 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:34:05 - End Time 2025-02-09 19:34:05 [2025-02-09 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439222', 'tblTempUsageDetail_20' ) start [2025-02-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439222', 'tblTempUsageDetail_20' ) end [2025-02-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439222', 'tblTempVendorCDR_20' ) start [2025-02-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439222', 'tblTempVendorCDR_20' ) end [2025-02-09 19:34:19] Production.INFO: ProcessCDR(1,14439222,1,1,2) [2025-02-09 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439222', 'tblTempUsageDetail_20' ) start [2025-02-09 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439222', 'tblTempUsageDetail_20' ) end [2025-02-09 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:34:23] Production.INFO: ==30559== Releasing lock... [2025-02-09 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:34:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:35:06 [end_date_ymd] => 2025-02-09 19:35:06 [RateCDR] => 1 ) [2025-02-09 19: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-02-09 16:35:06' and `end` < '2025-02-09 19: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-02-09 19:35:19] Production.INFO: count ==2161 [2025-02-09 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:35:06 - End Time 2025-02-09 19:35:06 [2025-02-09 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439227', 'tblTempUsageDetail_20' ) start [2025-02-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439227', 'tblTempUsageDetail_20' ) end [2025-02-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439227', 'tblTempVendorCDR_20' ) start [2025-02-09 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439227', 'tblTempVendorCDR_20' ) end [2025-02-09 19:35:19] Production.INFO: ProcessCDR(1,14439227,1,1,2) [2025-02-09 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439227', 'tblTempUsageDetail_20' ) start [2025-02-09 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439227', 'tblTempUsageDetail_20' ) end [2025-02-09 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:35:23] Production.INFO: ==30642== Releasing lock... [2025-02-09 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:35:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:36:05 [end_date_ymd] => 2025-02-09 19:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:36:05' and `end` < '2025-02-09 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-02-09 19:36:19] Production.INFO: count ==2154 [2025-02-09 19:36:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:36:05 - End Time 2025-02-09 19:36:05 [2025-02-09 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439232', 'tblTempUsageDetail_20' ) start [2025-02-09 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439232', 'tblTempUsageDetail_20' ) end [2025-02-09 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439232', 'tblTempVendorCDR_20' ) start [2025-02-09 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439232', 'tblTempVendorCDR_20' ) end [2025-02-09 19:36:20] Production.INFO: ProcessCDR(1,14439232,1,1,2) [2025-02-09 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439232', 'tblTempUsageDetail_20' ) start [2025-02-09 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439232', 'tblTempUsageDetail_20' ) end [2025-02-09 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:36:25] Production.INFO: ==30728== Releasing lock... [2025-02-09 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:36:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:37:06 [end_date_ymd] => 2025-02-09 19:37:06 [RateCDR] => 1 ) [2025-02-09 19:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:37:06' and `end` < '2025-02-09 19:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:37:19] Production.INFO: count ==2152 [2025-02-09 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:37:06 - End Time 2025-02-09 19:37:06 [2025-02-09 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439237', 'tblTempUsageDetail_20' ) start [2025-02-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439237', 'tblTempUsageDetail_20' ) end [2025-02-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439237', 'tblTempVendorCDR_20' ) start [2025-02-09 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439237', 'tblTempVendorCDR_20' ) end [2025-02-09 19:37:19] Production.INFO: ProcessCDR(1,14439237,1,1,2) [2025-02-09 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439237', 'tblTempUsageDetail_20' ) start [2025-02-09 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439237', 'tblTempUsageDetail_20' ) end [2025-02-09 19:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:37:25] Production.INFO: ==30817== Releasing lock... [2025-02-09 19:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:37:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:38:05 [end_date_ymd] => 2025-02-09 19:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:38:05' and `end` < '2025-02-09 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-02-09 19:38:18] Production.INFO: count ==2153 [2025-02-09 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:38:05 - End Time 2025-02-09 19:38:05 [2025-02-09 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439242', 'tblTempUsageDetail_20' ) start [2025-02-09 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439242', 'tblTempUsageDetail_20' ) end [2025-02-09 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439242', 'tblTempVendorCDR_20' ) start [2025-02-09 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439242', 'tblTempVendorCDR_20' ) end [2025-02-09 19:38:19] Production.INFO: ProcessCDR(1,14439242,1,1,2) [2025-02-09 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439242', 'tblTempUsageDetail_20' ) start [2025-02-09 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439242', 'tblTempUsageDetail_20' ) end [2025-02-09 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:38:23] Production.INFO: ==30901== Releasing lock... [2025-02-09 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:38:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:39:06 [end_date_ymd] => 2025-02-09 19:39:06 [RateCDR] => 1 ) [2025-02-09 19:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:39:06' and `end` < '2025-02-09 19:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:39:19] Production.INFO: count ==2155 [2025-02-09 19:39:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:39:06 - End Time 2025-02-09 19:39:06 [2025-02-09 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439247', 'tblTempUsageDetail_20' ) start [2025-02-09 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439247', 'tblTempUsageDetail_20' ) end [2025-02-09 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439247', 'tblTempVendorCDR_20' ) start [2025-02-09 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439247', 'tblTempVendorCDR_20' ) end [2025-02-09 19:39:20] Production.INFO: ProcessCDR(1,14439247,1,1,2) [2025-02-09 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439247', 'tblTempUsageDetail_20' ) start [2025-02-09 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439247', 'tblTempUsageDetail_20' ) end [2025-02-09 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:39:23] Production.INFO: ==30990== Releasing lock... [2025-02-09 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:39:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:40:06 [end_date_ymd] => 2025-02-09 19:40:06 [RateCDR] => 1 ) [2025-02-09 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:40:06' and `end` < '2025-02-09 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:40:21] Production.INFO: count ==2160 [2025-02-09 19:40:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:40:06 - End Time 2025-02-09 19:40:06 [2025-02-09 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439253', 'tblTempUsageDetail_20' ) start [2025-02-09 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439253', 'tblTempUsageDetail_20' ) end [2025-02-09 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439253', 'tblTempVendorCDR_20' ) start [2025-02-09 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439253', 'tblTempVendorCDR_20' ) end [2025-02-09 19:40:21] Production.INFO: ProcessCDR(1,14439253,1,1,2) [2025-02-09 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439253', 'tblTempUsageDetail_20' ) start [2025-02-09 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439253', 'tblTempUsageDetail_20' ) end [2025-02-09 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:40:24] Production.INFO: ==31107== Releasing lock... [2025-02-09 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:40:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:41:05 [end_date_ymd] => 2025-02-09 19:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:41:05' and `end` < '2025-02-09 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-02-09 19:41:19] Production.INFO: count ==2141 [2025-02-09 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:41:05 - End Time 2025-02-09 19:41:05 [2025-02-09 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439258', 'tblTempUsageDetail_20' ) start [2025-02-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439258', 'tblTempUsageDetail_20' ) end [2025-02-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439258', 'tblTempVendorCDR_20' ) start [2025-02-09 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439258', 'tblTempVendorCDR_20' ) end [2025-02-09 19:41:19] Production.INFO: ProcessCDR(1,14439258,1,1,2) [2025-02-09 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439258', 'tblTempUsageDetail_20' ) start [2025-02-09 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439258', 'tblTempUsageDetail_20' ) end [2025-02-09 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:41:23] Production.INFO: ==31188== Releasing lock... [2025-02-09 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:41:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:42:05 [end_date_ymd] => 2025-02-09 19:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:42:05' and `end` < '2025-02-09 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-02-09 19:42:18] Production.INFO: count ==2142 [2025-02-09 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:42:05 - End Time 2025-02-09 19:42:05 [2025-02-09 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439263', 'tblTempUsageDetail_20' ) start [2025-02-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439263', 'tblTempUsageDetail_20' ) end [2025-02-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439263', 'tblTempVendorCDR_20' ) start [2025-02-09 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439263', 'tblTempVendorCDR_20' ) end [2025-02-09 19:42:19] Production.INFO: ProcessCDR(1,14439263,1,1,2) [2025-02-09 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439263', 'tblTempUsageDetail_20' ) start [2025-02-09 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439263', 'tblTempUsageDetail_20' ) end [2025-02-09 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:42:22] Production.INFO: ==31267== Releasing lock... [2025-02-09 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:42:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:43:05 [end_date_ymd] => 2025-02-09 19:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:43:05' and `end` < '2025-02-09 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-02-09 19:43:18] Production.INFO: count ==2137 [2025-02-09 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:43:05 - End Time 2025-02-09 19:43:05 [2025-02-09 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439268', 'tblTempUsageDetail_20' ) start [2025-02-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439268', 'tblTempUsageDetail_20' ) end [2025-02-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439268', 'tblTempVendorCDR_20' ) start [2025-02-09 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439268', 'tblTempVendorCDR_20' ) end [2025-02-09 19:43:19] Production.INFO: ProcessCDR(1,14439268,1,1,2) [2025-02-09 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439268', 'tblTempUsageDetail_20' ) start [2025-02-09 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439268', 'tblTempUsageDetail_20' ) end [2025-02-09 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:43:22] Production.INFO: ==31341== Releasing lock... [2025-02-09 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:43:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-09 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:44:05 [end_date_ymd] => 2025-02-09 19:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:44:05' and `end` < '2025-02-09 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-02-09 19:44:18] Production.INFO: count ==2133 [2025-02-09 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:44:05 - End Time 2025-02-09 19:44:05 [2025-02-09 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439273', 'tblTempUsageDetail_20' ) start [2025-02-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439273', 'tblTempUsageDetail_20' ) end [2025-02-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439273', 'tblTempVendorCDR_20' ) start [2025-02-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439273', 'tblTempVendorCDR_20' ) end [2025-02-09 19:44:18] Production.INFO: ProcessCDR(1,14439273,1,1,2) [2025-02-09 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439273', 'tblTempUsageDetail_20' ) start [2025-02-09 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439273', 'tblTempUsageDetail_20' ) end [2025-02-09 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:44:22] Production.INFO: ==31416== Releasing lock... [2025-02-09 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:44:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:45:05 [end_date_ymd] => 2025-02-09 19:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:45:05' and `end` < '2025-02-09 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-02-09 19:45:21] Production.INFO: count ==2124 [2025-02-09 19:45:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:45:05 - End Time 2025-02-09 19:45:05 [2025-02-09 19:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439278', 'tblTempUsageDetail_20' ) start [2025-02-09 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439278', 'tblTempUsageDetail_20' ) end [2025-02-09 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439278', 'tblTempVendorCDR_20' ) start [2025-02-09 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439278', 'tblTempVendorCDR_20' ) end [2025-02-09 19:45:21] Production.INFO: ProcessCDR(1,14439278,1,1,2) [2025-02-09 19:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439278', 'tblTempUsageDetail_20' ) start [2025-02-09 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439278', 'tblTempUsageDetail_20' ) end [2025-02-09 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:45:25] Production.INFO: ==31490== Releasing lock... [2025-02-09 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:45:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:46:05 [end_date_ymd] => 2025-02-09 19:46:05 [RateCDR] => 1 ) [2025-02-09 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:46:05' and `end` < '2025-02-09 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:46:19] Production.INFO: count ==2123 [2025-02-09 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:46:05 - End Time 2025-02-09 19:46:05 [2025-02-09 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439283', 'tblTempUsageDetail_20' ) start [2025-02-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439283', 'tblTempUsageDetail_20' ) end [2025-02-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439283', 'tblTempVendorCDR_20' ) start [2025-02-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439283', 'tblTempVendorCDR_20' ) end [2025-02-09 19:46:19] Production.INFO: ProcessCDR(1,14439283,1,1,2) [2025-02-09 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439283', 'tblTempUsageDetail_20' ) start [2025-02-09 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439283', 'tblTempUsageDetail_20' ) end [2025-02-09 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:46:23] Production.INFO: ==31565== Releasing lock... [2025-02-09 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:46:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:47:05 [end_date_ymd] => 2025-02-09 19:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:47:05' and `end` < '2025-02-09 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-02-09 19:47:18] Production.INFO: count ==2123 [2025-02-09 19:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:47:05 - End Time 2025-02-09 19:47:05 [2025-02-09 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439288', 'tblTempUsageDetail_20' ) start [2025-02-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439288', 'tblTempUsageDetail_20' ) end [2025-02-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439288', 'tblTempVendorCDR_20' ) start [2025-02-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439288', 'tblTempVendorCDR_20' ) end [2025-02-09 19:47:18] Production.INFO: ProcessCDR(1,14439288,1,1,2) [2025-02-09 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439288', 'tblTempUsageDetail_20' ) start [2025-02-09 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439288', 'tblTempUsageDetail_20' ) end [2025-02-09 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:47:21] Production.INFO: ==31641== Releasing lock... [2025-02-09 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:47:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:48:05 [end_date_ymd] => 2025-02-09 19:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:48:05' and `end` < '2025-02-09 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-02-09 19:48:18] Production.INFO: count ==2120 [2025-02-09 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:48:05 - End Time 2025-02-09 19:48:05 [2025-02-09 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439293', 'tblTempUsageDetail_20' ) start [2025-02-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439293', 'tblTempUsageDetail_20' ) end [2025-02-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439293', 'tblTempVendorCDR_20' ) start [2025-02-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439293', 'tblTempVendorCDR_20' ) end [2025-02-09 19:48:19] Production.INFO: ProcessCDR(1,14439293,1,1,2) [2025-02-09 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439293', 'tblTempUsageDetail_20' ) start [2025-02-09 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439293', 'tblTempUsageDetail_20' ) end [2025-02-09 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:48:23] Production.INFO: ==31715== Releasing lock... [2025-02-09 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:48:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:49:04 [end_date_ymd] => 2025-02-09 19:49:04 [RateCDR] => 1 ) [2025-02-09 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:49:04' and `end` < '2025-02-09 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:49:19] Production.INFO: count ==2121 [2025-02-09 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-09 16:49:04 - End Time 2025-02-09 19:49:04 [2025-02-09 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439298', 'tblTempUsageDetail_20' ) start [2025-02-09 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439298', 'tblTempUsageDetail_20' ) end [2025-02-09 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439298', 'tblTempVendorCDR_20' ) start [2025-02-09 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439298', 'tblTempVendorCDR_20' ) end [2025-02-09 19:49:20] Production.INFO: ProcessCDR(1,14439298,1,1,2) [2025-02-09 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439298', 'tblTempUsageDetail_20' ) start [2025-02-09 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439298', 'tblTempUsageDetail_20' ) end [2025-02-09 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:49:23] Production.INFO: ==31791== Releasing lock... [2025-02-09 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:49:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:50:07 [end_date_ymd] => 2025-02-09 19:50:07 [RateCDR] => 1 ) [2025-02-09 19: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-02-09 16:50:07' and `end` < '2025-02-09 19: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-02-09 19:50:21] Production.INFO: count ==2122 [2025-02-09 19:50:21] Production.ERROR: pbx CDR StartTime 2025-02-09 16:50:07 - End Time 2025-02-09 19:50:07 [2025-02-09 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439304', 'tblTempUsageDetail_20' ) start [2025-02-09 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439304', 'tblTempUsageDetail_20' ) end [2025-02-09 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439304', 'tblTempVendorCDR_20' ) start [2025-02-09 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439304', 'tblTempVendorCDR_20' ) end [2025-02-09 19:50:21] Production.INFO: ProcessCDR(1,14439304,1,1,2) [2025-02-09 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439304', 'tblTempUsageDetail_20' ) start [2025-02-09 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439304', 'tblTempUsageDetail_20' ) end [2025-02-09 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:50:24] Production.INFO: ==31867== Releasing lock... [2025-02-09 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:50:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:51:05 [end_date_ymd] => 2025-02-09 19:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:51:05' and `end` < '2025-02-09 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-02-09 19:51:18] Production.INFO: count ==2130 [2025-02-09 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:51:05 - End Time 2025-02-09 19:51:05 [2025-02-09 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439309', 'tblTempUsageDetail_20' ) start [2025-02-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439309', 'tblTempUsageDetail_20' ) end [2025-02-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439309', 'tblTempVendorCDR_20' ) start [2025-02-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439309', 'tblTempVendorCDR_20' ) end [2025-02-09 19:51:18] Production.INFO: ProcessCDR(1,14439309,1,1,2) [2025-02-09 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439309', 'tblTempUsageDetail_20' ) start [2025-02-09 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439309', 'tblTempUsageDetail_20' ) end [2025-02-09 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:51:23] Production.INFO: ==31945== Releasing lock... [2025-02-09 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:51:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:52:05 [end_date_ymd] => 2025-02-09 19:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:52:05' and `end` < '2025-02-09 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-02-09 19:52:18] Production.INFO: count ==2127 [2025-02-09 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:52:05 - End Time 2025-02-09 19:52:05 [2025-02-09 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439314', 'tblTempUsageDetail_20' ) start [2025-02-09 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439314', 'tblTempUsageDetail_20' ) end [2025-02-09 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439314', 'tblTempVendorCDR_20' ) start [2025-02-09 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439314', 'tblTempVendorCDR_20' ) end [2025-02-09 19:52:19] Production.INFO: ProcessCDR(1,14439314,1,1,2) [2025-02-09 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439314', 'tblTempUsageDetail_20' ) start [2025-02-09 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439314', 'tblTempUsageDetail_20' ) end [2025-02-09 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:52:21] Production.INFO: ==32025== Releasing lock... [2025-02-09 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:52:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:53:05 [end_date_ymd] => 2025-02-09 19:53:05 [RateCDR] => 1 ) [2025-02-09 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:53:05' and `end` < '2025-02-09 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:53:23] Production.INFO: count ==2121 [2025-02-09 19:53:23] Production.ERROR: pbx CDR StartTime 2025-02-09 16:53:05 - End Time 2025-02-09 19:53:05 [2025-02-09 19:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439320', 'tblTempUsageDetail_20' ) start [2025-02-09 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439320', 'tblTempUsageDetail_20' ) end [2025-02-09 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439320', 'tblTempVendorCDR_20' ) start [2025-02-09 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439320', 'tblTempVendorCDR_20' ) end [2025-02-09 19:53:23] Production.INFO: ProcessCDR(1,14439320,1,1,2) [2025-02-09 19:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439320', 'tblTempUsageDetail_20' ) start [2025-02-09 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439320', 'tblTempUsageDetail_20' ) end [2025-02-09 19:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:53:26] Production.INFO: ==32104== Releasing lock... [2025-02-09 19:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:53:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:54:05 [end_date_ymd] => 2025-02-09 19:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:54:05' and `end` < '2025-02-09 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-02-09 19:54:18] Production.INFO: count ==2118 [2025-02-09 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:54:05 - End Time 2025-02-09 19:54:05 [2025-02-09 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439325', 'tblTempUsageDetail_20' ) start [2025-02-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439325', 'tblTempUsageDetail_20' ) end [2025-02-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439325', 'tblTempVendorCDR_20' ) start [2025-02-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439325', 'tblTempVendorCDR_20' ) end [2025-02-09 19:54:19] Production.INFO: ProcessCDR(1,14439325,1,1,2) [2025-02-09 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439325', 'tblTempUsageDetail_20' ) start [2025-02-09 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439325', 'tblTempUsageDetail_20' ) end [2025-02-09 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:54:22] Production.INFO: ==32180== Releasing lock... [2025-02-09 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:54:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:55:06 [end_date_ymd] => 2025-02-09 19:55:06 [RateCDR] => 1 ) [2025-02-09 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 16:55:06' and `end` < '2025-02-09 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 19:55:25] Production.INFO: count ==2120 [2025-02-09 19:55:25] Production.ERROR: pbx CDR StartTime 2025-02-09 16:55:06 - End Time 2025-02-09 19:55:06 [2025-02-09 19:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439330', 'tblTempUsageDetail_20' ) start [2025-02-09 19:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439330', 'tblTempUsageDetail_20' ) end [2025-02-09 19:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439330', 'tblTempVendorCDR_20' ) start [2025-02-09 19:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439330', 'tblTempVendorCDR_20' ) end [2025-02-09 19:55:25] Production.INFO: ProcessCDR(1,14439330,1,1,2) [2025-02-09 19:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439330', 'tblTempUsageDetail_20' ) start [2025-02-09 19:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439330', 'tblTempUsageDetail_20' ) end [2025-02-09 19:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:55:28] Production.INFO: ==32258== Releasing lock... [2025-02-09 19:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:55:28] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:56:05 [end_date_ymd] => 2025-02-09 19:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:56:05' and `end` < '2025-02-09 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-02-09 19:56:18] Production.INFO: count ==2114 [2025-02-09 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:56:05 - End Time 2025-02-09 19:56:05 [2025-02-09 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439335', 'tblTempUsageDetail_20' ) start [2025-02-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439335', 'tblTempUsageDetail_20' ) end [2025-02-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439335', 'tblTempVendorCDR_20' ) start [2025-02-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439335', 'tblTempVendorCDR_20' ) end [2025-02-09 19:56:19] Production.INFO: ProcessCDR(1,14439335,1,1,2) [2025-02-09 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439335', 'tblTempUsageDetail_20' ) start [2025-02-09 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439335', 'tblTempUsageDetail_20' ) end [2025-02-09 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:56:22] Production.INFO: ==32380== Releasing lock... [2025-02-09 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:56:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:57:05 [end_date_ymd] => 2025-02-09 19:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:57:05' and `end` < '2025-02-09 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-02-09 19:57:18] Production.INFO: count ==2111 [2025-02-09 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 16:57:05 - End Time 2025-02-09 19:57:05 [2025-02-09 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439340', 'tblTempUsageDetail_20' ) start [2025-02-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439340', 'tblTempUsageDetail_20' ) end [2025-02-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439340', 'tblTempVendorCDR_20' ) start [2025-02-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439340', 'tblTempVendorCDR_20' ) end [2025-02-09 19:57:18] Production.INFO: ProcessCDR(1,14439340,1,1,2) [2025-02-09 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439340', 'tblTempUsageDetail_20' ) start [2025-02-09 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439340', 'tblTempUsageDetail_20' ) end [2025-02-09 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:57:22] Production.INFO: ==32461== Releasing lock... [2025-02-09 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:57:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:58:05 [end_date_ymd] => 2025-02-09 19:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:58:05' and `end` < '2025-02-09 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-02-09 19:58:18] Production.INFO: count ==2107 [2025-02-09 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:58:05 - End Time 2025-02-09 19:58:05 [2025-02-09 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439346', 'tblTempUsageDetail_20' ) start [2025-02-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439346', 'tblTempUsageDetail_20' ) end [2025-02-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439346', 'tblTempVendorCDR_20' ) start [2025-02-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439346', 'tblTempVendorCDR_20' ) end [2025-02-09 19:58:19] Production.INFO: ProcessCDR(1,14439346,1,1,2) [2025-02-09 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439346', 'tblTempUsageDetail_20' ) start [2025-02-09 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439346', 'tblTempUsageDetail_20' ) end [2025-02-09 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:58:22] Production.INFO: ==32548== Releasing lock... [2025-02-09 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:58:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 16:59:05 [end_date_ymd] => 2025-02-09 19:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 16:59:05' and `end` < '2025-02-09 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-02-09 19:59:19] Production.INFO: count ==2106 [2025-02-09 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 16:59:05 - End Time 2025-02-09 19:59:05 [2025-02-09 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439351', 'tblTempUsageDetail_20' ) start [2025-02-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439351', 'tblTempUsageDetail_20' ) end [2025-02-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439351', 'tblTempVendorCDR_20' ) start [2025-02-09 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439351', 'tblTempVendorCDR_20' ) end [2025-02-09 19:59:19] Production.INFO: ProcessCDR(1,14439351,1,1,2) [2025-02-09 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439351', 'tblTempUsageDetail_20' ) start [2025-02-09 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439351', 'tblTempUsageDetail_20' ) end [2025-02-09 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 19:59:22] Production.INFO: ==32632== Releasing lock... [2025-02-09 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 19:59:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-09 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:00:06 [end_date_ymd] => 2025-02-09 20:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:00:06' and `end` < '2025-02-09 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-02-09 20:00:21] Production.INFO: count ==2103 [2025-02-09 20:00:21] Production.ERROR: pbx CDR StartTime 2025-02-09 17:00:06 - End Time 2025-02-09 20:00:06 [2025-02-09 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439356', 'tblTempUsageDetail_20' ) start [2025-02-09 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439356', 'tblTempUsageDetail_20' ) end [2025-02-09 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439356', 'tblTempVendorCDR_20' ) start [2025-02-09 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439356', 'tblTempVendorCDR_20' ) end [2025-02-09 20:00:21] Production.INFO: ProcessCDR(1,14439356,1,1,2) [2025-02-09 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439356', 'tblTempUsageDetail_20' ) start [2025-02-09 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439356', 'tblTempUsageDetail_20' ) end [2025-02-09 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:00:24] Production.INFO: ==32711== Releasing lock... [2025-02-09 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:01:06 [end_date_ymd] => 2025-02-09 20:01:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:01:06' and `end` < '2025-02-09 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-02-09 20:01:19] Production.INFO: count ==2051 [2025-02-09 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:01:06 - End Time 2025-02-09 20:01:06 [2025-02-09 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439362', 'tblTempUsageDetail_20' ) start [2025-02-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439362', 'tblTempUsageDetail_20' ) end [2025-02-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439362', 'tblTempVendorCDR_20' ) start [2025-02-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439362', 'tblTempVendorCDR_20' ) end [2025-02-09 20:01:19] Production.INFO: ProcessCDR(1,14439362,1,1,2) [2025-02-09 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439362', 'tblTempUsageDetail_20' ) start [2025-02-09 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439362', 'tblTempUsageDetail_20' ) end [2025-02-09 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:01:22] Production.INFO: ==403== Releasing lock... [2025-02-09 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:01:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:02:05 [end_date_ymd] => 2025-02-09 20:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:02:05' and `end` < '2025-02-09 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-02-09 20:02:19] Production.INFO: count ==2049 [2025-02-09 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:02:05 - End Time 2025-02-09 20:02:05 [2025-02-09 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439367', 'tblTempUsageDetail_20' ) start [2025-02-09 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439367', 'tblTempUsageDetail_20' ) end [2025-02-09 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439367', 'tblTempVendorCDR_20' ) start [2025-02-09 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439367', 'tblTempVendorCDR_20' ) end [2025-02-09 20:02:19] Production.INFO: ProcessCDR(1,14439367,1,1,2) [2025-02-09 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439367', 'tblTempUsageDetail_20' ) start [2025-02-09 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439367', 'tblTempUsageDetail_20' ) end [2025-02-09 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:02:22] Production.INFO: ==480== Releasing lock... [2025-02-09 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:02:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:03:05 [end_date_ymd] => 2025-02-09 20:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:03:05' and `end` < '2025-02-09 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-02-09 20:03:19] Production.INFO: count ==2048 [2025-02-09 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:03:05 - End Time 2025-02-09 20:03:05 [2025-02-09 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439372', 'tblTempUsageDetail_20' ) start [2025-02-09 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439372', 'tblTempUsageDetail_20' ) end [2025-02-09 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439372', 'tblTempVendorCDR_20' ) start [2025-02-09 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439372', 'tblTempVendorCDR_20' ) end [2025-02-09 20:03:19] Production.INFO: ProcessCDR(1,14439372,1,1,2) [2025-02-09 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439372', 'tblTempUsageDetail_20' ) start [2025-02-09 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439372', 'tblTempUsageDetail_20' ) end [2025-02-09 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:03:23] Production.INFO: ==555== Releasing lock... [2025-02-09 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:03:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:04:05 [end_date_ymd] => 2025-02-09 20:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:04:05' and `end` < '2025-02-09 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-02-09 20:04:18] Production.INFO: count ==2051 [2025-02-09 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:04:05 - End Time 2025-02-09 20:04:05 [2025-02-09 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439377', 'tblTempUsageDetail_20' ) start [2025-02-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439377', 'tblTempUsageDetail_20' ) end [2025-02-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439377', 'tblTempVendorCDR_20' ) start [2025-02-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439377', 'tblTempVendorCDR_20' ) end [2025-02-09 20:04:19] Production.INFO: ProcessCDR(1,14439377,1,1,2) [2025-02-09 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439377', 'tblTempUsageDetail_20' ) start [2025-02-09 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439377', 'tblTempUsageDetail_20' ) end [2025-02-09 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:04:23] Production.INFO: ==637== Releasing lock... [2025-02-09 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:04:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:05:06 [end_date_ymd] => 2025-02-09 20:05:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:05:06' and `end` < '2025-02-09 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-02-09 20:05:20] Production.INFO: count ==2049 [2025-02-09 20:05:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:05:06 - End Time 2025-02-09 20:05:06 [2025-02-09 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439383', 'tblTempUsageDetail_20' ) start [2025-02-09 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439383', 'tblTempUsageDetail_20' ) end [2025-02-09 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439383', 'tblTempVendorCDR_20' ) start [2025-02-09 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439383', 'tblTempVendorCDR_20' ) end [2025-02-09 20:05:20] Production.INFO: ProcessCDR(1,14439383,1,1,2) [2025-02-09 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439383', 'tblTempUsageDetail_20' ) start [2025-02-09 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439383', 'tblTempUsageDetail_20' ) end [2025-02-09 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:05:24] Production.INFO: ==743== Releasing lock... [2025-02-09 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:05:24] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:06:04 [end_date_ymd] => 2025-02-09 20:06:04 [RateCDR] => 1 ) [2025-02-09 20: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-02-09 17:06:04' and `end` < '2025-02-09 20: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-02-09 20:06:18] Production.INFO: count ==2049 [2025-02-09 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:06:04 - End Time 2025-02-09 20:06:04 [2025-02-09 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439388', 'tblTempUsageDetail_20' ) start [2025-02-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439388', 'tblTempUsageDetail_20' ) end [2025-02-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439388', 'tblTempVendorCDR_20' ) start [2025-02-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439388', 'tblTempVendorCDR_20' ) end [2025-02-09 20:06:18] Production.INFO: ProcessCDR(1,14439388,1,1,2) [2025-02-09 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439388', 'tblTempUsageDetail_20' ) start [2025-02-09 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439388', 'tblTempUsageDetail_20' ) end [2025-02-09 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:06:23] Production.INFO: ==839== Releasing lock... [2025-02-09 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:06:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:07:05 [end_date_ymd] => 2025-02-09 20:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:07:05' and `end` < '2025-02-09 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-02-09 20:07:19] Production.INFO: count ==2047 [2025-02-09 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:07:05 - End Time 2025-02-09 20:07:05 [2025-02-09 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439393', 'tblTempUsageDetail_20' ) start [2025-02-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439393', 'tblTempUsageDetail_20' ) end [2025-02-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439393', 'tblTempVendorCDR_20' ) start [2025-02-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439393', 'tblTempVendorCDR_20' ) end [2025-02-09 20:07:19] Production.INFO: ProcessCDR(1,14439393,1,1,2) [2025-02-09 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439393', 'tblTempUsageDetail_20' ) start [2025-02-09 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439393', 'tblTempUsageDetail_20' ) end [2025-02-09 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:07:23] Production.INFO: ==912== Releasing lock... [2025-02-09 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:07:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:08:05 [end_date_ymd] => 2025-02-09 20:08:05 [RateCDR] => 1 ) [2025-02-09 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:08:05' and `end` < '2025-02-09 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:08:19] Production.INFO: count ==2046 [2025-02-09 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:08:05 - End Time 2025-02-09 20:08:05 [2025-02-09 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439398', 'tblTempUsageDetail_20' ) start [2025-02-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439398', 'tblTempUsageDetail_20' ) end [2025-02-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439398', 'tblTempVendorCDR_20' ) start [2025-02-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439398', 'tblTempVendorCDR_20' ) end [2025-02-09 20:08:19] Production.INFO: ProcessCDR(1,14439398,1,1,2) [2025-02-09 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439398', 'tblTempUsageDetail_20' ) start [2025-02-09 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439398', 'tblTempUsageDetail_20' ) end [2025-02-09 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:08:23] Production.INFO: ==991== Releasing lock... [2025-02-09 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:08:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:09:05 [end_date_ymd] => 2025-02-09 20:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:09:05' and `end` < '2025-02-09 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-02-09 20:09:19] Production.INFO: count ==2045 [2025-02-09 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:09:05 - End Time 2025-02-09 20:09:05 [2025-02-09 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439403', 'tblTempUsageDetail_20' ) start [2025-02-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439403', 'tblTempUsageDetail_20' ) end [2025-02-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439403', 'tblTempVendorCDR_20' ) start [2025-02-09 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439403', 'tblTempVendorCDR_20' ) end [2025-02-09 20:09:19] Production.INFO: ProcessCDR(1,14439403,1,1,2) [2025-02-09 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439403', 'tblTempUsageDetail_20' ) start [2025-02-09 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439403', 'tblTempUsageDetail_20' ) end [2025-02-09 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:09:23] Production.INFO: ==1064== Releasing lock... [2025-02-09 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:09:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:10:06 [end_date_ymd] => 2025-02-09 20:10:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:10:06' and `end` < '2025-02-09 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-02-09 20:10:21] Production.INFO: count ==2045 [2025-02-09 20:10:21] Production.ERROR: pbx CDR StartTime 2025-02-09 17:10:06 - End Time 2025-02-09 20:10:06 [2025-02-09 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439408', 'tblTempUsageDetail_20' ) start [2025-02-09 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439408', 'tblTempUsageDetail_20' ) end [2025-02-09 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439408', 'tblTempVendorCDR_20' ) start [2025-02-09 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439408', 'tblTempVendorCDR_20' ) end [2025-02-09 20:10:21] Production.INFO: ProcessCDR(1,14439408,1,1,2) [2025-02-09 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439408', 'tblTempUsageDetail_20' ) start [2025-02-09 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439408', 'tblTempUsageDetail_20' ) end [2025-02-09 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:10:26] Production.INFO: ==1141== Releasing lock... [2025-02-09 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:10:26] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:11:06 [end_date_ymd] => 2025-02-09 20:11:06 [RateCDR] => 1 ) [2025-02-09 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:11:06' and `end` < '2025-02-09 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:11:19] Production.INFO: count ==2052 [2025-02-09 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:11:06 - End Time 2025-02-09 20:11:06 [2025-02-09 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439414', 'tblTempUsageDetail_20' ) start [2025-02-09 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439414', 'tblTempUsageDetail_20' ) end [2025-02-09 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439414', 'tblTempVendorCDR_20' ) start [2025-02-09 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439414', 'tblTempVendorCDR_20' ) end [2025-02-09 20:11:19] Production.INFO: ProcessCDR(1,14439414,1,1,2) [2025-02-09 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439414', 'tblTempUsageDetail_20' ) start [2025-02-09 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439414', 'tblTempUsageDetail_20' ) end [2025-02-09 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:11:25] Production.INFO: ==1272== Releasing lock... [2025-02-09 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:11:25] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:12:05 [end_date_ymd] => 2025-02-09 20:12:05 [RateCDR] => 1 ) [2025-02-09 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:12:05' and `end` < '2025-02-09 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:12:18] Production.INFO: count ==2051 [2025-02-09 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:12:05 - End Time 2025-02-09 20:12:05 [2025-02-09 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439419', 'tblTempUsageDetail_20' ) start [2025-02-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439419', 'tblTempUsageDetail_20' ) end [2025-02-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439419', 'tblTempVendorCDR_20' ) start [2025-02-09 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439419', 'tblTempVendorCDR_20' ) end [2025-02-09 20:12:19] Production.INFO: ProcessCDR(1,14439419,1,1,2) [2025-02-09 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439419', 'tblTempUsageDetail_20' ) start [2025-02-09 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439419', 'tblTempUsageDetail_20' ) end [2025-02-09 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:12:22] Production.INFO: ==1347== Releasing lock... [2025-02-09 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:12:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:13:06 [end_date_ymd] => 2025-02-09 20:13:06 [RateCDR] => 1 ) [2025-02-09 20: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-02-09 17:13:06' and `end` < '2025-02-09 20: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-02-09 20:13:19] Production.INFO: count ==2050 [2025-02-09 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:13:06 - End Time 2025-02-09 20:13:06 [2025-02-09 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439424', 'tblTempUsageDetail_20' ) start [2025-02-09 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439424', 'tblTempUsageDetail_20' ) end [2025-02-09 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439424', 'tblTempVendorCDR_20' ) start [2025-02-09 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439424', 'tblTempVendorCDR_20' ) end [2025-02-09 20:13:19] Production.INFO: ProcessCDR(1,14439424,1,1,2) [2025-02-09 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439424', 'tblTempUsageDetail_20' ) start [2025-02-09 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439424', 'tblTempUsageDetail_20' ) end [2025-02-09 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:13:23] Production.INFO: ==1436== Releasing lock... [2025-02-09 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:13:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:14:05 [end_date_ymd] => 2025-02-09 20:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:14:05' and `end` < '2025-02-09 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-02-09 20:14:18] Production.INFO: count ==2049 [2025-02-09 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:14:05 - End Time 2025-02-09 20:14:05 [2025-02-09 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439429', 'tblTempUsageDetail_20' ) start [2025-02-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439429', 'tblTempUsageDetail_20' ) end [2025-02-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439429', 'tblTempVendorCDR_20' ) start [2025-02-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439429', 'tblTempVendorCDR_20' ) end [2025-02-09 20:14:19] Production.INFO: ProcessCDR(1,14439429,1,1,2) [2025-02-09 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439429', 'tblTempUsageDetail_20' ) start [2025-02-09 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439429', 'tblTempUsageDetail_20' ) end [2025-02-09 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:14:22] Production.INFO: ==1538== Releasing lock... [2025-02-09 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:14:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:15:05 [end_date_ymd] => 2025-02-09 20:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:15:05' and `end` < '2025-02-09 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-02-09 20:15:18] Production.INFO: count ==2049 [2025-02-09 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:15:05 - End Time 2025-02-09 20:15:05 [2025-02-09 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439434', 'tblTempUsageDetail_20' ) start [2025-02-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439434', 'tblTempUsageDetail_20' ) end [2025-02-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439434', 'tblTempVendorCDR_20' ) start [2025-02-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439434', 'tblTempVendorCDR_20' ) end [2025-02-09 20:15:19] Production.INFO: ProcessCDR(1,14439434,1,1,2) [2025-02-09 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439434', 'tblTempUsageDetail_20' ) start [2025-02-09 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439434', 'tblTempUsageDetail_20' ) end [2025-02-09 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:15:22] Production.INFO: ==1622== Releasing lock... [2025-02-09 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:15:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:16:05 [end_date_ymd] => 2025-02-09 20:16:05 [RateCDR] => 1 ) [2025-02-09 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:16:05' and `end` < '2025-02-09 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:16:18] Production.INFO: count ==2048 [2025-02-09 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:16:05 - End Time 2025-02-09 20:16:05 [2025-02-09 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439439', 'tblTempUsageDetail_20' ) start [2025-02-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439439', 'tblTempUsageDetail_20' ) end [2025-02-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439439', 'tblTempVendorCDR_20' ) start [2025-02-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439439', 'tblTempVendorCDR_20' ) end [2025-02-09 20:16:19] Production.INFO: ProcessCDR(1,14439439,1,1,2) [2025-02-09 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439439', 'tblTempUsageDetail_20' ) start [2025-02-09 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439439', 'tblTempUsageDetail_20' ) end [2025-02-09 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:16:22] Production.INFO: ==1696== Releasing lock... [2025-02-09 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:16:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-09 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:17:05 [end_date_ymd] => 2025-02-09 20:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:17:05' and `end` < '2025-02-09 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-02-09 20:17:19] Production.INFO: count ==2054 [2025-02-09 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:17:05 - End Time 2025-02-09 20:17:05 [2025-02-09 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439444', 'tblTempUsageDetail_20' ) start [2025-02-09 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439444', 'tblTempUsageDetail_20' ) end [2025-02-09 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439444', 'tblTempVendorCDR_20' ) start [2025-02-09 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439444', 'tblTempVendorCDR_20' ) end [2025-02-09 20:17:19] Production.INFO: ProcessCDR(1,14439444,1,1,2) [2025-02-09 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439444', 'tblTempUsageDetail_20' ) start [2025-02-09 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439444', 'tblTempUsageDetail_20' ) end [2025-02-09 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:17:25] Production.INFO: ==1768== Releasing lock... [2025-02-09 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:17:25] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:18:04 [end_date_ymd] => 2025-02-09 20:18:04 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:18:04' and `end` < '2025-02-09 20: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-02-09 20:18:18] Production.INFO: count ==2057 [2025-02-09 20:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:18:04 - End Time 2025-02-09 20:18:04 [2025-02-09 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439449', 'tblTempUsageDetail_20' ) start [2025-02-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439449', 'tblTempUsageDetail_20' ) end [2025-02-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439449', 'tblTempVendorCDR_20' ) start [2025-02-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439449', 'tblTempVendorCDR_20' ) end [2025-02-09 20:18:18] Production.INFO: ProcessCDR(1,14439449,1,1,2) [2025-02-09 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439449', 'tblTempUsageDetail_20' ) start [2025-02-09 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439449', 'tblTempUsageDetail_20' ) end [2025-02-09 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:18:22] Production.INFO: ==1858== Releasing lock... [2025-02-09 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:18:22] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:19:06 [end_date_ymd] => 2025-02-09 20:19:06 [RateCDR] => 1 ) [2025-02-09 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:19:06' and `end` < '2025-02-09 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:19:19] Production.INFO: count ==2056 [2025-02-09 20:19:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:19:06 - End Time 2025-02-09 20:19:06 [2025-02-09 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439454', 'tblTempUsageDetail_20' ) start [2025-02-09 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439454', 'tblTempUsageDetail_20' ) end [2025-02-09 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439454', 'tblTempVendorCDR_20' ) start [2025-02-09 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439454', 'tblTempVendorCDR_20' ) end [2025-02-09 20:19:20] Production.INFO: ProcessCDR(1,14439454,1,1,2) [2025-02-09 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439454', 'tblTempUsageDetail_20' ) start [2025-02-09 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439454', 'tblTempUsageDetail_20' ) end [2025-02-09 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:19:23] Production.INFO: ==1936== Releasing lock... [2025-02-09 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:19:23] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:20:07 [end_date_ymd] => 2025-02-09 20:20:07 [RateCDR] => 1 ) [2025-02-09 20:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:20:07' and `end` < '2025-02-09 20:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:20:20] Production.INFO: count ==2059 [2025-02-09 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:20:07 - End Time 2025-02-09 20:20:07 [2025-02-09 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439460', 'tblTempUsageDetail_20' ) start [2025-02-09 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439460', 'tblTempUsageDetail_20' ) end [2025-02-09 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439460', 'tblTempVendorCDR_20' ) start [2025-02-09 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439460', 'tblTempVendorCDR_20' ) end [2025-02-09 20:20:20] Production.INFO: ProcessCDR(1,14439460,1,1,2) [2025-02-09 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439460', 'tblTempUsageDetail_20' ) start [2025-02-09 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439460', 'tblTempUsageDetail_20' ) end [2025-02-09 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:20:24] Production.INFO: ==2018== Releasing lock... [2025-02-09 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:20:24] Production.INFO: 43 MB #Memory Used# [2025-02-09 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:21:05 [end_date_ymd] => 2025-02-09 20:21:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:21:05' and `end` < '2025-02-09 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-02-09 20:21:19] Production.INFO: count ==2027 [2025-02-09 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:21:05 - End Time 2025-02-09 20:21:05 [2025-02-09 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439465', 'tblTempUsageDetail_20' ) start [2025-02-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439465', 'tblTempUsageDetail_20' ) end [2025-02-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439465', 'tblTempVendorCDR_20' ) start [2025-02-09 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439465', 'tblTempVendorCDR_20' ) end [2025-02-09 20:21:19] Production.INFO: ProcessCDR(1,14439465,1,1,2) [2025-02-09 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439465', 'tblTempUsageDetail_20' ) start [2025-02-09 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439465', 'tblTempUsageDetail_20' ) end [2025-02-09 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:21:23] Production.INFO: ==2098== Releasing lock... [2025-02-09 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:21:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:22:06 [end_date_ymd] => 2025-02-09 20:22:06 [RateCDR] => 1 ) [2025-02-09 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:22:06' and `end` < '2025-02-09 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:22:19] Production.INFO: count ==2024 [2025-02-09 20:22:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:22:06 - End Time 2025-02-09 20:22:06 [2025-02-09 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439470', 'tblTempUsageDetail_20' ) start [2025-02-09 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439470', 'tblTempUsageDetail_20' ) end [2025-02-09 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439470', 'tblTempVendorCDR_20' ) start [2025-02-09 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439470', 'tblTempVendorCDR_20' ) end [2025-02-09 20:22:20] Production.INFO: ProcessCDR(1,14439470,1,1,2) [2025-02-09 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439470', 'tblTempUsageDetail_20' ) start [2025-02-09 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439470', 'tblTempUsageDetail_20' ) end [2025-02-09 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:22:25] Production.INFO: ==2174== Releasing lock... [2025-02-09 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:22:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:23:06 [end_date_ymd] => 2025-02-09 20:23:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:23:06' and `end` < '2025-02-09 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-02-09 20:23:19] Production.INFO: count ==2030 [2025-02-09 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:23:06 - End Time 2025-02-09 20:23:06 [2025-02-09 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439475', 'tblTempUsageDetail_20' ) start [2025-02-09 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439475', 'tblTempUsageDetail_20' ) end [2025-02-09 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439475', 'tblTempVendorCDR_20' ) start [2025-02-09 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439475', 'tblTempVendorCDR_20' ) end [2025-02-09 20:23:19] Production.INFO: ProcessCDR(1,14439475,1,1,2) [2025-02-09 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439475', 'tblTempUsageDetail_20' ) start [2025-02-09 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439475', 'tblTempUsageDetail_20' ) end [2025-02-09 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:23:23] Production.INFO: ==2248== Releasing lock... [2025-02-09 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:24:06 [end_date_ymd] => 2025-02-09 20:24:06 [RateCDR] => 1 ) [2025-02-09 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:24:06' and `end` < '2025-02-09 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:24:19] Production.INFO: count ==2023 [2025-02-09 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:24:06 - End Time 2025-02-09 20:24:06 [2025-02-09 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439480', 'tblTempUsageDetail_20' ) start [2025-02-09 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439480', 'tblTempUsageDetail_20' ) end [2025-02-09 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439480', 'tblTempVendorCDR_20' ) start [2025-02-09 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439480', 'tblTempVendorCDR_20' ) end [2025-02-09 20:24:20] Production.INFO: ProcessCDR(1,14439480,1,1,2) [2025-02-09 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439480', 'tblTempUsageDetail_20' ) start [2025-02-09 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439480', 'tblTempUsageDetail_20' ) end [2025-02-09 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:24:24] Production.INFO: ==2321== Releasing lock... [2025-02-09 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:24:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:25:05 [end_date_ymd] => 2025-02-09 20:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:25:05' and `end` < '2025-02-09 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-02-09 20:25:19] Production.INFO: count ==2024 [2025-02-09 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:25:05 - End Time 2025-02-09 20:25:05 [2025-02-09 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439485', 'tblTempUsageDetail_20' ) start [2025-02-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439485', 'tblTempUsageDetail_20' ) end [2025-02-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439485', 'tblTempVendorCDR_20' ) start [2025-02-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439485', 'tblTempVendorCDR_20' ) end [2025-02-09 20:25:19] Production.INFO: ProcessCDR(1,14439485,1,1,2) [2025-02-09 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439485', 'tblTempUsageDetail_20' ) start [2025-02-09 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439485', 'tblTempUsageDetail_20' ) end [2025-02-09 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:25:27] Production.INFO: ==2394== Releasing lock... [2025-02-09 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:25:27] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:26:06 [end_date_ymd] => 2025-02-09 20:26:06 [RateCDR] => 1 ) [2025-02-09 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:26:06' and `end` < '2025-02-09 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:26:20] Production.INFO: count ==2023 [2025-02-09 20:26:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:26:06 - End Time 2025-02-09 20:26:06 [2025-02-09 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439490', 'tblTempUsageDetail_20' ) start [2025-02-09 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439490', 'tblTempUsageDetail_20' ) end [2025-02-09 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439490', 'tblTempVendorCDR_20' ) start [2025-02-09 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439490', 'tblTempVendorCDR_20' ) end [2025-02-09 20:26:20] Production.INFO: ProcessCDR(1,14439490,1,1,2) [2025-02-09 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439490', 'tblTempUsageDetail_20' ) start [2025-02-09 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439490', 'tblTempUsageDetail_20' ) end [2025-02-09 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:26:23] Production.INFO: ==2530== Releasing lock... [2025-02-09 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:26:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:27:05 [end_date_ymd] => 2025-02-09 20:27:05 [RateCDR] => 1 ) [2025-02-09 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:27:05' and `end` < '2025-02-09 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:27:18] Production.INFO: count ==2022 [2025-02-09 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:27:05 - End Time 2025-02-09 20:27:05 [2025-02-09 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439495', 'tblTempUsageDetail_20' ) start [2025-02-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439495', 'tblTempUsageDetail_20' ) end [2025-02-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439495', 'tblTempVendorCDR_20' ) start [2025-02-09 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439495', 'tblTempVendorCDR_20' ) end [2025-02-09 20:27:19] Production.INFO: ProcessCDR(1,14439495,1,1,2) [2025-02-09 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439495', 'tblTempUsageDetail_20' ) start [2025-02-09 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439495', 'tblTempUsageDetail_20' ) end [2025-02-09 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:27:22] Production.INFO: ==2676== Releasing lock... [2025-02-09 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:27:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:28:05 [end_date_ymd] => 2025-02-09 20:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:28:05' and `end` < '2025-02-09 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-02-09 20:28:19] Production.INFO: count ==2020 [2025-02-09 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:28:05 - End Time 2025-02-09 20:28:05 [2025-02-09 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439500', 'tblTempUsageDetail_20' ) start [2025-02-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439500', 'tblTempUsageDetail_20' ) end [2025-02-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439500', 'tblTempVendorCDR_20' ) start [2025-02-09 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439500', 'tblTempVendorCDR_20' ) end [2025-02-09 20:28:19] Production.INFO: ProcessCDR(1,14439500,1,1,2) [2025-02-09 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439500', 'tblTempUsageDetail_20' ) start [2025-02-09 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439500', 'tblTempUsageDetail_20' ) end [2025-02-09 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:28:22] Production.INFO: ==2754== Releasing lock... [2025-02-09 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:28:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:29:05 [end_date_ymd] => 2025-02-09 20:29:05 [RateCDR] => 1 ) [2025-02-09 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:29:05' and `end` < '2025-02-09 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:29:18] Production.INFO: count ==2019 [2025-02-09 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:29:05 - End Time 2025-02-09 20:29:05 [2025-02-09 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439505', 'tblTempUsageDetail_20' ) start [2025-02-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439505', 'tblTempUsageDetail_20' ) end [2025-02-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439505', 'tblTempVendorCDR_20' ) start [2025-02-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439505', 'tblTempVendorCDR_20' ) end [2025-02-09 20:29:19] Production.INFO: ProcessCDR(1,14439505,1,1,2) [2025-02-09 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439505', 'tblTempUsageDetail_20' ) start [2025-02-09 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439505', 'tblTempUsageDetail_20' ) end [2025-02-09 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:29:23] Production.INFO: ==2827== Releasing lock... [2025-02-09 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:29:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:30:06 [end_date_ymd] => 2025-02-09 20:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:30:06' and `end` < '2025-02-09 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-02-09 20:30:19] Production.INFO: count ==2018 [2025-02-09 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:30:06 - End Time 2025-02-09 20:30:06 [2025-02-09 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439511', 'tblTempUsageDetail_20' ) start [2025-02-09 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439511', 'tblTempUsageDetail_20' ) end [2025-02-09 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439511', 'tblTempVendorCDR_20' ) start [2025-02-09 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439511', 'tblTempVendorCDR_20' ) end [2025-02-09 20:30:20] Production.INFO: ProcessCDR(1,14439511,1,1,2) [2025-02-09 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439511', 'tblTempUsageDetail_20' ) start [2025-02-09 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439511', 'tblTempUsageDetail_20' ) end [2025-02-09 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:30:23] Production.INFO: ==2902== Releasing lock... [2025-02-09 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:30:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-09 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:31:05 [end_date_ymd] => 2025-02-09 20:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:31:05' and `end` < '2025-02-09 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-02-09 20:31:18] Production.INFO: count ==1955 [2025-02-09 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:31:05 - End Time 2025-02-09 20:31:05 [2025-02-09 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439516', 'tblTempUsageDetail_20' ) start [2025-02-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439516', 'tblTempUsageDetail_20' ) end [2025-02-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439516', 'tblTempVendorCDR_20' ) start [2025-02-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439516', 'tblTempVendorCDR_20' ) end [2025-02-09 20:31:18] Production.INFO: ProcessCDR(1,14439516,1,1,2) [2025-02-09 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439516', 'tblTempUsageDetail_20' ) start [2025-02-09 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439516', 'tblTempUsageDetail_20' ) end [2025-02-09 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:31:21] Production.INFO: ==2977== Releasing lock... [2025-02-09 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:31:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:32:06 [end_date_ymd] => 2025-02-09 20:32:06 [RateCDR] => 1 ) [2025-02-09 20: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-02-09 17:32:06' and `end` < '2025-02-09 20: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-02-09 20:32:19] Production.INFO: count ==1956 [2025-02-09 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:32:06 - End Time 2025-02-09 20:32:06 [2025-02-09 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439521', 'tblTempUsageDetail_20' ) start [2025-02-09 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439521', 'tblTempUsageDetail_20' ) end [2025-02-09 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439521', 'tblTempVendorCDR_20' ) start [2025-02-09 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439521', 'tblTempVendorCDR_20' ) end [2025-02-09 20:32:19] Production.INFO: ProcessCDR(1,14439521,1,1,2) [2025-02-09 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439521', 'tblTempUsageDetail_20' ) start [2025-02-09 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439521', 'tblTempUsageDetail_20' ) end [2025-02-09 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:32:22] Production.INFO: ==3051== Releasing lock... [2025-02-09 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:32:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:33:05 [end_date_ymd] => 2025-02-09 20:33:05 [RateCDR] => 1 ) [2025-02-09 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:33:05' and `end` < '2025-02-09 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:33:18] Production.INFO: count ==1952 [2025-02-09 20:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:33:05 - End Time 2025-02-09 20:33:05 [2025-02-09 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439526', 'tblTempUsageDetail_20' ) start [2025-02-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439526', 'tblTempUsageDetail_20' ) end [2025-02-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439526', 'tblTempVendorCDR_20' ) start [2025-02-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439526', 'tblTempVendorCDR_20' ) end [2025-02-09 20:33:18] Production.INFO: ProcessCDR(1,14439526,1,1,2) [2025-02-09 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439526', 'tblTempUsageDetail_20' ) start [2025-02-09 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439526', 'tblTempUsageDetail_20' ) end [2025-02-09 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:33:22] Production.INFO: ==3135== Releasing lock... [2025-02-09 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:33:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:34:05 [end_date_ymd] => 2025-02-09 20:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:34:05' and `end` < '2025-02-09 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-02-09 20:34:18] Production.INFO: count ==1953 [2025-02-09 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:34:05 - End Time 2025-02-09 20:34:05 [2025-02-09 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439531', 'tblTempUsageDetail_20' ) start [2025-02-09 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439531', 'tblTempUsageDetail_20' ) end [2025-02-09 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439531', 'tblTempVendorCDR_20' ) start [2025-02-09 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439531', 'tblTempVendorCDR_20' ) end [2025-02-09 20:34:18] Production.INFO: ProcessCDR(1,14439531,1,1,2) [2025-02-09 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439531', 'tblTempUsageDetail_20' ) start [2025-02-09 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439531', 'tblTempUsageDetail_20' ) end [2025-02-09 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:34:23] Production.INFO: ==3213== Releasing lock... [2025-02-09 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:34:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:35:05 [end_date_ymd] => 2025-02-09 20:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:35:05' and `end` < '2025-02-09 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-02-09 20:35:18] Production.INFO: count ==1952 [2025-02-09 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:35:05 - End Time 2025-02-09 20:35:05 [2025-02-09 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439536', 'tblTempUsageDetail_20' ) start [2025-02-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439536', 'tblTempUsageDetail_20' ) end [2025-02-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439536', 'tblTempVendorCDR_20' ) start [2025-02-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439536', 'tblTempVendorCDR_20' ) end [2025-02-09 20:35:18] Production.INFO: ProcessCDR(1,14439536,1,1,2) [2025-02-09 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439536', 'tblTempUsageDetail_20' ) start [2025-02-09 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439536', 'tblTempUsageDetail_20' ) end [2025-02-09 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:35:22] Production.INFO: ==3287== Releasing lock... [2025-02-09 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:35:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:36:05 [end_date_ymd] => 2025-02-09 20:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:36:05' and `end` < '2025-02-09 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-02-09 20:36:18] Production.INFO: count ==1949 [2025-02-09 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:36:05 - End Time 2025-02-09 20:36:05 [2025-02-09 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439541', 'tblTempUsageDetail_20' ) start [2025-02-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439541', 'tblTempUsageDetail_20' ) end [2025-02-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439541', 'tblTempVendorCDR_20' ) start [2025-02-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439541', 'tblTempVendorCDR_20' ) end [2025-02-09 20:36:18] Production.INFO: ProcessCDR(1,14439541,1,1,2) [2025-02-09 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439541', 'tblTempUsageDetail_20' ) start [2025-02-09 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439541', 'tblTempUsageDetail_20' ) end [2025-02-09 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:36:22] Production.INFO: ==3359== Releasing lock... [2025-02-09 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:36:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:37:05 [end_date_ymd] => 2025-02-09 20:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:37:05' and `end` < '2025-02-09 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-02-09 20:37:18] Production.INFO: count ==1950 [2025-02-09 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:37:05 - End Time 2025-02-09 20:37:05 [2025-02-09 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439546', 'tblTempUsageDetail_20' ) start [2025-02-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439546', 'tblTempUsageDetail_20' ) end [2025-02-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439546', 'tblTempVendorCDR_20' ) start [2025-02-09 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439546', 'tblTempVendorCDR_20' ) end [2025-02-09 20:37:19] Production.INFO: ProcessCDR(1,14439546,1,1,2) [2025-02-09 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439546', 'tblTempUsageDetail_20' ) start [2025-02-09 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439546', 'tblTempUsageDetail_20' ) end [2025-02-09 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:37:23] Production.INFO: ==3435== Releasing lock... [2025-02-09 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:38:05 [end_date_ymd] => 2025-02-09 20:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:38:05' and `end` < '2025-02-09 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-02-09 20:38:19] Production.INFO: count ==1951 [2025-02-09 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:38:05 - End Time 2025-02-09 20:38:05 [2025-02-09 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439551', 'tblTempUsageDetail_20' ) start [2025-02-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439551', 'tblTempUsageDetail_20' ) end [2025-02-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439551', 'tblTempVendorCDR_20' ) start [2025-02-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439551', 'tblTempVendorCDR_20' ) end [2025-02-09 20:38:19] Production.INFO: ProcessCDR(1,14439551,1,1,2) [2025-02-09 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439551', 'tblTempUsageDetail_20' ) start [2025-02-09 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439551', 'tblTempUsageDetail_20' ) end [2025-02-09 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:38:24] Production.INFO: ==3510== Releasing lock... [2025-02-09 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:38:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:39:06 [end_date_ymd] => 2025-02-09 20:39:06 [RateCDR] => 1 ) [2025-02-09 20: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-02-09 17:39:06' and `end` < '2025-02-09 20: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-02-09 20:39:19] Production.INFO: count ==1950 [2025-02-09 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:39:06 - End Time 2025-02-09 20:39:06 [2025-02-09 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439556', 'tblTempUsageDetail_20' ) start [2025-02-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439556', 'tblTempUsageDetail_20' ) end [2025-02-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439556', 'tblTempVendorCDR_20' ) start [2025-02-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439556', 'tblTempVendorCDR_20' ) end [2025-02-09 20:39:19] Production.INFO: ProcessCDR(1,14439556,1,1,2) [2025-02-09 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439556', 'tblTempUsageDetail_20' ) start [2025-02-09 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439556', 'tblTempUsageDetail_20' ) end [2025-02-09 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:39:23] Production.INFO: ==3586== Releasing lock... [2025-02-09 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:39:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:40:06 [end_date_ymd] => 2025-02-09 20:40:06 [RateCDR] => 1 ) [2025-02-09 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:40:06' and `end` < '2025-02-09 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:40:19] Production.INFO: count ==1950 [2025-02-09 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:40:06 - End Time 2025-02-09 20:40:06 [2025-02-09 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439562', 'tblTempUsageDetail_20' ) start [2025-02-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439562', 'tblTempUsageDetail_20' ) end [2025-02-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439562', 'tblTempVendorCDR_20' ) start [2025-02-09 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439562', 'tblTempVendorCDR_20' ) end [2025-02-09 20:40:19] Production.INFO: ProcessCDR(1,14439562,1,1,2) [2025-02-09 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439562', 'tblTempUsageDetail_20' ) start [2025-02-09 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439562', 'tblTempUsageDetail_20' ) end [2025-02-09 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:40:23] Production.INFO: ==3668== Releasing lock... [2025-02-09 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:40:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-09 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:41:05 [end_date_ymd] => 2025-02-09 20:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:41:05' and `end` < '2025-02-09 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-02-09 20:41:18] Production.INFO: count ==1884 [2025-02-09 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:41:05 - End Time 2025-02-09 20:41:05 [2025-02-09 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439567', 'tblTempUsageDetail_20' ) start [2025-02-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439567', 'tblTempUsageDetail_20' ) end [2025-02-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439567', 'tblTempVendorCDR_20' ) start [2025-02-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439567', 'tblTempVendorCDR_20' ) end [2025-02-09 20:41:19] Production.INFO: ProcessCDR(1,14439567,1,1,2) [2025-02-09 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439567', 'tblTempUsageDetail_20' ) start [2025-02-09 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439567', 'tblTempUsageDetail_20' ) end [2025-02-09 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:41:23] Production.INFO: ==3749== Releasing lock... [2025-02-09 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:41:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:42:05 [end_date_ymd] => 2025-02-09 20:42:05 [RateCDR] => 1 ) [2025-02-09 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:42:05' and `end` < '2025-02-09 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:42:19] Production.INFO: count ==1884 [2025-02-09 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:42:05 - End Time 2025-02-09 20:42:05 [2025-02-09 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439572', 'tblTempUsageDetail_20' ) start [2025-02-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439572', 'tblTempUsageDetail_20' ) end [2025-02-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439572', 'tblTempVendorCDR_20' ) start [2025-02-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439572', 'tblTempVendorCDR_20' ) end [2025-02-09 20:42:19] Production.INFO: ProcessCDR(1,14439572,1,1,2) [2025-02-09 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439572', 'tblTempUsageDetail_20' ) start [2025-02-09 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439572', 'tblTempUsageDetail_20' ) end [2025-02-09 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:42:23] Production.INFO: ==3861== Releasing lock... [2025-02-09 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:42:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:43:05 [end_date_ymd] => 2025-02-09 20:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:43:05' and `end` < '2025-02-09 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-02-09 20:43:18] Production.INFO: count ==1893 [2025-02-09 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:43:05 - End Time 2025-02-09 20:43:05 [2025-02-09 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439577', 'tblTempUsageDetail_20' ) start [2025-02-09 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439577', 'tblTempUsageDetail_20' ) end [2025-02-09 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439577', 'tblTempVendorCDR_20' ) start [2025-02-09 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439577', 'tblTempVendorCDR_20' ) end [2025-02-09 20:43:19] Production.INFO: ProcessCDR(1,14439577,1,1,2) [2025-02-09 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439577', 'tblTempUsageDetail_20' ) start [2025-02-09 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439577', 'tblTempUsageDetail_20' ) end [2025-02-09 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:43:23] Production.INFO: ==3934== Releasing lock... [2025-02-09 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:44:05 [end_date_ymd] => 2025-02-09 20:44:05 [RateCDR] => 1 ) [2025-02-09 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:44:05' and `end` < '2025-02-09 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:44:19] Production.INFO: count ==1892 [2025-02-09 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:44:05 - End Time 2025-02-09 20:44:05 [2025-02-09 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439582', 'tblTempUsageDetail_20' ) start [2025-02-09 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439582', 'tblTempUsageDetail_20' ) end [2025-02-09 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439582', 'tblTempVendorCDR_20' ) start [2025-02-09 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439582', 'tblTempVendorCDR_20' ) end [2025-02-09 20:44:19] Production.INFO: ProcessCDR(1,14439582,1,1,2) [2025-02-09 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439582', 'tblTempUsageDetail_20' ) start [2025-02-09 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439582', 'tblTempUsageDetail_20' ) end [2025-02-09 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:44:23] Production.INFO: ==4008== Releasing lock... [2025-02-09 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:44:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:45:05 [end_date_ymd] => 2025-02-09 20:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:45:05' and `end` < '2025-02-09 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-02-09 20:45:18] Production.INFO: count ==1887 [2025-02-09 20:45:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:45:05 - End Time 2025-02-09 20:45:05 [2025-02-09 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439587', 'tblTempUsageDetail_20' ) start [2025-02-09 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439587', 'tblTempUsageDetail_20' ) end [2025-02-09 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439587', 'tblTempVendorCDR_20' ) start [2025-02-09 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439587', 'tblTempVendorCDR_20' ) end [2025-02-09 20:45:19] Production.INFO: ProcessCDR(1,14439587,1,1,2) [2025-02-09 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439587', 'tblTempUsageDetail_20' ) start [2025-02-09 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439587', 'tblTempUsageDetail_20' ) end [2025-02-09 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:45:22] Production.INFO: ==4083== Releasing lock... [2025-02-09 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:45:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:46:05 [end_date_ymd] => 2025-02-09 20:46:05 [RateCDR] => 1 ) [2025-02-09 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:46:05' and `end` < '2025-02-09 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:46:18] Production.INFO: count ==1887 [2025-02-09 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:46:05 - End Time 2025-02-09 20:46:05 [2025-02-09 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439592', 'tblTempUsageDetail_20' ) start [2025-02-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439592', 'tblTempUsageDetail_20' ) end [2025-02-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439592', 'tblTempVendorCDR_20' ) start [2025-02-09 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439592', 'tblTempVendorCDR_20' ) end [2025-02-09 20:46:18] Production.INFO: ProcessCDR(1,14439592,1,1,2) [2025-02-09 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439592', 'tblTempUsageDetail_20' ) start [2025-02-09 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439592', 'tblTempUsageDetail_20' ) end [2025-02-09 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:46:23] Production.INFO: ==4157== Releasing lock... [2025-02-09 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:46:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:47:05 [end_date_ymd] => 2025-02-09 20:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:47:05' and `end` < '2025-02-09 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-02-09 20:47:18] Production.INFO: count ==1883 [2025-02-09 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:47:05 - End Time 2025-02-09 20:47:05 [2025-02-09 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439597', 'tblTempUsageDetail_20' ) start [2025-02-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439597', 'tblTempUsageDetail_20' ) end [2025-02-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439597', 'tblTempVendorCDR_20' ) start [2025-02-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439597', 'tblTempVendorCDR_20' ) end [2025-02-09 20:47:18] Production.INFO: ProcessCDR(1,14439597,1,1,2) [2025-02-09 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439597', 'tblTempUsageDetail_20' ) start [2025-02-09 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439597', 'tblTempUsageDetail_20' ) end [2025-02-09 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:47:21] Production.INFO: ==4233== Releasing lock... [2025-02-09 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:47:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-09 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:48:05 [end_date_ymd] => 2025-02-09 20:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:48:05' and `end` < '2025-02-09 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-02-09 20:48:18] Production.INFO: count ==1872 [2025-02-09 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:48:05 - End Time 2025-02-09 20:48:05 [2025-02-09 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439602', 'tblTempUsageDetail_20' ) start [2025-02-09 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439602', 'tblTempUsageDetail_20' ) end [2025-02-09 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439602', 'tblTempVendorCDR_20' ) start [2025-02-09 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439602', 'tblTempVendorCDR_20' ) end [2025-02-09 20:48:19] Production.INFO: ProcessCDR(1,14439602,1,1,2) [2025-02-09 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439602', 'tblTempUsageDetail_20' ) start [2025-02-09 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439602', 'tblTempUsageDetail_20' ) end [2025-02-09 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:48:22] Production.INFO: ==4306== Releasing lock... [2025-02-09 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:48:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-09 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:49:05 [end_date_ymd] => 2025-02-09 20:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:49:05' and `end` < '2025-02-09 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-02-09 20:49:18] Production.INFO: count ==1872 [2025-02-09 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:49:05 - End Time 2025-02-09 20:49:05 [2025-02-09 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439607', 'tblTempUsageDetail_20' ) start [2025-02-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439607', 'tblTempUsageDetail_20' ) end [2025-02-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439607', 'tblTempVendorCDR_20' ) start [2025-02-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439607', 'tblTempVendorCDR_20' ) end [2025-02-09 20:49:18] Production.INFO: ProcessCDR(1,14439607,1,1,2) [2025-02-09 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439607', 'tblTempUsageDetail_20' ) start [2025-02-09 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439607', 'tblTempUsageDetail_20' ) end [2025-02-09 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:49:21] Production.INFO: ==4403== Releasing lock... [2025-02-09 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:49:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-09 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:50:06 [end_date_ymd] => 2025-02-09 20:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:50:06' and `end` < '2025-02-09 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:50:19] Production.INFO: count ==1865 [2025-02-09 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-09 17:50:06 - End Time 2025-02-09 20:50:06 [2025-02-09 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439613', 'tblTempUsageDetail_20' ) start [2025-02-09 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439613', 'tblTempUsageDetail_20' ) end [2025-02-09 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439613', 'tblTempVendorCDR_20' ) start [2025-02-09 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439613', 'tblTempVendorCDR_20' ) end [2025-02-09 20:50:20] Production.INFO: ProcessCDR(1,14439613,1,1,2) [2025-02-09 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439613', 'tblTempUsageDetail_20' ) start [2025-02-09 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439613', 'tblTempUsageDetail_20' ) end [2025-02-09 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:50:23] Production.INFO: ==4478== Releasing lock... [2025-02-09 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:50:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-09 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:51:05 [end_date_ymd] => 2025-02-09 20:51:05 [RateCDR] => 1 ) [2025-02-09 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:51:05' and `end` < '2025-02-09 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:51:18] Production.INFO: count ==1815 [2025-02-09 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:51:05 - End Time 2025-02-09 20:51:05 [2025-02-09 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439618', 'tblTempUsageDetail_20' ) start [2025-02-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439618', 'tblTempUsageDetail_20' ) end [2025-02-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439618', 'tblTempVendorCDR_20' ) start [2025-02-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439618', 'tblTempVendorCDR_20' ) end [2025-02-09 20:51:18] Production.INFO: ProcessCDR(1,14439618,1,1,2) [2025-02-09 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439618', 'tblTempUsageDetail_20' ) start [2025-02-09 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439618', 'tblTempUsageDetail_20' ) end [2025-02-09 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:51:23] Production.INFO: ==4558== Releasing lock... [2025-02-09 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-09 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:52:05 [end_date_ymd] => 2025-02-09 20:52:05 [RateCDR] => 1 ) [2025-02-09 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:52:05' and `end` < '2025-02-09 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:52:18] Production.INFO: count ==1807 [2025-02-09 20:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:52:05 - End Time 2025-02-09 20:52:05 [2025-02-09 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439623', 'tblTempUsageDetail_20' ) start [2025-02-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439623', 'tblTempUsageDetail_20' ) end [2025-02-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439623', 'tblTempVendorCDR_20' ) start [2025-02-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439623', 'tblTempVendorCDR_20' ) end [2025-02-09 20:52:19] Production.INFO: ProcessCDR(1,14439623,1,1,2) [2025-02-09 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439623', 'tblTempUsageDetail_20' ) start [2025-02-09 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439623', 'tblTempUsageDetail_20' ) end [2025-02-09 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:52:22] Production.INFO: ==4639== Releasing lock... [2025-02-09 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:52:22] Production.INFO: 41 MB #Memory Used# [2025-02-09 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:53:05 [end_date_ymd] => 2025-02-09 20:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:53:05' and `end` < '2025-02-09 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-02-09 20:53:19] Production.INFO: count ==1795 [2025-02-09 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:53:05 - End Time 2025-02-09 20:53:05 [2025-02-09 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439628', 'tblTempUsageDetail_20' ) start [2025-02-09 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439628', 'tblTempUsageDetail_20' ) end [2025-02-09 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439628', 'tblTempVendorCDR_20' ) start [2025-02-09 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439628', 'tblTempVendorCDR_20' ) end [2025-02-09 20:53:19] Production.INFO: ProcessCDR(1,14439628,1,1,2) [2025-02-09 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439628', 'tblTempUsageDetail_20' ) start [2025-02-09 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439628', 'tblTempUsageDetail_20' ) end [2025-02-09 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:53:22] Production.INFO: ==4713== Releasing lock... [2025-02-09 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:53:22] Production.INFO: 41 MB #Memory Used# [2025-02-09 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:54:05 [end_date_ymd] => 2025-02-09 20:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:54:05' and `end` < '2025-02-09 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-02-09 20:54:18] Production.INFO: count ==1775 [2025-02-09 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:54:05 - End Time 2025-02-09 20:54:05 [2025-02-09 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439633', 'tblTempUsageDetail_20' ) start [2025-02-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439633', 'tblTempUsageDetail_20' ) end [2025-02-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439633', 'tblTempVendorCDR_20' ) start [2025-02-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439633', 'tblTempVendorCDR_20' ) end [2025-02-09 20:54:18] Production.INFO: ProcessCDR(1,14439633,1,1,2) [2025-02-09 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439633', 'tblTempUsageDetail_20' ) start [2025-02-09 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439633', 'tblTempUsageDetail_20' ) end [2025-02-09 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:54:21] Production.INFO: ==4788== Releasing lock... [2025-02-09 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:54:21] Production.INFO: 41 MB #Memory Used# [2025-02-09 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:55:05 [end_date_ymd] => 2025-02-09 20:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:55:05' and `end` < '2025-02-09 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-02-09 20:55:18] Production.INFO: count ==1766 [2025-02-09 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:55:05 - End Time 2025-02-09 20:55:05 [2025-02-09 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439638', 'tblTempUsageDetail_20' ) start [2025-02-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439638', 'tblTempUsageDetail_20' ) end [2025-02-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439638', 'tblTempVendorCDR_20' ) start [2025-02-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439638', 'tblTempVendorCDR_20' ) end [2025-02-09 20:55:18] Production.INFO: ProcessCDR(1,14439638,1,1,2) [2025-02-09 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439638', 'tblTempUsageDetail_20' ) start [2025-02-09 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439638', 'tblTempUsageDetail_20' ) end [2025-02-09 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:55:21] Production.INFO: ==4862== Releasing lock... [2025-02-09 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:55:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:56:05 [end_date_ymd] => 2025-02-09 20:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:56:05' and `end` < '2025-02-09 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-02-09 20:56:19] Production.INFO: count ==1756 [2025-02-09 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-09 17:56:05 - End Time 2025-02-09 20:56:05 [2025-02-09 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439643', 'tblTempUsageDetail_20' ) start [2025-02-09 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439643', 'tblTempUsageDetail_20' ) end [2025-02-09 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439643', 'tblTempVendorCDR_20' ) start [2025-02-09 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439643', 'tblTempVendorCDR_20' ) end [2025-02-09 20:56:19] Production.INFO: ProcessCDR(1,14439643,1,1,2) [2025-02-09 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439643', 'tblTempUsageDetail_20' ) start [2025-02-09 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439643', 'tblTempUsageDetail_20' ) end [2025-02-09 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:56:22] Production.INFO: ==4936== Releasing lock... [2025-02-09 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:56:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:57:05 [end_date_ymd] => 2025-02-09 20:57:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:57:05' and `end` < '2025-02-09 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-02-09 20:57:18] Production.INFO: count ==1746 [2025-02-09 20:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:57:05 - End Time 2025-02-09 20:57:05 [2025-02-09 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439648', 'tblTempUsageDetail_20' ) start [2025-02-09 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439648', 'tblTempUsageDetail_20' ) end [2025-02-09 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439648', 'tblTempVendorCDR_20' ) start [2025-02-09 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439648', 'tblTempVendorCDR_20' ) end [2025-02-09 20:57:19] Production.INFO: ProcessCDR(1,14439648,1,1,2) [2025-02-09 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439648', 'tblTempUsageDetail_20' ) start [2025-02-09 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439648', 'tblTempUsageDetail_20' ) end [2025-02-09 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:57:23] Production.INFO: ==5047== Releasing lock... [2025-02-09 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:57:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:58:05 [end_date_ymd] => 2025-02-09 20:58:05 [RateCDR] => 1 ) [2025-02-09 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 17:58:05' and `end` < '2025-02-09 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 20:58:18] Production.INFO: count ==1741 [2025-02-09 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:58:05 - End Time 2025-02-09 20:58:05 [2025-02-09 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439653', 'tblTempUsageDetail_20' ) start [2025-02-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439653', 'tblTempUsageDetail_20' ) end [2025-02-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439653', 'tblTempVendorCDR_20' ) start [2025-02-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439653', 'tblTempVendorCDR_20' ) end [2025-02-09 20:58:18] Production.INFO: ProcessCDR(1,14439653,1,1,2) [2025-02-09 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439653', 'tblTempUsageDetail_20' ) start [2025-02-09 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439653', 'tblTempUsageDetail_20' ) end [2025-02-09 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:58:23] Production.INFO: ==5122== Releasing lock... [2025-02-09 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:58:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-09 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 17:59:05 [end_date_ymd] => 2025-02-09 20:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 17:59:05' and `end` < '2025-02-09 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-02-09 20:59:18] Production.INFO: count ==1730 [2025-02-09 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 17:59:05 - End Time 2025-02-09 20:59:05 [2025-02-09 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439658', 'tblTempUsageDetail_20' ) start [2025-02-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439658', 'tblTempUsageDetail_20' ) end [2025-02-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439658', 'tblTempVendorCDR_20' ) start [2025-02-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439658', 'tblTempVendorCDR_20' ) end [2025-02-09 20:59:18] Production.INFO: ProcessCDR(1,14439658,1,1,2) [2025-02-09 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439658', 'tblTempUsageDetail_20' ) start [2025-02-09 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439658', 'tblTempUsageDetail_20' ) end [2025-02-09 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 20:59:21] Production.INFO: ==5197== Releasing lock... [2025-02-09 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 20:59:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:00:06 [end_date_ymd] => 2025-02-09 21:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:00:06' and `end` < '2025-02-09 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-02-09 21:00:19] Production.INFO: count ==1721 [2025-02-09 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:00:06 - End Time 2025-02-09 21:00:06 [2025-02-09 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439663', 'tblTempUsageDetail_20' ) start [2025-02-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439663', 'tblTempUsageDetail_20' ) end [2025-02-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439663', 'tblTempVendorCDR_20' ) start [2025-02-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439663', 'tblTempVendorCDR_20' ) end [2025-02-09 21:00:19] Production.INFO: ProcessCDR(1,14439663,1,1,2) [2025-02-09 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439663', 'tblTempUsageDetail_20' ) start [2025-02-09 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439663', 'tblTempUsageDetail_20' ) end [2025-02-09 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:00:22] Production.INFO: ==5279== Releasing lock... [2025-02-09 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:00:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-09 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:01:05 [end_date_ymd] => 2025-02-09 21:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:01:05' and `end` < '2025-02-09 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-02-09 21:01:18] Production.INFO: count ==1646 [2025-02-09 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:01:05 - End Time 2025-02-09 21:01:05 [2025-02-09 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439669', 'tblTempUsageDetail_20' ) start [2025-02-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439669', 'tblTempUsageDetail_20' ) end [2025-02-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439669', 'tblTempVendorCDR_20' ) start [2025-02-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439669', 'tblTempVendorCDR_20' ) end [2025-02-09 21:01:18] Production.INFO: ProcessCDR(1,14439669,1,1,2) [2025-02-09 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439669', 'tblTempUsageDetail_20' ) start [2025-02-09 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439669', 'tblTempUsageDetail_20' ) end [2025-02-09 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:01:23] Production.INFO: ==5373== Releasing lock... [2025-02-09 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:01:23] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:02:05 [end_date_ymd] => 2025-02-09 21:02:05 [RateCDR] => 1 ) [2025-02-09 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:02:05' and `end` < '2025-02-09 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:02:18] Production.INFO: count ==1652 [2025-02-09 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:02:05 - End Time 2025-02-09 21:02:05 [2025-02-09 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439674', 'tblTempUsageDetail_20' ) start [2025-02-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439674', 'tblTempUsageDetail_20' ) end [2025-02-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439674', 'tblTempVendorCDR_20' ) start [2025-02-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439674', 'tblTempVendorCDR_20' ) end [2025-02-09 21:02:18] Production.INFO: ProcessCDR(1,14439674,1,1,2) [2025-02-09 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439674', 'tblTempUsageDetail_20' ) start [2025-02-09 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439674', 'tblTempUsageDetail_20' ) end [2025-02-09 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:02:22] Production.INFO: ==5447== Releasing lock... [2025-02-09 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:02:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:03:05 [end_date_ymd] => 2025-02-09 21:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:03:05' and `end` < '2025-02-09 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-02-09 21:03:18] Production.INFO: count ==1649 [2025-02-09 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:03:05 - End Time 2025-02-09 21:03:05 [2025-02-09 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439679', 'tblTempUsageDetail_20' ) start [2025-02-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439679', 'tblTempUsageDetail_20' ) end [2025-02-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439679', 'tblTempVendorCDR_20' ) start [2025-02-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439679', 'tblTempVendorCDR_20' ) end [2025-02-09 21:03:19] Production.INFO: ProcessCDR(1,14439679,1,1,2) [2025-02-09 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439679', 'tblTempUsageDetail_20' ) start [2025-02-09 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439679', 'tblTempUsageDetail_20' ) end [2025-02-09 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:03:23] Production.INFO: ==5519== Releasing lock... [2025-02-09 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:03:23] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:04:05 [end_date_ymd] => 2025-02-09 21:04:05 [RateCDR] => 1 ) [2025-02-09 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:04:05' and `end` < '2025-02-09 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:04:18] Production.INFO: count ==1649 [2025-02-09 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:04:05 - End Time 2025-02-09 21:04:05 [2025-02-09 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439684', 'tblTempUsageDetail_20' ) start [2025-02-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439684', 'tblTempUsageDetail_20' ) end [2025-02-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439684', 'tblTempVendorCDR_20' ) start [2025-02-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439684', 'tblTempVendorCDR_20' ) end [2025-02-09 21:04:18] Production.INFO: ProcessCDR(1,14439684,1,1,2) [2025-02-09 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439684', 'tblTempUsageDetail_20' ) start [2025-02-09 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439684', 'tblTempUsageDetail_20' ) end [2025-02-09 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:04:21] Production.INFO: ==5593== Releasing lock... [2025-02-09 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:04:21] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:05:05 [end_date_ymd] => 2025-02-09 21:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:05:05' and `end` < '2025-02-09 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-02-09 21:05:18] Production.INFO: count ==1648 [2025-02-09 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:05:05 - End Time 2025-02-09 21:05:05 [2025-02-09 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439689', 'tblTempUsageDetail_20' ) start [2025-02-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439689', 'tblTempUsageDetail_20' ) end [2025-02-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439689', 'tblTempVendorCDR_20' ) start [2025-02-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439689', 'tblTempVendorCDR_20' ) end [2025-02-09 21:05:18] Production.INFO: ProcessCDR(1,14439689,1,1,2) [2025-02-09 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439689', 'tblTempUsageDetail_20' ) start [2025-02-09 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439689', 'tblTempUsageDetail_20' ) end [2025-02-09 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:05:23] Production.INFO: ==5667== Releasing lock... [2025-02-09 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:05:23] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:06:05 [end_date_ymd] => 2025-02-09 21:06:05 [RateCDR] => 1 ) [2025-02-09 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:06:05' and `end` < '2025-02-09 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:06:18] Production.INFO: count ==1648 [2025-02-09 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:06:05 - End Time 2025-02-09 21:06:05 [2025-02-09 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439694', 'tblTempUsageDetail_20' ) start [2025-02-09 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439694', 'tblTempUsageDetail_20' ) end [2025-02-09 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439694', 'tblTempVendorCDR_20' ) start [2025-02-09 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439694', 'tblTempVendorCDR_20' ) end [2025-02-09 21:06:19] Production.INFO: ProcessCDR(1,14439694,1,1,2) [2025-02-09 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439694', 'tblTempUsageDetail_20' ) start [2025-02-09 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439694', 'tblTempUsageDetail_20' ) end [2025-02-09 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:06:22] Production.INFO: ==5741== Releasing lock... [2025-02-09 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:06:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:07:05 [end_date_ymd] => 2025-02-09 21:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:07:05' and `end` < '2025-02-09 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-02-09 21:07:18] Production.INFO: count ==1650 [2025-02-09 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:07:05 - End Time 2025-02-09 21:07:05 [2025-02-09 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439699', 'tblTempUsageDetail_20' ) start [2025-02-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439699', 'tblTempUsageDetail_20' ) end [2025-02-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439699', 'tblTempVendorCDR_20' ) start [2025-02-09 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439699', 'tblTempVendorCDR_20' ) end [2025-02-09 21:07:19] Production.INFO: ProcessCDR(1,14439699,1,1,2) [2025-02-09 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439699', 'tblTempUsageDetail_20' ) start [2025-02-09 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439699', 'tblTempUsageDetail_20' ) end [2025-02-09 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:07:22] Production.INFO: ==5814== Releasing lock... [2025-02-09 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:07:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:08:05 [end_date_ymd] => 2025-02-09 21:08:05 [RateCDR] => 1 ) [2025-02-09 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:08:05' and `end` < '2025-02-09 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:08:18] Production.INFO: count ==1648 [2025-02-09 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:08:05 - End Time 2025-02-09 21:08:05 [2025-02-09 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439704', 'tblTempUsageDetail_20' ) start [2025-02-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439704', 'tblTempUsageDetail_20' ) end [2025-02-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439704', 'tblTempVendorCDR_20' ) start [2025-02-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439704', 'tblTempVendorCDR_20' ) end [2025-02-09 21:08:18] Production.INFO: ProcessCDR(1,14439704,1,1,2) [2025-02-09 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439704', 'tblTempUsageDetail_20' ) start [2025-02-09 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439704', 'tblTempUsageDetail_20' ) end [2025-02-09 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:08:23] Production.INFO: ==5892== Releasing lock... [2025-02-09 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:08:23] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:09:06 [end_date_ymd] => 2025-02-09 21:09:06 [RateCDR] => 1 ) [2025-02-09 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:09:06' and `end` < '2025-02-09 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:09:19] Production.INFO: count ==1651 [2025-02-09 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:09:06 - End Time 2025-02-09 21:09:06 [2025-02-09 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439709', 'tblTempUsageDetail_20' ) start [2025-02-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439709', 'tblTempUsageDetail_20' ) end [2025-02-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439709', 'tblTempVendorCDR_20' ) start [2025-02-09 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439709', 'tblTempVendorCDR_20' ) end [2025-02-09 21:09:19] Production.INFO: ProcessCDR(1,14439709,1,1,2) [2025-02-09 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439709', 'tblTempUsageDetail_20' ) start [2025-02-09 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439709', 'tblTempUsageDetail_20' ) end [2025-02-09 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:09:22] Production.INFO: ==5965== Releasing lock... [2025-02-09 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:09:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:10:05 [end_date_ymd] => 2025-02-09 21:10:05 [RateCDR] => 1 ) [2025-02-09 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:10:05' and `end` < '2025-02-09 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:10:19] Production.INFO: count ==1648 [2025-02-09 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:10:05 - End Time 2025-02-09 21:10:05 [2025-02-09 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439715', 'tblTempUsageDetail_20' ) start [2025-02-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439715', 'tblTempUsageDetail_20' ) end [2025-02-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439715', 'tblTempVendorCDR_20' ) start [2025-02-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439715', 'tblTempVendorCDR_20' ) end [2025-02-09 21:10:19] Production.INFO: ProcessCDR(1,14439715,1,1,2) [2025-02-09 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439715', 'tblTempUsageDetail_20' ) start [2025-02-09 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439715', 'tblTempUsageDetail_20' ) end [2025-02-09 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:10:23] Production.INFO: ==6042== Releasing lock... [2025-02-09 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:10:23] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:11:05 [end_date_ymd] => 2025-02-09 21:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:11:05' and `end` < '2025-02-09 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:11:18] Production.INFO: count ==1615 [2025-02-09 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:11:05 - End Time 2025-02-09 21:11:05 [2025-02-09 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439720', 'tblTempUsageDetail_20' ) start [2025-02-09 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439720', 'tblTempUsageDetail_20' ) end [2025-02-09 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439720', 'tblTempVendorCDR_20' ) start [2025-02-09 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439720', 'tblTempVendorCDR_20' ) end [2025-02-09 21:11:19] Production.INFO: ProcessCDR(1,14439720,1,1,2) [2025-02-09 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439720', 'tblTempUsageDetail_20' ) start [2025-02-09 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439720', 'tblTempUsageDetail_20' ) end [2025-02-09 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:11:22] Production.INFO: ==6132== Releasing lock... [2025-02-09 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:11:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:12:05 [end_date_ymd] => 2025-02-09 21:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:12:05' and `end` < '2025-02-09 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-02-09 21:12:18] Production.INFO: count ==1617 [2025-02-09 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:12:05 - End Time 2025-02-09 21:12:05 [2025-02-09 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439725', 'tblTempUsageDetail_20' ) start [2025-02-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439725', 'tblTempUsageDetail_20' ) end [2025-02-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439725', 'tblTempVendorCDR_20' ) start [2025-02-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439725', 'tblTempVendorCDR_20' ) end [2025-02-09 21:12:18] Production.INFO: ProcessCDR(1,14439725,1,1,2) [2025-02-09 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439725', 'tblTempUsageDetail_20' ) start [2025-02-09 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439725', 'tblTempUsageDetail_20' ) end [2025-02-09 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:12:22] Production.INFO: ==6231== Releasing lock... [2025-02-09 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:12:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:13:05 [end_date_ymd] => 2025-02-09 21:13:05 [RateCDR] => 1 ) [2025-02-09 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:13:05' and `end` < '2025-02-09 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:13:18] Production.INFO: count ==1617 [2025-02-09 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:13:05 - End Time 2025-02-09 21:13:05 [2025-02-09 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439730', 'tblTempUsageDetail_20' ) start [2025-02-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439730', 'tblTempUsageDetail_20' ) end [2025-02-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439730', 'tblTempVendorCDR_20' ) start [2025-02-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439730', 'tblTempVendorCDR_20' ) end [2025-02-09 21:13:18] Production.INFO: ProcessCDR(1,14439730,1,1,2) [2025-02-09 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439730', 'tblTempUsageDetail_20' ) start [2025-02-09 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439730', 'tblTempUsageDetail_20' ) end [2025-02-09 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:13:22] Production.INFO: ==6356== Releasing lock... [2025-02-09 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:13:22] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:14:04 [end_date_ymd] => 2025-02-09 21:14:04 [RateCDR] => 1 ) [2025-02-09 21:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:14:04' and `end` < '2025-02-09 21:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:14:20] Production.INFO: count ==1621 [2025-02-09 21:14:20] Production.ERROR: pbx CDR StartTime 2025-02-09 18:14:04 - End Time 2025-02-09 21:14:04 [2025-02-09 21:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439735', 'tblTempUsageDetail_20' ) start [2025-02-09 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439735', 'tblTempUsageDetail_20' ) end [2025-02-09 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439735', 'tblTempVendorCDR_20' ) start [2025-02-09 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439735', 'tblTempVendorCDR_20' ) end [2025-02-09 21:14:20] Production.INFO: ProcessCDR(1,14439735,1,1,2) [2025-02-09 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439735', 'tblTempUsageDetail_20' ) start [2025-02-09 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439735', 'tblTempUsageDetail_20' ) end [2025-02-09 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:14:23] Production.INFO: ==6432== Releasing lock... [2025-02-09 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:14:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:15:05 [end_date_ymd] => 2025-02-09 21:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:15:05' and `end` < '2025-02-09 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-02-09 21:15:20] Production.INFO: count ==1616 [2025-02-09 21:15:20] Production.ERROR: pbx CDR StartTime 2025-02-09 18:15:05 - End Time 2025-02-09 21:15:05 [2025-02-09 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439740', 'tblTempUsageDetail_20' ) start [2025-02-09 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439740', 'tblTempUsageDetail_20' ) end [2025-02-09 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439740', 'tblTempVendorCDR_20' ) start [2025-02-09 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439740', 'tblTempVendorCDR_20' ) end [2025-02-09 21:15:20] Production.INFO: ProcessCDR(1,14439740,1,1,2) [2025-02-09 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439740', 'tblTempUsageDetail_20' ) start [2025-02-09 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439740', 'tblTempUsageDetail_20' ) end [2025-02-09 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:15:24] Production.INFO: ==6519== Releasing lock... [2025-02-09 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:15:24] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:16:04 [end_date_ymd] => 2025-02-09 21:16:04 [RateCDR] => 1 ) [2025-02-09 21:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:16:04' and `end` < '2025-02-09 21:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:16:19] Production.INFO: count ==1619 [2025-02-09 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:16:04 - End Time 2025-02-09 21:16:04 [2025-02-09 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439745', 'tblTempUsageDetail_20' ) start [2025-02-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439745', 'tblTempUsageDetail_20' ) end [2025-02-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439745', 'tblTempVendorCDR_20' ) start [2025-02-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439745', 'tblTempVendorCDR_20' ) end [2025-02-09 21:16:19] Production.INFO: ProcessCDR(1,14439745,1,1,2) [2025-02-09 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439745', 'tblTempUsageDetail_20' ) start [2025-02-09 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439745', 'tblTempUsageDetail_20' ) end [2025-02-09 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:16:22] Production.INFO: ==6602== Releasing lock... [2025-02-09 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:16:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:17:05 [end_date_ymd] => 2025-02-09 21:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:17:05' and `end` < '2025-02-09 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-02-09 21:17:18] Production.INFO: count ==1614 [2025-02-09 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:17:05 - End Time 2025-02-09 21:17:05 [2025-02-09 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439750', 'tblTempUsageDetail_20' ) start [2025-02-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439750', 'tblTempUsageDetail_20' ) end [2025-02-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439750', 'tblTempVendorCDR_20' ) start [2025-02-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439750', 'tblTempVendorCDR_20' ) end [2025-02-09 21:17:18] Production.INFO: ProcessCDR(1,14439750,1,1,2) [2025-02-09 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439750', 'tblTempUsageDetail_20' ) start [2025-02-09 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439750', 'tblTempUsageDetail_20' ) end [2025-02-09 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:17:21] Production.INFO: ==6682== Releasing lock... [2025-02-09 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:17:21] Production.INFO: 40 MB #Memory Used# [2025-02-09 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:18:05 [end_date_ymd] => 2025-02-09 21:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:18:05' and `end` < '2025-02-09 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-02-09 21:18:18] Production.INFO: count ==1620 [2025-02-09 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:18:05 - End Time 2025-02-09 21:18:05 [2025-02-09 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439755', 'tblTempUsageDetail_20' ) start [2025-02-09 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439755', 'tblTempUsageDetail_20' ) end [2025-02-09 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439755', 'tblTempVendorCDR_20' ) start [2025-02-09 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439755', 'tblTempVendorCDR_20' ) end [2025-02-09 21:18:19] Production.INFO: ProcessCDR(1,14439755,1,1,2) [2025-02-09 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439755', 'tblTempUsageDetail_20' ) start [2025-02-09 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439755', 'tblTempUsageDetail_20' ) end [2025-02-09 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:18:22] Production.INFO: ==6763== Releasing lock... [2025-02-09 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:18:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:19:05 [end_date_ymd] => 2025-02-09 21:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:19:05' and `end` < '2025-02-09 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-02-09 21:19:19] Production.INFO: count ==1618 [2025-02-09 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:19:05 - End Time 2025-02-09 21:19:05 [2025-02-09 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439760', 'tblTempUsageDetail_20' ) start [2025-02-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439760', 'tblTempUsageDetail_20' ) end [2025-02-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439760', 'tblTempVendorCDR_20' ) start [2025-02-09 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439760', 'tblTempVendorCDR_20' ) end [2025-02-09 21:19:19] Production.INFO: ProcessCDR(1,14439760,1,1,2) [2025-02-09 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439760', 'tblTempUsageDetail_20' ) start [2025-02-09 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439760', 'tblTempUsageDetail_20' ) end [2025-02-09 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:19:23] Production.INFO: ==6853== Releasing lock... [2025-02-09 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:19:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-09 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:20:06 [end_date_ymd] => 2025-02-09 21:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:20:06' and `end` < '2025-02-09 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-02-09 21:20:19] Production.INFO: count ==1617 [2025-02-09 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:20:06 - End Time 2025-02-09 21:20:06 [2025-02-09 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439765', 'tblTempUsageDetail_20' ) start [2025-02-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439765', 'tblTempUsageDetail_20' ) end [2025-02-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439765', 'tblTempVendorCDR_20' ) start [2025-02-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439765', 'tblTempVendorCDR_20' ) end [2025-02-09 21:20:19] Production.INFO: ProcessCDR(1,14439765,1,1,2) [2025-02-09 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439765', 'tblTempUsageDetail_20' ) start [2025-02-09 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439765', 'tblTempUsageDetail_20' ) end [2025-02-09 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:20:22] Production.INFO: ==6948== Releasing lock... [2025-02-09 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:20:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-09 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:21:04 [end_date_ymd] => 2025-02-09 21:21:04 [RateCDR] => 1 ) [2025-02-09 21: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-02-09 18:21:04' and `end` < '2025-02-09 21: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-02-09 21:21:17] Production.INFO: count ==1538 [2025-02-09 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:21:04 - End Time 2025-02-09 21:21:04 [2025-02-09 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439771', 'tblTempUsageDetail_20' ) start [2025-02-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439771', 'tblTempUsageDetail_20' ) end [2025-02-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439771', 'tblTempVendorCDR_20' ) start [2025-02-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439771', 'tblTempVendorCDR_20' ) end [2025-02-09 21:21:18] Production.INFO: ProcessCDR(1,14439771,1,1,2) [2025-02-09 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439771', 'tblTempUsageDetail_20' ) start [2025-02-09 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439771', 'tblTempUsageDetail_20' ) end [2025-02-09 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:21:22] Production.INFO: ==7036== Releasing lock... [2025-02-09 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:21:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:22:05 [end_date_ymd] => 2025-02-09 21:22:05 [RateCDR] => 1 ) [2025-02-09 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:22:05' and `end` < '2025-02-09 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:22:18] Production.INFO: count ==1534 [2025-02-09 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:22:05 - End Time 2025-02-09 21:22:05 [2025-02-09 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439776', 'tblTempUsageDetail_20' ) start [2025-02-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439776', 'tblTempUsageDetail_20' ) end [2025-02-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439776', 'tblTempVendorCDR_20' ) start [2025-02-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439776', 'tblTempVendorCDR_20' ) end [2025-02-09 21:22:19] Production.INFO: ProcessCDR(1,14439776,1,1,2) [2025-02-09 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439776', 'tblTempUsageDetail_20' ) start [2025-02-09 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439776', 'tblTempUsageDetail_20' ) end [2025-02-09 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:22:22] Production.INFO: ==7125== Releasing lock... [2025-02-09 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:22:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:23:04 [end_date_ymd] => 2025-02-09 21:23:04 [RateCDR] => 1 ) [2025-02-09 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:23:04' and `end` < '2025-02-09 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:23:17] Production.INFO: count ==1534 [2025-02-09 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:23:04 - End Time 2025-02-09 21:23:04 [2025-02-09 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439781', 'tblTempUsageDetail_20' ) start [2025-02-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439781', 'tblTempUsageDetail_20' ) end [2025-02-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439781', 'tblTempVendorCDR_20' ) start [2025-02-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439781', 'tblTempVendorCDR_20' ) end [2025-02-09 21:23:18] Production.INFO: ProcessCDR(1,14439781,1,1,2) [2025-02-09 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439781', 'tblTempUsageDetail_20' ) start [2025-02-09 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439781', 'tblTempUsageDetail_20' ) end [2025-02-09 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:23:21] Production.INFO: ==7219== Releasing lock... [2025-02-09 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:23:21] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:24:05 [end_date_ymd] => 2025-02-09 21:24:05 [RateCDR] => 1 ) [2025-02-09 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:24:05' and `end` < '2025-02-09 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:24:18] Production.INFO: count ==1535 [2025-02-09 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:24:05 - End Time 2025-02-09 21:24:05 [2025-02-09 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439786', 'tblTempUsageDetail_20' ) start [2025-02-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439786', 'tblTempUsageDetail_20' ) end [2025-02-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439786', 'tblTempVendorCDR_20' ) start [2025-02-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439786', 'tblTempVendorCDR_20' ) end [2025-02-09 21:24:19] Production.INFO: ProcessCDR(1,14439786,1,1,2) [2025-02-09 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439786', 'tblTempUsageDetail_20' ) start [2025-02-09 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439786', 'tblTempUsageDetail_20' ) end [2025-02-09 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:24:22] Production.INFO: ==7343== Releasing lock... [2025-02-09 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:24:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:25:04 [end_date_ymd] => 2025-02-09 21:25:04 [RateCDR] => 1 ) [2025-02-09 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:25:04' and `end` < '2025-02-09 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:25:17] Production.INFO: count ==1519 [2025-02-09 21:25:17] Production.ERROR: pbx CDR StartTime 2025-02-09 18:25:04 - End Time 2025-02-09 21:25:04 [2025-02-09 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439791', 'tblTempUsageDetail_20' ) start [2025-02-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439791', 'tblTempUsageDetail_20' ) end [2025-02-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439791', 'tblTempVendorCDR_20' ) start [2025-02-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439791', 'tblTempVendorCDR_20' ) end [2025-02-09 21:25:18] Production.INFO: ProcessCDR(1,14439791,1,1,2) [2025-02-09 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439791', 'tblTempUsageDetail_20' ) start [2025-02-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439791', 'tblTempUsageDetail_20' ) end [2025-02-09 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:25:21] Production.INFO: ==7489== Releasing lock... [2025-02-09 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:25:21] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:26:05 [end_date_ymd] => 2025-02-09 21:26:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:26:05' and `end` < '2025-02-09 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-02-09 21:26:19] Production.INFO: count ==1519 [2025-02-09 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:26:05 - End Time 2025-02-09 21:26:05 [2025-02-09 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439796', 'tblTempUsageDetail_20' ) start [2025-02-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439796', 'tblTempUsageDetail_20' ) end [2025-02-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439796', 'tblTempVendorCDR_20' ) start [2025-02-09 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439796', 'tblTempVendorCDR_20' ) end [2025-02-09 21:26:19] Production.INFO: ProcessCDR(1,14439796,1,1,2) [2025-02-09 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439796', 'tblTempUsageDetail_20' ) start [2025-02-09 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439796', 'tblTempUsageDetail_20' ) end [2025-02-09 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:26:24] Production.INFO: ==7588== Releasing lock... [2025-02-09 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:26:24] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:27:05 [end_date_ymd] => 2025-02-09 21:27:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:27:05' and `end` < '2025-02-09 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-02-09 21:27:18] Production.INFO: count ==1519 [2025-02-09 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:27:05 - End Time 2025-02-09 21:27:05 [2025-02-09 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439801', 'tblTempUsageDetail_20' ) start [2025-02-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439801', 'tblTempUsageDetail_20' ) end [2025-02-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439801', 'tblTempVendorCDR_20' ) start [2025-02-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439801', 'tblTempVendorCDR_20' ) end [2025-02-09 21:27:18] Production.INFO: ProcessCDR(1,14439801,1,1,2) [2025-02-09 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439801', 'tblTempUsageDetail_20' ) start [2025-02-09 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439801', 'tblTempUsageDetail_20' ) end [2025-02-09 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:27:21] Production.INFO: ==7723== Releasing lock... [2025-02-09 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:27:21] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:28:05 [end_date_ymd] => 2025-02-09 21:28:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:28:05' and `end` < '2025-02-09 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-02-09 21:28:18] Production.INFO: count ==1520 [2025-02-09 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:28:05 - End Time 2025-02-09 21:28:05 [2025-02-09 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439806', 'tblTempUsageDetail_20' ) start [2025-02-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439806', 'tblTempUsageDetail_20' ) end [2025-02-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439806', 'tblTempVendorCDR_20' ) start [2025-02-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439806', 'tblTempVendorCDR_20' ) end [2025-02-09 21:28:18] Production.INFO: ProcessCDR(1,14439806,1,1,2) [2025-02-09 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439806', 'tblTempUsageDetail_20' ) start [2025-02-09 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439806', 'tblTempUsageDetail_20' ) end [2025-02-09 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:28:23] Production.INFO: ==7837== Releasing lock... [2025-02-09 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:28:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:29:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:29:07 [end_date_ymd] => 2025-02-09 21:29:07 [RateCDR] => 1 ) [2025-02-09 21:29: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-02-09 18:29:07' and `end` < '2025-02-09 21:29: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-02-09 21:29:20] Production.INFO: count ==1519 [2025-02-09 21:29:20] Production.ERROR: pbx CDR StartTime 2025-02-09 18:29:07 - End Time 2025-02-09 21:29:07 [2025-02-09 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439811', 'tblTempUsageDetail_20' ) start [2025-02-09 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439811', 'tblTempUsageDetail_20' ) end [2025-02-09 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439811', 'tblTempVendorCDR_20' ) start [2025-02-09 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439811', 'tblTempVendorCDR_20' ) end [2025-02-09 21:29:20] Production.INFO: ProcessCDR(1,14439811,1,1,2) [2025-02-09 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439811', 'tblTempUsageDetail_20' ) start [2025-02-09 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439811', 'tblTempUsageDetail_20' ) end [2025-02-09 21:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:29:25] Production.INFO: ==7956== Releasing lock... [2025-02-09 21:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:29:25] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:30:06 [end_date_ymd] => 2025-02-09 21:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:30:06' and `end` < '2025-02-09 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-02-09 21:30:19] Production.INFO: count ==1519 [2025-02-09 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:30:06 - End Time 2025-02-09 21:30:06 [2025-02-09 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439817', 'tblTempUsageDetail_20' ) start [2025-02-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439817', 'tblTempUsageDetail_20' ) end [2025-02-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439817', 'tblTempVendorCDR_20' ) start [2025-02-09 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439817', 'tblTempVendorCDR_20' ) end [2025-02-09 21:30:19] Production.INFO: ProcessCDR(1,14439817,1,1,2) [2025-02-09 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439817', 'tblTempUsageDetail_20' ) start [2025-02-09 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439817', 'tblTempUsageDetail_20' ) end [2025-02-09 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:30:23] Production.INFO: ==8031== Releasing lock... [2025-02-09 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:30:23] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:31:05 [end_date_ymd] => 2025-02-09 21:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:31:05' and `end` < '2025-02-09 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-02-09 21:31:18] Production.INFO: count ==1485 [2025-02-09 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:31:05 - End Time 2025-02-09 21:31:05 [2025-02-09 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439822', 'tblTempUsageDetail_20' ) start [2025-02-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439822', 'tblTempUsageDetail_20' ) end [2025-02-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439822', 'tblTempVendorCDR_20' ) start [2025-02-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439822', 'tblTempVendorCDR_20' ) end [2025-02-09 21:31:18] Production.INFO: ProcessCDR(1,14439822,1,1,2) [2025-02-09 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439822', 'tblTempUsageDetail_20' ) start [2025-02-09 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439822', 'tblTempUsageDetail_20' ) end [2025-02-09 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:31:21] Production.INFO: ==8105== Releasing lock... [2025-02-09 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:31:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:32:05 [end_date_ymd] => 2025-02-09 21:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:32:05' and `end` < '2025-02-09 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-02-09 21:32:18] Production.INFO: count ==1484 [2025-02-09 21:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:32:05 - End Time 2025-02-09 21:32:05 [2025-02-09 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439827', 'tblTempUsageDetail_20' ) start [2025-02-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439827', 'tblTempUsageDetail_20' ) end [2025-02-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439827', 'tblTempVendorCDR_20' ) start [2025-02-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439827', 'tblTempVendorCDR_20' ) end [2025-02-09 21:32:18] Production.INFO: ProcessCDR(1,14439827,1,1,2) [2025-02-09 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439827', 'tblTempUsageDetail_20' ) start [2025-02-09 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439827', 'tblTempUsageDetail_20' ) end [2025-02-09 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:32:23] Production.INFO: ==8180== Releasing lock... [2025-02-09 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:32:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:33:05 [end_date_ymd] => 2025-02-09 21:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:33:05' and `end` < '2025-02-09 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-02-09 21:33:18] Production.INFO: count ==1487 [2025-02-09 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:33:05 - End Time 2025-02-09 21:33:05 [2025-02-09 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439832', 'tblTempUsageDetail_20' ) start [2025-02-09 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439832', 'tblTempUsageDetail_20' ) end [2025-02-09 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439832', 'tblTempVendorCDR_20' ) start [2025-02-09 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439832', 'tblTempVendorCDR_20' ) end [2025-02-09 21:33:19] Production.INFO: ProcessCDR(1,14439832,1,1,2) [2025-02-09 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439832', 'tblTempUsageDetail_20' ) start [2025-02-09 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439832', 'tblTempUsageDetail_20' ) end [2025-02-09 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:33:22] Production.INFO: ==8286== Releasing lock... [2025-02-09 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:33:22] Production.INFO: 39 MB #Memory Used# [2025-02-09 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:34:05 [end_date_ymd] => 2025-02-09 21:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:34:05' and `end` < '2025-02-09 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-02-09 21:34:18] Production.INFO: count ==1488 [2025-02-09 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:34:05 - End Time 2025-02-09 21:34:05 [2025-02-09 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439837', 'tblTempUsageDetail_20' ) start [2025-02-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439837', 'tblTempUsageDetail_20' ) end [2025-02-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439837', 'tblTempVendorCDR_20' ) start [2025-02-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439837', 'tblTempVendorCDR_20' ) end [2025-02-09 21:34:18] Production.INFO: ProcessCDR(1,14439837,1,1,2) [2025-02-09 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439837', 'tblTempUsageDetail_20' ) start [2025-02-09 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439837', 'tblTempUsageDetail_20' ) end [2025-02-09 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:34:22] Production.INFO: ==8360== Releasing lock... [2025-02-09 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:34:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:35:05 [end_date_ymd] => 2025-02-09 21:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:35:05' and `end` < '2025-02-09 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-02-09 21:35:18] Production.INFO: count ==1484 [2025-02-09 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:35:05 - End Time 2025-02-09 21:35:05 [2025-02-09 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439842', 'tblTempUsageDetail_20' ) start [2025-02-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439842', 'tblTempUsageDetail_20' ) end [2025-02-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439842', 'tblTempVendorCDR_20' ) start [2025-02-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439842', 'tblTempVendorCDR_20' ) end [2025-02-09 21:35:18] Production.INFO: ProcessCDR(1,14439842,1,1,2) [2025-02-09 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439842', 'tblTempUsageDetail_20' ) start [2025-02-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439842', 'tblTempUsageDetail_20' ) end [2025-02-09 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:35:21] Production.INFO: ==8435== Releasing lock... [2025-02-09 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:35:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:36:05 [end_date_ymd] => 2025-02-09 21:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:36:05' and `end` < '2025-02-09 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-02-09 21:36:18] Production.INFO: count ==1486 [2025-02-09 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:36:05 - End Time 2025-02-09 21:36:05 [2025-02-09 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439847', 'tblTempUsageDetail_20' ) start [2025-02-09 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439847', 'tblTempUsageDetail_20' ) end [2025-02-09 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439847', 'tblTempVendorCDR_20' ) start [2025-02-09 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439847', 'tblTempVendorCDR_20' ) end [2025-02-09 21:36:19] Production.INFO: ProcessCDR(1,14439847,1,1,2) [2025-02-09 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439847', 'tblTempUsageDetail_20' ) start [2025-02-09 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439847', 'tblTempUsageDetail_20' ) end [2025-02-09 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:36:22] Production.INFO: ==8512== Releasing lock... [2025-02-09 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:36:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:37:04 [end_date_ymd] => 2025-02-09 21:37:04 [RateCDR] => 1 ) [2025-02-09 21: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-02-09 18:37:04' and `end` < '2025-02-09 21: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-02-09 21:37:17] Production.INFO: count ==1487 [2025-02-09 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:37:04 - End Time 2025-02-09 21:37:04 [2025-02-09 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439852', 'tblTempUsageDetail_20' ) start [2025-02-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439852', 'tblTempUsageDetail_20' ) end [2025-02-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439852', 'tblTempVendorCDR_20' ) start [2025-02-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439852', 'tblTempVendorCDR_20' ) end [2025-02-09 21:37:18] Production.INFO: ProcessCDR(1,14439852,1,1,2) [2025-02-09 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439852', 'tblTempUsageDetail_20' ) start [2025-02-09 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439852', 'tblTempUsageDetail_20' ) end [2025-02-09 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:37:21] Production.INFO: ==8588== Releasing lock... [2025-02-09 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:37:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:38:05 [end_date_ymd] => 2025-02-09 21:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:38:05' and `end` < '2025-02-09 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-02-09 21:38:19] Production.INFO: count ==1485 [2025-02-09 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:38:05 - End Time 2025-02-09 21:38:05 [2025-02-09 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439857', 'tblTempUsageDetail_20' ) start [2025-02-09 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439857', 'tblTempUsageDetail_20' ) end [2025-02-09 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439857', 'tblTempVendorCDR_20' ) start [2025-02-09 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439857', 'tblTempVendorCDR_20' ) end [2025-02-09 21:38:19] Production.INFO: ProcessCDR(1,14439857,1,1,2) [2025-02-09 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439857', 'tblTempUsageDetail_20' ) start [2025-02-09 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439857', 'tblTempUsageDetail_20' ) end [2025-02-09 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:38:22] Production.INFO: ==8666== Releasing lock... [2025-02-09 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:38:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:39:05 [end_date_ymd] => 2025-02-09 21:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:39:05' and `end` < '2025-02-09 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-02-09 21:39:18] Production.INFO: count ==1481 [2025-02-09 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:39:05 - End Time 2025-02-09 21:39:05 [2025-02-09 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439862', 'tblTempUsageDetail_20' ) start [2025-02-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439862', 'tblTempUsageDetail_20' ) end [2025-02-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439862', 'tblTempVendorCDR_20' ) start [2025-02-09 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439862', 'tblTempVendorCDR_20' ) end [2025-02-09 21:39:19] Production.INFO: ProcessCDR(1,14439862,1,1,2) [2025-02-09 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439862', 'tblTempUsageDetail_20' ) start [2025-02-09 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439862', 'tblTempUsageDetail_20' ) end [2025-02-09 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:39:22] Production.INFO: ==8739== Releasing lock... [2025-02-09 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:40:06 [end_date_ymd] => 2025-02-09 21:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:40:06' and `end` < '2025-02-09 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-02-09 21:40:19] Production.INFO: count ==1478 [2025-02-09 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:40:06 - End Time 2025-02-09 21:40:06 [2025-02-09 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439868', 'tblTempUsageDetail_20' ) start [2025-02-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439868', 'tblTempUsageDetail_20' ) end [2025-02-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439868', 'tblTempVendorCDR_20' ) start [2025-02-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439868', 'tblTempVendorCDR_20' ) end [2025-02-09 21:40:19] Production.INFO: ProcessCDR(1,14439868,1,1,2) [2025-02-09 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439868', 'tblTempUsageDetail_20' ) start [2025-02-09 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439868', 'tblTempUsageDetail_20' ) end [2025-02-09 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:40:22] Production.INFO: ==8814== Releasing lock... [2025-02-09 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:40:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-09 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:41:05 [end_date_ymd] => 2025-02-09 21:41:05 [RateCDR] => 1 ) [2025-02-09 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:41:05' and `end` < '2025-02-09 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:41:19] Production.INFO: count ==1425 [2025-02-09 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:41:05 - End Time 2025-02-09 21:41:05 [2025-02-09 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439873', 'tblTempUsageDetail_20' ) start [2025-02-09 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439873', 'tblTempUsageDetail_20' ) end [2025-02-09 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439873', 'tblTempVendorCDR_20' ) start [2025-02-09 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439873', 'tblTempVendorCDR_20' ) end [2025-02-09 21:41:19] Production.INFO: ProcessCDR(1,14439873,1,1,2) [2025-02-09 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439873', 'tblTempUsageDetail_20' ) start [2025-02-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439873', 'tblTempUsageDetail_20' ) end [2025-02-09 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:41:22] Production.INFO: ==8926== Releasing lock... [2025-02-09 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:41:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:42:05 [end_date_ymd] => 2025-02-09 21:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:42:05' and `end` < '2025-02-09 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-02-09 21:42:18] Production.INFO: count ==1424 [2025-02-09 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:42:05 - End Time 2025-02-09 21:42:05 [2025-02-09 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439878', 'tblTempUsageDetail_20' ) start [2025-02-09 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439878', 'tblTempUsageDetail_20' ) end [2025-02-09 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439878', 'tblTempVendorCDR_20' ) start [2025-02-09 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439878', 'tblTempVendorCDR_20' ) end [2025-02-09 21:42:19] Production.INFO: ProcessCDR(1,14439878,1,1,2) [2025-02-09 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439878', 'tblTempUsageDetail_20' ) start [2025-02-09 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439878', 'tblTempUsageDetail_20' ) end [2025-02-09 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:42:22] Production.INFO: ==8999== Releasing lock... [2025-02-09 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:42:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:43:05 [end_date_ymd] => 2025-02-09 21:43:05 [RateCDR] => 1 ) [2025-02-09 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:43:05' and `end` < '2025-02-09 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:43:19] Production.INFO: count ==1422 [2025-02-09 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:43:05 - End Time 2025-02-09 21:43:05 [2025-02-09 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439883', 'tblTempUsageDetail_20' ) start [2025-02-09 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439883', 'tblTempUsageDetail_20' ) end [2025-02-09 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439883', 'tblTempVendorCDR_20' ) start [2025-02-09 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439883', 'tblTempVendorCDR_20' ) end [2025-02-09 21:43:19] Production.INFO: ProcessCDR(1,14439883,1,1,2) [2025-02-09 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439883', 'tblTempUsageDetail_20' ) start [2025-02-09 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439883', 'tblTempUsageDetail_20' ) end [2025-02-09 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:43:22] Production.INFO: ==9081== Releasing lock... [2025-02-09 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:43:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:44:05 [end_date_ymd] => 2025-02-09 21:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:44:05' and `end` < '2025-02-09 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-02-09 21:44:18] Production.INFO: count ==1418 [2025-02-09 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:44:05 - End Time 2025-02-09 21:44:05 [2025-02-09 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439888', 'tblTempUsageDetail_20' ) start [2025-02-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439888', 'tblTempUsageDetail_20' ) end [2025-02-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439888', 'tblTempVendorCDR_20' ) start [2025-02-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439888', 'tblTempVendorCDR_20' ) end [2025-02-09 21:44:18] Production.INFO: ProcessCDR(1,14439888,1,1,2) [2025-02-09 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439888', 'tblTempUsageDetail_20' ) start [2025-02-09 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439888', 'tblTempUsageDetail_20' ) end [2025-02-09 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:44:22] Production.INFO: ==9193== Releasing lock... [2025-02-09 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:44:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-09 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:45:05 [end_date_ymd] => 2025-02-09 21:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:45:05' and `end` < '2025-02-09 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-02-09 21:45:18] Production.INFO: count ==1411 [2025-02-09 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:45:05 - End Time 2025-02-09 21:45:05 [2025-02-09 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439893', 'tblTempUsageDetail_20' ) start [2025-02-09 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439893', 'tblTempUsageDetail_20' ) end [2025-02-09 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439893', 'tblTempVendorCDR_20' ) start [2025-02-09 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439893', 'tblTempVendorCDR_20' ) end [2025-02-09 21:45:18] Production.INFO: ProcessCDR(1,14439893,1,1,2) [2025-02-09 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439893', 'tblTempUsageDetail_20' ) start [2025-02-09 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439893', 'tblTempUsageDetail_20' ) end [2025-02-09 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:45:21] Production.INFO: ==9266== Releasing lock... [2025-02-09 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-09 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:46:05 [end_date_ymd] => 2025-02-09 21:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:46:05' and `end` < '2025-02-09 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-02-09 21:46:18] Production.INFO: count ==1402 [2025-02-09 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:46:05 - End Time 2025-02-09 21:46:05 [2025-02-09 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439898', 'tblTempUsageDetail_20' ) start [2025-02-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439898', 'tblTempUsageDetail_20' ) end [2025-02-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439898', 'tblTempVendorCDR_20' ) start [2025-02-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439898', 'tblTempVendorCDR_20' ) end [2025-02-09 21:46:19] Production.INFO: ProcessCDR(1,14439898,1,1,2) [2025-02-09 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439898', 'tblTempUsageDetail_20' ) start [2025-02-09 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439898', 'tblTempUsageDetail_20' ) end [2025-02-09 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:46:22] Production.INFO: ==9339== Releasing lock... [2025-02-09 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:46:22] Production.INFO: 38 MB #Memory Used# [2025-02-09 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:47:05 [end_date_ymd] => 2025-02-09 21:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:47:05' and `end` < '2025-02-09 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-02-09 21:47:18] Production.INFO: count ==1396 [2025-02-09 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:47:05 - End Time 2025-02-09 21:47:05 [2025-02-09 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439903', 'tblTempUsageDetail_20' ) start [2025-02-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439903', 'tblTempUsageDetail_20' ) end [2025-02-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439903', 'tblTempVendorCDR_20' ) start [2025-02-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439903', 'tblTempVendorCDR_20' ) end [2025-02-09 21:47:18] Production.INFO: ProcessCDR(1,14439903,1,1,2) [2025-02-09 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439903', 'tblTempUsageDetail_20' ) start [2025-02-09 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439903', 'tblTempUsageDetail_20' ) end [2025-02-09 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:47:22] Production.INFO: ==9417== Releasing lock... [2025-02-09 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:47:22] Production.INFO: 38 MB #Memory Used# [2025-02-09 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:48:06 [end_date_ymd] => 2025-02-09 21:48:06 [RateCDR] => 1 ) [2025-02-09 21: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-02-09 18:48:06' and `end` < '2025-02-09 21: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-02-09 21:48:19] Production.INFO: count ==1397 [2025-02-09 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:48:06 - End Time 2025-02-09 21:48:06 [2025-02-09 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439908', 'tblTempUsageDetail_20' ) start [2025-02-09 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439908', 'tblTempUsageDetail_20' ) end [2025-02-09 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439908', 'tblTempVendorCDR_20' ) start [2025-02-09 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439908', 'tblTempVendorCDR_20' ) end [2025-02-09 21:48:19] Production.INFO: ProcessCDR(1,14439908,1,1,2) [2025-02-09 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439908', 'tblTempUsageDetail_20' ) start [2025-02-09 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439908', 'tblTempUsageDetail_20' ) end [2025-02-09 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:48:24] Production.INFO: ==9495== Releasing lock... [2025-02-09 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:48:24] Production.INFO: 38 MB #Memory Used# [2025-02-09 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:49:05 [end_date_ymd] => 2025-02-09 21:49:05 [RateCDR] => 1 ) [2025-02-09 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:49:05' and `end` < '2025-02-09 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:49:18] Production.INFO: count ==1392 [2025-02-09 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:49:05 - End Time 2025-02-09 21:49:05 [2025-02-09 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439913', 'tblTempUsageDetail_20' ) start [2025-02-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439913', 'tblTempUsageDetail_20' ) end [2025-02-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439913', 'tblTempVendorCDR_20' ) start [2025-02-09 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439913', 'tblTempVendorCDR_20' ) end [2025-02-09 21:49:18] Production.INFO: ProcessCDR(1,14439913,1,1,2) [2025-02-09 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439913', 'tblTempUsageDetail_20' ) start [2025-02-09 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439913', 'tblTempUsageDetail_20' ) end [2025-02-09 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:49:21] Production.INFO: ==9568== Releasing lock... [2025-02-09 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:49:21] Production.INFO: 38 MB #Memory Used# [2025-02-09 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:50:06 [end_date_ymd] => 2025-02-09 21:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:50:06' and `end` < '2025-02-09 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-02-09 21:50:19] Production.INFO: count ==1390 [2025-02-09 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:50:06 - End Time 2025-02-09 21:50:06 [2025-02-09 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439918', 'tblTempUsageDetail_20' ) start [2025-02-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439918', 'tblTempUsageDetail_20' ) end [2025-02-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439918', 'tblTempVendorCDR_20' ) start [2025-02-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439918', 'tblTempVendorCDR_20' ) end [2025-02-09 21:50:19] Production.INFO: ProcessCDR(1,14439918,1,1,2) [2025-02-09 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439918', 'tblTempUsageDetail_20' ) start [2025-02-09 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439918', 'tblTempUsageDetail_20' ) end [2025-02-09 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:50:22] Production.INFO: ==9645== Releasing lock... [2025-02-09 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:50:22] Production.INFO: 38 MB #Memory Used# [2025-02-09 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:51:04 [end_date_ymd] => 2025-02-09 21:51:04 [RateCDR] => 1 ) [2025-02-09 21: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-02-09 18:51:04' and `end` < '2025-02-09 21: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-02-09 21:51:19] Production.INFO: count ==1351 [2025-02-09 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:51:04 - End Time 2025-02-09 21:51:04 [2025-02-09 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439924', 'tblTempUsageDetail_20' ) start [2025-02-09 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439924', 'tblTempUsageDetail_20' ) end [2025-02-09 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439924', 'tblTempVendorCDR_20' ) start [2025-02-09 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439924', 'tblTempVendorCDR_20' ) end [2025-02-09 21:51:19] Production.INFO: ProcessCDR(1,14439924,1,1,2) [2025-02-09 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439924', 'tblTempUsageDetail_20' ) start [2025-02-09 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439924', 'tblTempUsageDetail_20' ) end [2025-02-09 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:51:22] Production.INFO: ==9722== Releasing lock... [2025-02-09 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:52:06 [end_date_ymd] => 2025-02-09 21:52:06 [RateCDR] => 1 ) [2025-02-09 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:52:06' and `end` < '2025-02-09 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:52:19] Production.INFO: count ==1348 [2025-02-09 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:52:06 - End Time 2025-02-09 21:52:06 [2025-02-09 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439929', 'tblTempUsageDetail_20' ) start [2025-02-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439929', 'tblTempUsageDetail_20' ) end [2025-02-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439929', 'tblTempVendorCDR_20' ) start [2025-02-09 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439929', 'tblTempVendorCDR_20' ) end [2025-02-09 21:52:19] Production.INFO: ProcessCDR(1,14439929,1,1,2) [2025-02-09 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439929', 'tblTempUsageDetail_20' ) start [2025-02-09 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439929', 'tblTempUsageDetail_20' ) end [2025-02-09 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:52:23] Production.INFO: ==9797== Releasing lock... [2025-02-09 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:52:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:53:05 [end_date_ymd] => 2025-02-09 21:53:05 [RateCDR] => 1 ) [2025-02-09 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:53:05' and `end` < '2025-02-09 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:53:18] Production.INFO: count ==1343 [2025-02-09 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:53:05 - End Time 2025-02-09 21:53:05 [2025-02-09 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439934', 'tblTempUsageDetail_20' ) start [2025-02-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439934', 'tblTempUsageDetail_20' ) end [2025-02-09 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439934', 'tblTempVendorCDR_20' ) start [2025-02-09 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439934', 'tblTempVendorCDR_20' ) end [2025-02-09 21:53:19] Production.INFO: ProcessCDR(1,14439934,1,1,2) [2025-02-09 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439934', 'tblTempUsageDetail_20' ) start [2025-02-09 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439934', 'tblTempUsageDetail_20' ) end [2025-02-09 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:53:22] Production.INFO: ==9873== Releasing lock... [2025-02-09 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:53:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:54:05 [end_date_ymd] => 2025-02-09 21:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:54:05' and `end` < '2025-02-09 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-02-09 21:54:19] Production.INFO: count ==1345 [2025-02-09 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-09 18:54:05 - End Time 2025-02-09 21:54:05 [2025-02-09 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439939', 'tblTempUsageDetail_20' ) start [2025-02-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439939', 'tblTempUsageDetail_20' ) end [2025-02-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439939', 'tblTempVendorCDR_20' ) start [2025-02-09 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439939', 'tblTempVendorCDR_20' ) end [2025-02-09 21:54:19] Production.INFO: ProcessCDR(1,14439939,1,1,2) [2025-02-09 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439939', 'tblTempUsageDetail_20' ) start [2025-02-09 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439939', 'tblTempUsageDetail_20' ) end [2025-02-09 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:54:23] Production.INFO: ==9951== Releasing lock... [2025-02-09 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:54:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:55:05 [end_date_ymd] => 2025-02-09 21:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:55:05' and `end` < '2025-02-09 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:55:18] Production.INFO: count ==1340 [2025-02-09 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:55:05 - End Time 2025-02-09 21:55:05 [2025-02-09 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439944', 'tblTempUsageDetail_20' ) start [2025-02-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439944', 'tblTempUsageDetail_20' ) end [2025-02-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439944', 'tblTempVendorCDR_20' ) start [2025-02-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439944', 'tblTempVendorCDR_20' ) end [2025-02-09 21:55:18] Production.INFO: ProcessCDR(1,14439944,1,1,2) [2025-02-09 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439944', 'tblTempUsageDetail_20' ) start [2025-02-09 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439944', 'tblTempUsageDetail_20' ) end [2025-02-09 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:55:21] Production.INFO: ==10022== Releasing lock... [2025-02-09 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:56:05 [end_date_ymd] => 2025-02-09 21:56:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:56:05' and `end` < '2025-02-09 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-02-09 21:56:18] Production.INFO: count ==1340 [2025-02-09 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:56:05 - End Time 2025-02-09 21:56:05 [2025-02-09 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439949', 'tblTempUsageDetail_20' ) start [2025-02-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439949', 'tblTempUsageDetail_20' ) end [2025-02-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439949', 'tblTempVendorCDR_20' ) start [2025-02-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439949', 'tblTempVendorCDR_20' ) end [2025-02-09 21:56:18] Production.INFO: ProcessCDR(1,14439949,1,1,2) [2025-02-09 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439949', 'tblTempUsageDetail_20' ) start [2025-02-09 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439949', 'tblTempUsageDetail_20' ) end [2025-02-09 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:56:21] Production.INFO: ==10100== Releasing lock... [2025-02-09 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:56:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-09 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:57:04 [end_date_ymd] => 2025-02-09 21:57:04 [RateCDR] => 1 ) [2025-02-09 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 18:57:04' and `end` < '2025-02-09 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 21:57:18] Production.INFO: count ==1335 [2025-02-09 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:57:04 - End Time 2025-02-09 21:57:04 [2025-02-09 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439954', 'tblTempUsageDetail_20' ) start [2025-02-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439954', 'tblTempUsageDetail_20' ) end [2025-02-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439954', 'tblTempVendorCDR_20' ) start [2025-02-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439954', 'tblTempVendorCDR_20' ) end [2025-02-09 21:57:18] Production.INFO: ProcessCDR(1,14439954,1,1,2) [2025-02-09 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439954', 'tblTempUsageDetail_20' ) start [2025-02-09 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439954', 'tblTempUsageDetail_20' ) end [2025-02-09 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:57:22] Production.INFO: ==10181== Releasing lock... [2025-02-09 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:58:05 [end_date_ymd] => 2025-02-09 21:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 18:58:05' and `end` < '2025-02-09 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-02-09 21:58:18] Production.INFO: count ==1326 [2025-02-09 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 18:58:05 - End Time 2025-02-09 21:58:05 [2025-02-09 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439959', 'tblTempUsageDetail_20' ) start [2025-02-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439959', 'tblTempUsageDetail_20' ) end [2025-02-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439959', 'tblTempVendorCDR_20' ) start [2025-02-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439959', 'tblTempVendorCDR_20' ) end [2025-02-09 21:58:18] Production.INFO: ProcessCDR(1,14439959,1,1,2) [2025-02-09 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439959', 'tblTempUsageDetail_20' ) start [2025-02-09 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439959', 'tblTempUsageDetail_20' ) end [2025-02-09 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:58:21] Production.INFO: ==10263== Releasing lock... [2025-02-09 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:58:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 18:59:06 [end_date_ymd] => 2025-02-09 21:59:06 [RateCDR] => 1 ) [2025-02-09 21: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-02-09 18:59:06' and `end` < '2025-02-09 21: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-02-09 21:59:19] Production.INFO: count ==1325 [2025-02-09 21:59:20] Production.ERROR: pbx CDR StartTime 2025-02-09 18:59:06 - End Time 2025-02-09 21:59:06 [2025-02-09 21:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439964', 'tblTempUsageDetail_20' ) start [2025-02-09 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439964', 'tblTempUsageDetail_20' ) end [2025-02-09 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439964', 'tblTempVendorCDR_20' ) start [2025-02-09 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439964', 'tblTempVendorCDR_20' ) end [2025-02-09 21:59:20] Production.INFO: ProcessCDR(1,14439964,1,1,2) [2025-02-09 21:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439964', 'tblTempUsageDetail_20' ) start [2025-02-09 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439964', 'tblTempUsageDetail_20' ) end [2025-02-09 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 21:59:23] Production.INFO: ==10383== Releasing lock... [2025-02-09 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 21:59:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:00:06 [end_date_ymd] => 2025-02-09 22:00:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:00:06' and `end` < '2025-02-09 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-02-09 22:00:19] Production.INFO: count ==1326 [2025-02-09 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:00:06 - End Time 2025-02-09 22:00:06 [2025-02-09 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439970', 'tblTempUsageDetail_20' ) start [2025-02-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439970', 'tblTempUsageDetail_20' ) end [2025-02-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439970', 'tblTempVendorCDR_20' ) start [2025-02-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439970', 'tblTempVendorCDR_20' ) end [2025-02-09 22:00:19] Production.INFO: ProcessCDR(1,14439970,1,1,2) [2025-02-09 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439970', 'tblTempUsageDetail_20' ) start [2025-02-09 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439970', 'tblTempUsageDetail_20' ) end [2025-02-09 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:00:23] Production.INFO: ==10465== Releasing lock... [2025-02-09 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:00:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-09 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:01:05 [end_date_ymd] => 2025-02-09 22:01:05 [RateCDR] => 1 ) [2025-02-09 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:01:05' and `end` < '2025-02-09 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:01:19] Production.INFO: count ==1280 [2025-02-09 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:01:05 - End Time 2025-02-09 22:01:05 [2025-02-09 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439975', 'tblTempUsageDetail_20' ) start [2025-02-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439975', 'tblTempUsageDetail_20' ) end [2025-02-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439975', 'tblTempVendorCDR_20' ) start [2025-02-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439975', 'tblTempVendorCDR_20' ) end [2025-02-09 22:01:19] Production.INFO: ProcessCDR(1,14439975,1,1,2) [2025-02-09 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439975', 'tblTempUsageDetail_20' ) start [2025-02-09 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439975', 'tblTempUsageDetail_20' ) end [2025-02-09 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:01:22] Production.INFO: ==10564== Releasing lock... [2025-02-09 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:01:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:02:04 [end_date_ymd] => 2025-02-09 22:02:04 [RateCDR] => 1 ) [2025-02-09 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:02:04' and `end` < '2025-02-09 22:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:02:17] Production.INFO: count ==1276 [2025-02-09 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:02:04 - End Time 2025-02-09 22:02:04 [2025-02-09 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439980', 'tblTempUsageDetail_20' ) start [2025-02-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439980', 'tblTempUsageDetail_20' ) end [2025-02-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439980', 'tblTempVendorCDR_20' ) start [2025-02-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439980', 'tblTempVendorCDR_20' ) end [2025-02-09 22:02:18] Production.INFO: ProcessCDR(1,14439980,1,1,2) [2025-02-09 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439980', 'tblTempUsageDetail_20' ) start [2025-02-09 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439980', 'tblTempUsageDetail_20' ) end [2025-02-09 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:02:21] Production.INFO: ==10640== Releasing lock... [2025-02-09 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:02:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-09 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:03:05 [end_date_ymd] => 2025-02-09 22:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:03:05' and `end` < '2025-02-09 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-02-09 22:03:19] Production.INFO: count ==1272 [2025-02-09 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:03:05 - End Time 2025-02-09 22:03:05 [2025-02-09 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439985', 'tblTempUsageDetail_20' ) start [2025-02-09 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439985', 'tblTempUsageDetail_20' ) end [2025-02-09 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439985', 'tblTempVendorCDR_20' ) start [2025-02-09 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439985', 'tblTempVendorCDR_20' ) end [2025-02-09 22:03:19] Production.INFO: ProcessCDR(1,14439985,1,1,2) [2025-02-09 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439985', 'tblTempUsageDetail_20' ) start [2025-02-09 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439985', 'tblTempUsageDetail_20' ) end [2025-02-09 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:03:22] Production.INFO: ==10714== Releasing lock... [2025-02-09 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:03:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:04:05 [end_date_ymd] => 2025-02-09 22:04:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:04:05' and `end` < '2025-02-09 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-02-09 22:04:18] Production.INFO: count ==1270 [2025-02-09 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:04:05 - End Time 2025-02-09 22:04:05 [2025-02-09 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439990', 'tblTempUsageDetail_20' ) start [2025-02-09 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439990', 'tblTempUsageDetail_20' ) end [2025-02-09 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439990', 'tblTempVendorCDR_20' ) start [2025-02-09 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439990', 'tblTempVendorCDR_20' ) end [2025-02-09 22:04:18] Production.INFO: ProcessCDR(1,14439990,1,1,2) [2025-02-09 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439990', 'tblTempUsageDetail_20' ) start [2025-02-09 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439990', 'tblTempUsageDetail_20' ) end [2025-02-09 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:04:21] Production.INFO: ==10794== Releasing lock... [2025-02-09 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:04:21] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:05:05 [end_date_ymd] => 2025-02-09 22:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:05:05' and `end` < '2025-02-09 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-02-09 22:05:18] Production.INFO: count ==1263 [2025-02-09 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:05:05 - End Time 2025-02-09 22:05:05 [2025-02-09 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439995', 'tblTempUsageDetail_20' ) start [2025-02-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14439995', 'tblTempUsageDetail_20' ) end [2025-02-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439995', 'tblTempVendorCDR_20' ) start [2025-02-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14439995', 'tblTempVendorCDR_20' ) end [2025-02-09 22:05:18] Production.INFO: ProcessCDR(1,14439995,1,1,2) [2025-02-09 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14439995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14439995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14439995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14439995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439995', 'tblTempUsageDetail_20' ) start [2025-02-09 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14439995', 'tblTempUsageDetail_20' ) end [2025-02-09 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:05:22] Production.INFO: ==10875== Releasing lock... [2025-02-09 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:05:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:06:05 [end_date_ymd] => 2025-02-09 22:06:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:06:05' and `end` < '2025-02-09 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-02-09 22:06:18] Production.INFO: count ==1260 [2025-02-09 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:06:05 - End Time 2025-02-09 22:06:05 [2025-02-09 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440000', 'tblTempUsageDetail_20' ) start [2025-02-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440000', 'tblTempUsageDetail_20' ) end [2025-02-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440000', 'tblTempVendorCDR_20' ) start [2025-02-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440000', 'tblTempVendorCDR_20' ) end [2025-02-09 22:06:18] Production.INFO: ProcessCDR(1,14440000,1,1,2) [2025-02-09 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440000', 'tblTempUsageDetail_20' ) start [2025-02-09 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440000', 'tblTempUsageDetail_20' ) end [2025-02-09 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:06:22] Production.INFO: ==10951== Releasing lock... [2025-02-09 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:06:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:07:05 [end_date_ymd] => 2025-02-09 22:07:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:07:05' and `end` < '2025-02-09 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-02-09 22:07:18] Production.INFO: count ==1252 [2025-02-09 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:07:05 - End Time 2025-02-09 22:07:05 [2025-02-09 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440005', 'tblTempUsageDetail_20' ) start [2025-02-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440005', 'tblTempUsageDetail_20' ) end [2025-02-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440005', 'tblTempVendorCDR_20' ) start [2025-02-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440005', 'tblTempVendorCDR_20' ) end [2025-02-09 22:07:18] Production.INFO: ProcessCDR(1,14440005,1,1,2) [2025-02-09 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440005', 'tblTempUsageDetail_20' ) start [2025-02-09 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440005', 'tblTempUsageDetail_20' ) end [2025-02-09 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:07:21] Production.INFO: ==11030== Releasing lock... [2025-02-09 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:07:21] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:08:06 [end_date_ymd] => 2025-02-09 22:08:06 [RateCDR] => 1 ) [2025-02-09 22: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-02-09 19:08:06' and `end` < '2025-02-09 22: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-02-09 22:08:19] Production.INFO: count ==1253 [2025-02-09 22:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:08:06 - End Time 2025-02-09 22:08:06 [2025-02-09 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440010', 'tblTempUsageDetail_20' ) start [2025-02-09 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440010', 'tblTempUsageDetail_20' ) end [2025-02-09 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440010', 'tblTempVendorCDR_20' ) start [2025-02-09 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440010', 'tblTempVendorCDR_20' ) end [2025-02-09 22:08:19] Production.INFO: ProcessCDR(1,14440010,1,1,2) [2025-02-09 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440010', 'tblTempUsageDetail_20' ) start [2025-02-09 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440010', 'tblTempUsageDetail_20' ) end [2025-02-09 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:08:22] Production.INFO: ==11108== Releasing lock... [2025-02-09 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:08:22] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:09:05 [end_date_ymd] => 2025-02-09 22:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:09:05' and `end` < '2025-02-09 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-02-09 22:09:18] Production.INFO: count ==1247 [2025-02-09 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:09:05 - End Time 2025-02-09 22:09:05 [2025-02-09 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440015', 'tblTempUsageDetail_20' ) start [2025-02-09 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440015', 'tblTempUsageDetail_20' ) end [2025-02-09 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440015', 'tblTempVendorCDR_20' ) start [2025-02-09 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440015', 'tblTempVendorCDR_20' ) end [2025-02-09 22:09:18] Production.INFO: ProcessCDR(1,14440015,1,1,2) [2025-02-09 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440015', 'tblTempUsageDetail_20' ) start [2025-02-09 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440015', 'tblTempUsageDetail_20' ) end [2025-02-09 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:09:21] Production.INFO: ==11181== Releasing lock... [2025-02-09 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:09:21] Production.INFO: 37 MB #Memory Used# [2025-02-09 22:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:10:07 [end_date_ymd] => 2025-02-09 22:10:07 [RateCDR] => 1 ) [2025-02-09 22: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-02-09 19:10:07' and `end` < '2025-02-09 22: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-02-09 22:10:20] Production.INFO: count ==1237 [2025-02-09 22:10:20] Production.ERROR: pbx CDR StartTime 2025-02-09 19:10:07 - End Time 2025-02-09 22:10:07 [2025-02-09 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440021', 'tblTempUsageDetail_20' ) start [2025-02-09 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440021', 'tblTempUsageDetail_20' ) end [2025-02-09 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440021', 'tblTempVendorCDR_20' ) start [2025-02-09 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440021', 'tblTempVendorCDR_20' ) end [2025-02-09 22:10:20] Production.INFO: ProcessCDR(1,14440021,1,1,2) [2025-02-09 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440021', 'tblTempUsageDetail_20' ) start [2025-02-09 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440021', 'tblTempUsageDetail_20' ) end [2025-02-09 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:10:23] Production.INFO: ==11264== Releasing lock... [2025-02-09 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:10:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-09 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:11:05 [end_date_ymd] => 2025-02-09 22:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:11:05' and `end` < '2025-02-09 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-02-09 22:11:18] Production.INFO: count ==1174 [2025-02-09 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:11:05 - End Time 2025-02-09 22:11:05 [2025-02-09 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440026', 'tblTempUsageDetail_20' ) start [2025-02-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440026', 'tblTempUsageDetail_20' ) end [2025-02-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440026', 'tblTempVendorCDR_20' ) start [2025-02-09 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440026', 'tblTempVendorCDR_20' ) end [2025-02-09 22:11:18] Production.INFO: ProcessCDR(1,14440026,1,1,2) [2025-02-09 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440026', 'tblTempUsageDetail_20' ) start [2025-02-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440026', 'tblTempUsageDetail_20' ) end [2025-02-09 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:11:22] Production.INFO: ==11345== Releasing lock... [2025-02-09 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:12:05 [end_date_ymd] => 2025-02-09 22:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:12:05' and `end` < '2025-02-09 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-02-09 22:12:18] Production.INFO: count ==1172 [2025-02-09 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:12:05 - End Time 2025-02-09 22:12:05 [2025-02-09 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440031', 'tblTempUsageDetail_20' ) start [2025-02-09 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440031', 'tblTempUsageDetail_20' ) end [2025-02-09 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440031', 'tblTempVendorCDR_20' ) start [2025-02-09 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440031', 'tblTempVendorCDR_20' ) end [2025-02-09 22:12:19] Production.INFO: ProcessCDR(1,14440031,1,1,2) [2025-02-09 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440031', 'tblTempUsageDetail_20' ) start [2025-02-09 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440031', 'tblTempUsageDetail_20' ) end [2025-02-09 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:12:22] Production.INFO: ==11426== Releasing lock... [2025-02-09 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:13:05 [end_date_ymd] => 2025-02-09 22:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:13:05' and `end` < '2025-02-09 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-02-09 22:13:18] Production.INFO: count ==1164 [2025-02-09 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:13:05 - End Time 2025-02-09 22:13:05 [2025-02-09 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440036', 'tblTempUsageDetail_20' ) start [2025-02-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440036', 'tblTempUsageDetail_20' ) end [2025-02-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440036', 'tblTempVendorCDR_20' ) start [2025-02-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440036', 'tblTempVendorCDR_20' ) end [2025-02-09 22:13:18] Production.INFO: ProcessCDR(1,14440036,1,1,2) [2025-02-09 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440036', 'tblTempUsageDetail_20' ) start [2025-02-09 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440036', 'tblTempUsageDetail_20' ) end [2025-02-09 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:13:21] Production.INFO: ==11505== Releasing lock... [2025-02-09 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-09 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:14:05 [end_date_ymd] => 2025-02-09 22:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:14:05' and `end` < '2025-02-09 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-02-09 22:14:18] Production.INFO: count ==1160 [2025-02-09 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:14:05 - End Time 2025-02-09 22:14:05 [2025-02-09 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440041', 'tblTempUsageDetail_20' ) start [2025-02-09 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440041', 'tblTempUsageDetail_20' ) end [2025-02-09 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440041', 'tblTempVendorCDR_20' ) start [2025-02-09 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440041', 'tblTempVendorCDR_20' ) end [2025-02-09 22:14:19] Production.INFO: ProcessCDR(1,14440041,1,1,2) [2025-02-09 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440041', 'tblTempUsageDetail_20' ) start [2025-02-09 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440041', 'tblTempUsageDetail_20' ) end [2025-02-09 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:14:22] Production.INFO: ==11584== Releasing lock... [2025-02-09 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:14:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:15:05 [end_date_ymd] => 2025-02-09 22:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:15:05' and `end` < '2025-02-09 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-02-09 22:15:18] Production.INFO: count ==1148 [2025-02-09 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:15:05 - End Time 2025-02-09 22:15:05 [2025-02-09 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440046', 'tblTempUsageDetail_20' ) start [2025-02-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440046', 'tblTempUsageDetail_20' ) end [2025-02-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440046', 'tblTempVendorCDR_20' ) start [2025-02-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440046', 'tblTempVendorCDR_20' ) end [2025-02-09 22:15:18] Production.INFO: ProcessCDR(1,14440046,1,1,2) [2025-02-09 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440046', 'tblTempUsageDetail_20' ) start [2025-02-09 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440046', 'tblTempUsageDetail_20' ) end [2025-02-09 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:15:21] Production.INFO: ==11705== Releasing lock... [2025-02-09 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:15:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:16:05 [end_date_ymd] => 2025-02-09 22:16:05 [RateCDR] => 1 ) [2025-02-09 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:16:05' and `end` < '2025-02-09 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-02-09 22:16:19] Production.INFO: count ==1147 [2025-02-09 22:16:20] Production.ERROR: pbx CDR StartTime 2025-02-09 19:16:05 - End Time 2025-02-09 22:16:05 [2025-02-09 22:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440051', 'tblTempUsageDetail_20' ) start [2025-02-09 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440051', 'tblTempUsageDetail_20' ) end [2025-02-09 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440051', 'tblTempVendorCDR_20' ) start [2025-02-09 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440051', 'tblTempVendorCDR_20' ) end [2025-02-09 22:16:20] Production.INFO: ProcessCDR(1,14440051,1,1,2) [2025-02-09 22:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440051', 'tblTempUsageDetail_20' ) start [2025-02-09 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440051', 'tblTempUsageDetail_20' ) end [2025-02-09 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:16:23] Production.INFO: ==11783== Releasing lock... [2025-02-09 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-09 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:17:05 [end_date_ymd] => 2025-02-09 22:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:17:05' and `end` < '2025-02-09 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-02-09 22:17:17] Production.INFO: count ==1132 [2025-02-09 22:17:17] Production.ERROR: pbx CDR StartTime 2025-02-09 19:17:05 - End Time 2025-02-09 22:17:05 [2025-02-09 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440056', 'tblTempUsageDetail_20' ) start [2025-02-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440056', 'tblTempUsageDetail_20' ) end [2025-02-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440056', 'tblTempVendorCDR_20' ) start [2025-02-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440056', 'tblTempVendorCDR_20' ) end [2025-02-09 22:17:18] Production.INFO: ProcessCDR(1,14440056,1,1,2) [2025-02-09 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440056', 'tblTempUsageDetail_20' ) start [2025-02-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440056', 'tblTempUsageDetail_20' ) end [2025-02-09 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:17:21] Production.INFO: ==11864== Releasing lock... [2025-02-09 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:17:21] Production.INFO: 36 MB #Memory Used# [2025-02-09 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:18:05 [end_date_ymd] => 2025-02-09 22:18:05 [RateCDR] => 1 ) [2025-02-09 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:18:05' and `end` < '2025-02-09 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:18:18] Production.INFO: count ==1126 [2025-02-09 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:18:05 - End Time 2025-02-09 22:18:05 [2025-02-09 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440061', 'tblTempUsageDetail_20' ) start [2025-02-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440061', 'tblTempUsageDetail_20' ) end [2025-02-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440061', 'tblTempVendorCDR_20' ) start [2025-02-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440061', 'tblTempVendorCDR_20' ) end [2025-02-09 22:18:18] Production.INFO: ProcessCDR(1,14440061,1,1,2) [2025-02-09 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440061', 'tblTempUsageDetail_20' ) start [2025-02-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440061', 'tblTempUsageDetail_20' ) end [2025-02-09 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:18:21] Production.INFO: ==11943== Releasing lock... [2025-02-09 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:18:21] Production.INFO: 36 MB #Memory Used# [2025-02-09 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:19:04 [end_date_ymd] => 2025-02-09 22:19:04 [RateCDR] => 1 ) [2025-02-09 22: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-02-09 19:19:04' and `end` < '2025-02-09 22: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-02-09 22:19:17] Production.INFO: count ==1120 [2025-02-09 22:19:17] Production.ERROR: pbx CDR StartTime 2025-02-09 19:19:04 - End Time 2025-02-09 22:19:04 [2025-02-09 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440066', 'tblTempUsageDetail_20' ) start [2025-02-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440066', 'tblTempUsageDetail_20' ) end [2025-02-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440066', 'tblTempVendorCDR_20' ) start [2025-02-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440066', 'tblTempVendorCDR_20' ) end [2025-02-09 22:19:17] Production.INFO: ProcessCDR(1,14440066,1,1,2) [2025-02-09 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440066', 'tblTempUsageDetail_20' ) start [2025-02-09 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440066', 'tblTempUsageDetail_20' ) end [2025-02-09 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:19:21] Production.INFO: ==12019== Releasing lock... [2025-02-09 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:19:21] Production.INFO: 36 MB #Memory Used# [2025-02-09 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:20:06 [end_date_ymd] => 2025-02-09 22:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:20:06' and `end` < '2025-02-09 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-02-09 22:20:19] Production.INFO: count ==1117 [2025-02-09 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:20:06 - End Time 2025-02-09 22:20:06 [2025-02-09 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440072', 'tblTempUsageDetail_20' ) start [2025-02-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440072', 'tblTempUsageDetail_20' ) end [2025-02-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440072', 'tblTempVendorCDR_20' ) start [2025-02-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440072', 'tblTempVendorCDR_20' ) end [2025-02-09 22:20:19] Production.INFO: ProcessCDR(1,14440072,1,1,2) [2025-02-09 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440072', 'tblTempUsageDetail_20' ) start [2025-02-09 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440072', 'tblTempUsageDetail_20' ) end [2025-02-09 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:20:23] Production.INFO: ==12097== Releasing lock... [2025-02-09 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:20:23] Production.INFO: 36 MB #Memory Used# [2025-02-09 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:21:04 [end_date_ymd] => 2025-02-09 22:21:04 [RateCDR] => 1 ) [2025-02-09 22:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:21:04' and `end` < '2025-02-09 22:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:21:17] Production.INFO: count ==1071 [2025-02-09 22:21:17] Production.ERROR: pbx CDR StartTime 2025-02-09 19:21:04 - End Time 2025-02-09 22:21:04 [2025-02-09 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440077', 'tblTempUsageDetail_20' ) start [2025-02-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440077', 'tblTempUsageDetail_20' ) end [2025-02-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440077', 'tblTempVendorCDR_20' ) start [2025-02-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440077', 'tblTempVendorCDR_20' ) end [2025-02-09 22:21:17] Production.INFO: ProcessCDR(1,14440077,1,1,2) [2025-02-09 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440077', 'tblTempUsageDetail_20' ) start [2025-02-09 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440077', 'tblTempUsageDetail_20' ) end [2025-02-09 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:21:21] Production.INFO: ==12175== Releasing lock... [2025-02-09 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:21:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:22:05 [end_date_ymd] => 2025-02-09 22:22:05 [RateCDR] => 1 ) [2025-02-09 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:22:05' and `end` < '2025-02-09 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:22:18] Production.INFO: count ==1047 [2025-02-09 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:22:05 - End Time 2025-02-09 22:22:05 [2025-02-09 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440082', 'tblTempUsageDetail_20' ) start [2025-02-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440082', 'tblTempUsageDetail_20' ) end [2025-02-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440082', 'tblTempVendorCDR_20' ) start [2025-02-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440082', 'tblTempVendorCDR_20' ) end [2025-02-09 22:22:18] Production.INFO: ProcessCDR(1,14440082,1,1,2) [2025-02-09 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440082', 'tblTempUsageDetail_20' ) start [2025-02-09 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440082', 'tblTempUsageDetail_20' ) end [2025-02-09 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:22:21] Production.INFO: ==12255== Releasing lock... [2025-02-09 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:22:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:23:05 [end_date_ymd] => 2025-02-09 22:23:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:23:05' and `end` < '2025-02-09 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-02-09 22:23:18] Production.INFO: count ==1018 [2025-02-09 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:23:05 - End Time 2025-02-09 22:23:05 [2025-02-09 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440087', 'tblTempUsageDetail_20' ) start [2025-02-09 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440087', 'tblTempUsageDetail_20' ) end [2025-02-09 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440087', 'tblTempVendorCDR_20' ) start [2025-02-09 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440087', 'tblTempVendorCDR_20' ) end [2025-02-09 22:23:18] Production.INFO: ProcessCDR(1,14440087,1,1,2) [2025-02-09 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440087', 'tblTempUsageDetail_20' ) start [2025-02-09 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440087', 'tblTempUsageDetail_20' ) end [2025-02-09 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:23:21] Production.INFO: ==12337== Releasing lock... [2025-02-09 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:23:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:24:05 [end_date_ymd] => 2025-02-09 22:24:05 [RateCDR] => 1 ) [2025-02-09 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:24:05' and `end` < '2025-02-09 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:24:18] Production.INFO: count ==1018 [2025-02-09 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:24:05 - End Time 2025-02-09 22:24:05 [2025-02-09 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440092', 'tblTempUsageDetail_20' ) start [2025-02-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440092', 'tblTempUsageDetail_20' ) end [2025-02-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440092', 'tblTempVendorCDR_20' ) start [2025-02-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440092', 'tblTempVendorCDR_20' ) end [2025-02-09 22:24:18] Production.INFO: ProcessCDR(1,14440092,1,1,2) [2025-02-09 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440092', 'tblTempUsageDetail_20' ) start [2025-02-09 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440092', 'tblTempUsageDetail_20' ) end [2025-02-09 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:24:21] Production.INFO: ==12422== Releasing lock... [2025-02-09 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:24:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:25:05 [end_date_ymd] => 2025-02-09 22:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:25:05' and `end` < '2025-02-09 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-02-09 22:25:18] Production.INFO: count ==1021 [2025-02-09 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:25:05 - End Time 2025-02-09 22:25:05 [2025-02-09 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440097', 'tblTempUsageDetail_20' ) start [2025-02-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440097', 'tblTempUsageDetail_20' ) end [2025-02-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440097', 'tblTempVendorCDR_20' ) start [2025-02-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440097', 'tblTempVendorCDR_20' ) end [2025-02-09 22:25:19] Production.INFO: ProcessCDR(1,14440097,1,1,2) [2025-02-09 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440097', 'tblTempUsageDetail_20' ) start [2025-02-09 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440097', 'tblTempUsageDetail_20' ) end [2025-02-09 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:25:22] Production.INFO: ==12502== Releasing lock... [2025-02-09 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:26:04 [end_date_ymd] => 2025-02-09 22:26:04 [RateCDR] => 1 ) [2025-02-09 22: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-02-09 19:26:04' and `end` < '2025-02-09 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:26:17] Production.INFO: count ==1016 [2025-02-09 22:26:17] Production.ERROR: pbx CDR StartTime 2025-02-09 19:26:04 - End Time 2025-02-09 22:26:04 [2025-02-09 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440102', 'tblTempUsageDetail_20' ) start [2025-02-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440102', 'tblTempUsageDetail_20' ) end [2025-02-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440102', 'tblTempVendorCDR_20' ) start [2025-02-09 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440102', 'tblTempVendorCDR_20' ) end [2025-02-09 22:26:17] Production.INFO: ProcessCDR(1,14440102,1,1,2) [2025-02-09 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440102', 'tblTempUsageDetail_20' ) start [2025-02-09 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440102', 'tblTempUsageDetail_20' ) end [2025-02-09 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:26:21] Production.INFO: ==12582== Releasing lock... [2025-02-09 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:26:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-09 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:27:05 [end_date_ymd] => 2025-02-09 22:27:05 [RateCDR] => 1 ) [2025-02-09 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:27:05' and `end` < '2025-02-09 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:27:19] Production.INFO: count ==1017 [2025-02-09 22:27:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:27:05 - End Time 2025-02-09 22:27:05 [2025-02-09 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440107', 'tblTempUsageDetail_20' ) start [2025-02-09 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440107', 'tblTempUsageDetail_20' ) end [2025-02-09 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440107', 'tblTempVendorCDR_20' ) start [2025-02-09 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440107', 'tblTempVendorCDR_20' ) end [2025-02-09 22:27:19] Production.INFO: ProcessCDR(1,14440107,1,1,2) [2025-02-09 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440107', 'tblTempUsageDetail_20' ) start [2025-02-09 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440107', 'tblTempUsageDetail_20' ) end [2025-02-09 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:27:22] Production.INFO: ==12660== Releasing lock... [2025-02-09 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:28:05 [end_date_ymd] => 2025-02-09 22:28:05 [RateCDR] => 1 ) [2025-02-09 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:28:05' and `end` < '2025-02-09 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:28:18] Production.INFO: count ==1023 [2025-02-09 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:28:05 - End Time 2025-02-09 22:28:05 [2025-02-09 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440112', 'tblTempUsageDetail_20' ) start [2025-02-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440112', 'tblTempUsageDetail_20' ) end [2025-02-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440112', 'tblTempVendorCDR_20' ) start [2025-02-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440112', 'tblTempVendorCDR_20' ) end [2025-02-09 22:28:18] Production.INFO: ProcessCDR(1,14440112,1,1,2) [2025-02-09 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440112', 'tblTempUsageDetail_20' ) start [2025-02-09 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440112', 'tblTempUsageDetail_20' ) end [2025-02-09 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:28:21] Production.INFO: ==12736== Releasing lock... [2025-02-09 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:28:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:29:05 [end_date_ymd] => 2025-02-09 22:29:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:29:05' and `end` < '2025-02-09 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-02-09 22:29:18] Production.INFO: count ==1018 [2025-02-09 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:29:05 - End Time 2025-02-09 22:29:05 [2025-02-09 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440117', 'tblTempUsageDetail_20' ) start [2025-02-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440117', 'tblTempUsageDetail_20' ) end [2025-02-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440117', 'tblTempVendorCDR_20' ) start [2025-02-09 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440117', 'tblTempVendorCDR_20' ) end [2025-02-09 22:29:18] Production.INFO: ProcessCDR(1,14440117,1,1,2) [2025-02-09 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440117', 'tblTempUsageDetail_20' ) start [2025-02-09 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440117', 'tblTempUsageDetail_20' ) end [2025-02-09 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:29:21] Production.INFO: ==12812== Releasing lock... [2025-02-09 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:29:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:30:06 [end_date_ymd] => 2025-02-09 22:30:06 [RateCDR] => 1 ) [2025-02-09 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:30:06' and `end` < '2025-02-09 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:30:19] Production.INFO: count ==1013 [2025-02-09 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:30:06 - End Time 2025-02-09 22:30:06 [2025-02-09 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440123', 'tblTempUsageDetail_20' ) start [2025-02-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440123', 'tblTempUsageDetail_20' ) end [2025-02-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440123', 'tblTempVendorCDR_20' ) start [2025-02-09 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440123', 'tblTempVendorCDR_20' ) end [2025-02-09 22:30:19] Production.INFO: ProcessCDR(1,14440123,1,1,2) [2025-02-09 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440123', 'tblTempUsageDetail_20' ) start [2025-02-09 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440123', 'tblTempUsageDetail_20' ) end [2025-02-09 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:30:22] Production.INFO: ==12930== Releasing lock... [2025-02-09 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-09 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:31:05 [end_date_ymd] => 2025-02-09 22:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:31:05' and `end` < '2025-02-09 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-02-09 22:31:18] Production.INFO: count ==977 [2025-02-09 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:31:05 - End Time 2025-02-09 22:31:05 [2025-02-09 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440128', 'tblTempUsageDetail_20' ) start [2025-02-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440128', 'tblTempUsageDetail_20' ) end [2025-02-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440128', 'tblTempVendorCDR_20' ) start [2025-02-09 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440128', 'tblTempVendorCDR_20' ) end [2025-02-09 22:31:18] Production.INFO: ProcessCDR(1,14440128,1,1,2) [2025-02-09 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440128', 'tblTempUsageDetail_20' ) start [2025-02-09 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440128', 'tblTempUsageDetail_20' ) end [2025-02-09 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:31:21] Production.INFO: ==13006== Releasing lock... [2025-02-09 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:31:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:32:05 [end_date_ymd] => 2025-02-09 22:32:05 [RateCDR] => 1 ) [2025-02-09 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:32:05' and `end` < '2025-02-09 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:32:19] Production.INFO: count ==976 [2025-02-09 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:32:05 - End Time 2025-02-09 22:32:05 [2025-02-09 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440133', 'tblTempUsageDetail_20' ) start [2025-02-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440133', 'tblTempUsageDetail_20' ) end [2025-02-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440133', 'tblTempVendorCDR_20' ) start [2025-02-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440133', 'tblTempVendorCDR_20' ) end [2025-02-09 22:32:19] Production.INFO: ProcessCDR(1,14440133,1,1,2) [2025-02-09 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440133', 'tblTempUsageDetail_20' ) start [2025-02-09 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440133', 'tblTempUsageDetail_20' ) end [2025-02-09 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:32:22] Production.INFO: ==13078== Releasing lock... [2025-02-09 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:32:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:33:05 [end_date_ymd] => 2025-02-09 22:33:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:33:05' and `end` < '2025-02-09 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-02-09 22:33:18] Production.INFO: count ==976 [2025-02-09 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:33:05 - End Time 2025-02-09 22:33:05 [2025-02-09 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440138', 'tblTempUsageDetail_20' ) start [2025-02-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440138', 'tblTempUsageDetail_20' ) end [2025-02-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440138', 'tblTempVendorCDR_20' ) start [2025-02-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440138', 'tblTempVendorCDR_20' ) end [2025-02-09 22:33:18] Production.INFO: ProcessCDR(1,14440138,1,1,2) [2025-02-09 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440138', 'tblTempUsageDetail_20' ) start [2025-02-09 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440138', 'tblTempUsageDetail_20' ) end [2025-02-09 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:33:21] Production.INFO: ==13154== Releasing lock... [2025-02-09 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:33:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:34:05 [end_date_ymd] => 2025-02-09 22:34:05 [RateCDR] => 1 ) [2025-02-09 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:34:05' and `end` < '2025-02-09 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:34:19] Production.INFO: count ==979 [2025-02-09 22:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:34:05 - End Time 2025-02-09 22:34:05 [2025-02-09 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440143', 'tblTempUsageDetail_20' ) start [2025-02-09 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440143', 'tblTempUsageDetail_20' ) end [2025-02-09 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440143', 'tblTempVendorCDR_20' ) start [2025-02-09 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440143', 'tblTempVendorCDR_20' ) end [2025-02-09 22:34:19] Production.INFO: ProcessCDR(1,14440143,1,1,2) [2025-02-09 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440143', 'tblTempUsageDetail_20' ) start [2025-02-09 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440143', 'tblTempUsageDetail_20' ) end [2025-02-09 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:34:22] Production.INFO: ==13229== Releasing lock... [2025-02-09 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:34:22] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:35:05 [end_date_ymd] => 2025-02-09 22:35:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:35:05' and `end` < '2025-02-09 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-02-09 22:35:18] Production.INFO: count ==979 [2025-02-09 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:35:05 - End Time 2025-02-09 22:35:05 [2025-02-09 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440148', 'tblTempUsageDetail_20' ) start [2025-02-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440148', 'tblTempUsageDetail_20' ) end [2025-02-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440148', 'tblTempVendorCDR_20' ) start [2025-02-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440148', 'tblTempVendorCDR_20' ) end [2025-02-09 22:35:18] Production.INFO: ProcessCDR(1,14440148,1,1,2) [2025-02-09 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440148', 'tblTempUsageDetail_20' ) start [2025-02-09 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440148', 'tblTempUsageDetail_20' ) end [2025-02-09 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:35:21] Production.INFO: ==13304== Releasing lock... [2025-02-09 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:35:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:36:05 [end_date_ymd] => 2025-02-09 22:36:05 [RateCDR] => 1 ) [2025-02-09 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:36:05' and `end` < '2025-02-09 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:36:18] Production.INFO: count ==974 [2025-02-09 22:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:36:05 - End Time 2025-02-09 22:36:05 [2025-02-09 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440153', 'tblTempUsageDetail_20' ) start [2025-02-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440153', 'tblTempUsageDetail_20' ) end [2025-02-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440153', 'tblTempVendorCDR_20' ) start [2025-02-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440153', 'tblTempVendorCDR_20' ) end [2025-02-09 22:36:18] Production.INFO: ProcessCDR(1,14440153,1,1,2) [2025-02-09 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440153', 'tblTempUsageDetail_20' ) start [2025-02-09 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440153', 'tblTempUsageDetail_20' ) end [2025-02-09 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:36:23] Production.INFO: ==13388== Releasing lock... [2025-02-09 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:36:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:37:05 [end_date_ymd] => 2025-02-09 22:37:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:37:05' and `end` < '2025-02-09 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-02-09 22:37:18] Production.INFO: count ==974 [2025-02-09 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:37:05 - End Time 2025-02-09 22:37:05 [2025-02-09 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440158', 'tblTempUsageDetail_20' ) start [2025-02-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440158', 'tblTempUsageDetail_20' ) end [2025-02-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440158', 'tblTempVendorCDR_20' ) start [2025-02-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440158', 'tblTempVendorCDR_20' ) end [2025-02-09 22:37:18] Production.INFO: ProcessCDR(1,14440158,1,1,2) [2025-02-09 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440158', 'tblTempUsageDetail_20' ) start [2025-02-09 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440158', 'tblTempUsageDetail_20' ) end [2025-02-09 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:37:23] Production.INFO: ==13464== Releasing lock... [2025-02-09 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:37:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:38:05 [end_date_ymd] => 2025-02-09 22:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:38:05' and `end` < '2025-02-09 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-02-09 22:38:18] Production.INFO: count ==977 [2025-02-09 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:38:05 - End Time 2025-02-09 22:38:05 [2025-02-09 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440163', 'tblTempUsageDetail_20' ) start [2025-02-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440163', 'tblTempUsageDetail_20' ) end [2025-02-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440163', 'tblTempVendorCDR_20' ) start [2025-02-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440163', 'tblTempVendorCDR_20' ) end [2025-02-09 22:38:18] Production.INFO: ProcessCDR(1,14440163,1,1,2) [2025-02-09 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440163', 'tblTempUsageDetail_20' ) start [2025-02-09 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440163', 'tblTempUsageDetail_20' ) end [2025-02-09 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:38:23] Production.INFO: ==13538== Releasing lock... [2025-02-09 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:38:23] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:39:05 [end_date_ymd] => 2025-02-09 22:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:39:05' and `end` < '2025-02-09 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-02-09 22:39:18] Production.INFO: count ==976 [2025-02-09 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:39:05 - End Time 2025-02-09 22:39:05 [2025-02-09 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440168', 'tblTempUsageDetail_20' ) start [2025-02-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440168', 'tblTempUsageDetail_20' ) end [2025-02-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440168', 'tblTempVendorCDR_20' ) start [2025-02-09 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440168', 'tblTempVendorCDR_20' ) end [2025-02-09 22:39:18] Production.INFO: ProcessCDR(1,14440168,1,1,2) [2025-02-09 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440168', 'tblTempUsageDetail_20' ) start [2025-02-09 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440168', 'tblTempUsageDetail_20' ) end [2025-02-09 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:39:21] Production.INFO: ==13611== Releasing lock... [2025-02-09 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:39:21] Production.INFO: 35 MB #Memory Used# [2025-02-09 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:40:06 [end_date_ymd] => 2025-02-09 22:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:40:06' and `end` < '2025-02-09 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-02-09 22:40:20] Production.INFO: count ==974 [2025-02-09 22:40:20] Production.ERROR: pbx CDR StartTime 2025-02-09 19:40:06 - End Time 2025-02-09 22:40:06 [2025-02-09 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440173', 'tblTempUsageDetail_20' ) start [2025-02-09 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440173', 'tblTempUsageDetail_20' ) end [2025-02-09 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440173', 'tblTempVendorCDR_20' ) start [2025-02-09 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440173', 'tblTempVendorCDR_20' ) end [2025-02-09 22:40:20] Production.INFO: ProcessCDR(1,14440173,1,1,2) [2025-02-09 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440173', 'tblTempUsageDetail_20' ) start [2025-02-09 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440173', 'tblTempUsageDetail_20' ) end [2025-02-09 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:40:23] Production.INFO: ==13687== Releasing lock... [2025-02-09 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-09 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:41:05 [end_date_ymd] => 2025-02-09 22:41:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:41:05' and `end` < '2025-02-09 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-02-09 22:41:18] Production.INFO: count ==937 [2025-02-09 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:41:05 - End Time 2025-02-09 22:41:05 [2025-02-09 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440179', 'tblTempUsageDetail_20' ) start [2025-02-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440179', 'tblTempUsageDetail_20' ) end [2025-02-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440179', 'tblTempVendorCDR_20' ) start [2025-02-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440179', 'tblTempVendorCDR_20' ) end [2025-02-09 22:41:18] Production.INFO: ProcessCDR(1,14440179,1,1,2) [2025-02-09 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440179', 'tblTempUsageDetail_20' ) start [2025-02-09 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440179', 'tblTempUsageDetail_20' ) end [2025-02-09 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:41:21] Production.INFO: ==13767== Releasing lock... [2025-02-09 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:42:05 [end_date_ymd] => 2025-02-09 22:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:42:05' and `end` < '2025-02-09 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-02-09 22:42:18] Production.INFO: count ==932 [2025-02-09 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:42:05 - End Time 2025-02-09 22:42:05 [2025-02-09 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440184', 'tblTempUsageDetail_20' ) start [2025-02-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440184', 'tblTempUsageDetail_20' ) end [2025-02-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440184', 'tblTempVendorCDR_20' ) start [2025-02-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440184', 'tblTempVendorCDR_20' ) end [2025-02-09 22:42:18] Production.INFO: ProcessCDR(1,14440184,1,1,2) [2025-02-09 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440184', 'tblTempUsageDetail_20' ) start [2025-02-09 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440184', 'tblTempUsageDetail_20' ) end [2025-02-09 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:42:21] Production.INFO: ==13839== Releasing lock... [2025-02-09 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:42:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:43:04 [end_date_ymd] => 2025-02-09 22:43:04 [RateCDR] => 1 ) [2025-02-09 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:43:04' and `end` < '2025-02-09 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:43:17] Production.INFO: count ==928 [2025-02-09 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:43:04 - End Time 2025-02-09 22:43:04 [2025-02-09 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440189', 'tblTempUsageDetail_20' ) start [2025-02-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440189', 'tblTempUsageDetail_20' ) end [2025-02-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440189', 'tblTempVendorCDR_20' ) start [2025-02-09 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440189', 'tblTempVendorCDR_20' ) end [2025-02-09 22:43:18] Production.INFO: ProcessCDR(1,14440189,1,1,2) [2025-02-09 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440189', 'tblTempUsageDetail_20' ) start [2025-02-09 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440189', 'tblTempUsageDetail_20' ) end [2025-02-09 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:43:21] Production.INFO: ==13916== Releasing lock... [2025-02-09 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:44:06 [end_date_ymd] => 2025-02-09 22:44:06 [RateCDR] => 1 ) [2025-02-09 22: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-02-09 19:44:06' and `end` < '2025-02-09 22: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-02-09 22:44:19] Production.INFO: count ==935 [2025-02-09 22:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:44:06 - End Time 2025-02-09 22:44:06 [2025-02-09 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440194', 'tblTempUsageDetail_20' ) start [2025-02-09 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440194', 'tblTempUsageDetail_20' ) end [2025-02-09 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440194', 'tblTempVendorCDR_20' ) start [2025-02-09 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440194', 'tblTempVendorCDR_20' ) end [2025-02-09 22:44:19] Production.INFO: ProcessCDR(1,14440194,1,1,2) [2025-02-09 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440194', 'tblTempUsageDetail_20' ) start [2025-02-09 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440194', 'tblTempUsageDetail_20' ) end [2025-02-09 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:44:23] Production.INFO: ==13990== Releasing lock... [2025-02-09 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:44:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 22:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:45:04 [end_date_ymd] => 2025-02-09 22:45:04 [RateCDR] => 1 ) [2025-02-09 22:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:45:04' and `end` < '2025-02-09 22:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:45:17] Production.INFO: count ==933 [2025-02-09 22:45:17] Production.ERROR: pbx CDR StartTime 2025-02-09 19:45:04 - End Time 2025-02-09 22:45:04 [2025-02-09 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440199', 'tblTempUsageDetail_20' ) start [2025-02-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440199', 'tblTempUsageDetail_20' ) end [2025-02-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440199', 'tblTempVendorCDR_20' ) start [2025-02-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440199', 'tblTempVendorCDR_20' ) end [2025-02-09 22:45:17] Production.INFO: ProcessCDR(1,14440199,1,1,2) [2025-02-09 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440199', 'tblTempUsageDetail_20' ) start [2025-02-09 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440199', 'tblTempUsageDetail_20' ) end [2025-02-09 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:45:21] Production.INFO: ==14063== Releasing lock... [2025-02-09 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:46:05 [end_date_ymd] => 2025-02-09 22:46:05 [RateCDR] => 1 ) [2025-02-09 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:46:05' and `end` < '2025-02-09 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:46:18] Production.INFO: count ==931 [2025-02-09 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:46:05 - End Time 2025-02-09 22:46:05 [2025-02-09 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440204', 'tblTempUsageDetail_20' ) start [2025-02-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440204', 'tblTempUsageDetail_20' ) end [2025-02-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440204', 'tblTempVendorCDR_20' ) start [2025-02-09 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440204', 'tblTempVendorCDR_20' ) end [2025-02-09 22:46:18] Production.INFO: ProcessCDR(1,14440204,1,1,2) [2025-02-09 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440204', 'tblTempUsageDetail_20' ) start [2025-02-09 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440204', 'tblTempUsageDetail_20' ) end [2025-02-09 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:46:22] Production.INFO: ==14180== Releasing lock... [2025-02-09 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:46:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:47:05 [end_date_ymd] => 2025-02-09 22:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:47:05' and `end` < '2025-02-09 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-02-09 22:47:18] Production.INFO: count ==931 [2025-02-09 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:47:05 - End Time 2025-02-09 22:47:05 [2025-02-09 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440209', 'tblTempUsageDetail_20' ) start [2025-02-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440209', 'tblTempUsageDetail_20' ) end [2025-02-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440209', 'tblTempVendorCDR_20' ) start [2025-02-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440209', 'tblTempVendorCDR_20' ) end [2025-02-09 22:47:18] Production.INFO: ProcessCDR(1,14440209,1,1,2) [2025-02-09 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440209', 'tblTempUsageDetail_20' ) start [2025-02-09 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440209', 'tblTempUsageDetail_20' ) end [2025-02-09 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:47:22] Production.INFO: ==14266== Releasing lock... [2025-02-09 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-09 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:48:05 [end_date_ymd] => 2025-02-09 22:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:48:05' and `end` < '2025-02-09 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-02-09 22:48:20] Production.INFO: count ==927 [2025-02-09 22:48:20] Production.ERROR: pbx CDR StartTime 2025-02-09 19:48:05 - End Time 2025-02-09 22:48:05 [2025-02-09 22:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440214', 'tblTempUsageDetail_20' ) start [2025-02-09 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440214', 'tblTempUsageDetail_20' ) end [2025-02-09 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440214', 'tblTempVendorCDR_20' ) start [2025-02-09 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440214', 'tblTempVendorCDR_20' ) end [2025-02-09 22:48:20] Production.INFO: ProcessCDR(1,14440214,1,1,2) [2025-02-09 22:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440214', 'tblTempUsageDetail_20' ) start [2025-02-09 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440214', 'tblTempUsageDetail_20' ) end [2025-02-09 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:48:23] Production.INFO: ==14345== Releasing lock... [2025-02-09 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:48:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:49:05 [end_date_ymd] => 2025-02-09 22:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:49:05' and `end` < '2025-02-09 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-02-09 22:49:17] Production.INFO: count ==920 [2025-02-09 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:49:05 - End Time 2025-02-09 22:49:05 [2025-02-09 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440219', 'tblTempUsageDetail_20' ) start [2025-02-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440219', 'tblTempUsageDetail_20' ) end [2025-02-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440219', 'tblTempVendorCDR_20' ) start [2025-02-09 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440219', 'tblTempVendorCDR_20' ) end [2025-02-09 22:49:18] Production.INFO: ProcessCDR(1,14440219,1,1,2) [2025-02-09 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440219', 'tblTempUsageDetail_20' ) start [2025-02-09 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440219', 'tblTempUsageDetail_20' ) end [2025-02-09 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:49:21] Production.INFO: ==14425== Releasing lock... [2025-02-09 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-09 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:50:06 [end_date_ymd] => 2025-02-09 22:50:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:50:06' and `end` < '2025-02-09 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-02-09 22:50:19] Production.INFO: count ==920 [2025-02-09 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:50:06 - End Time 2025-02-09 22:50:06 [2025-02-09 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440225', 'tblTempUsageDetail_20' ) start [2025-02-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440225', 'tblTempUsageDetail_20' ) end [2025-02-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440225', 'tblTempVendorCDR_20' ) start [2025-02-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440225', 'tblTempVendorCDR_20' ) end [2025-02-09 22:50:19] Production.INFO: ProcessCDR(1,14440225,1,1,2) [2025-02-09 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440225', 'tblTempUsageDetail_20' ) start [2025-02-09 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440225', 'tblTempUsageDetail_20' ) end [2025-02-09 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:50:22] Production.INFO: ==14506== Releasing lock... [2025-02-09 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:50:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:51:05 [end_date_ymd] => 2025-02-09 22:51:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:51:05' and `end` < '2025-02-09 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-02-09 22:51:18] Production.INFO: count ==859 [2025-02-09 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:51:05 - End Time 2025-02-09 22:51:05 [2025-02-09 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440230', 'tblTempUsageDetail_20' ) start [2025-02-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440230', 'tblTempUsageDetail_20' ) end [2025-02-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440230', 'tblTempVendorCDR_20' ) start [2025-02-09 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440230', 'tblTempVendorCDR_20' ) end [2025-02-09 22:51:18] Production.INFO: ProcessCDR(1,14440230,1,1,2) [2025-02-09 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440230', 'tblTempUsageDetail_20' ) start [2025-02-09 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440230', 'tblTempUsageDetail_20' ) end [2025-02-09 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:51:21] Production.INFO: ==14593== Releasing lock... [2025-02-09 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:52:05 [end_date_ymd] => 2025-02-09 22:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:52:05' and `end` < '2025-02-09 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-02-09 22:52:18] Production.INFO: count ==860 [2025-02-09 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:52:05 - End Time 2025-02-09 22:52:05 [2025-02-09 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440235', 'tblTempUsageDetail_20' ) start [2025-02-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440235', 'tblTempUsageDetail_20' ) end [2025-02-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440235', 'tblTempVendorCDR_20' ) start [2025-02-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440235', 'tblTempVendorCDR_20' ) end [2025-02-09 22:52:18] Production.INFO: ProcessCDR(1,14440235,1,1,2) [2025-02-09 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440235', 'tblTempUsageDetail_20' ) start [2025-02-09 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440235', 'tblTempUsageDetail_20' ) end [2025-02-09 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:52:23] Production.INFO: ==14667== Releasing lock... [2025-02-09 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:53:05 [end_date_ymd] => 2025-02-09 22:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:53:05' and `end` < '2025-02-09 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-02-09 22:53:18] Production.INFO: count ==860 [2025-02-09 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:53:05 - End Time 2025-02-09 22:53:05 [2025-02-09 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440240', 'tblTempUsageDetail_20' ) start [2025-02-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440240', 'tblTempUsageDetail_20' ) end [2025-02-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440240', 'tblTempVendorCDR_20' ) start [2025-02-09 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440240', 'tblTempVendorCDR_20' ) end [2025-02-09 22:53:18] Production.INFO: ProcessCDR(1,14440240,1,1,2) [2025-02-09 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440240', 'tblTempUsageDetail_20' ) start [2025-02-09 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440240', 'tblTempUsageDetail_20' ) end [2025-02-09 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:53:21] Production.INFO: ==14749== Releasing lock... [2025-02-09 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:54:05 [end_date_ymd] => 2025-02-09 22:54:05 [RateCDR] => 1 ) [2025-02-09 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:54:05' and `end` < '2025-02-09 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:54:18] Production.INFO: count ==861 [2025-02-09 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:54:05 - End Time 2025-02-09 22:54:05 [2025-02-09 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440245', 'tblTempUsageDetail_20' ) start [2025-02-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440245', 'tblTempUsageDetail_20' ) end [2025-02-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440245', 'tblTempVendorCDR_20' ) start [2025-02-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440245', 'tblTempVendorCDR_20' ) end [2025-02-09 22:54:18] Production.INFO: ProcessCDR(1,14440245,1,1,2) [2025-02-09 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440245', 'tblTempUsageDetail_20' ) start [2025-02-09 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440245', 'tblTempUsageDetail_20' ) end [2025-02-09 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:54:23] Production.INFO: ==14832== Releasing lock... [2025-02-09 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:55:06 [end_date_ymd] => 2025-02-09 22:55:06 [RateCDR] => 1 ) [2025-02-09 22: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-02-09 19:55:06' and `end` < '2025-02-09 22: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-02-09 22:55:19] Production.INFO: count ==860 [2025-02-09 22:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 19:55:06 - End Time 2025-02-09 22:55:06 [2025-02-09 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440250', 'tblTempUsageDetail_20' ) start [2025-02-09 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440250', 'tblTempUsageDetail_20' ) end [2025-02-09 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440250', 'tblTempVendorCDR_20' ) start [2025-02-09 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440250', 'tblTempVendorCDR_20' ) end [2025-02-09 22:55:19] Production.INFO: ProcessCDR(1,14440250,1,1,2) [2025-02-09 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440250', 'tblTempUsageDetail_20' ) start [2025-02-09 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440250', 'tblTempUsageDetail_20' ) end [2025-02-09 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:55:22] Production.INFO: ==14913== Releasing lock... [2025-02-09 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:55:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:56:05 [end_date_ymd] => 2025-02-09 22:56:05 [RateCDR] => 1 ) [2025-02-09 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:56:05' and `end` < '2025-02-09 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:56:18] Production.INFO: count ==860 [2025-02-09 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:56:05 - End Time 2025-02-09 22:56:05 [2025-02-09 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440255', 'tblTempUsageDetail_20' ) start [2025-02-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440255', 'tblTempUsageDetail_20' ) end [2025-02-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440255', 'tblTempVendorCDR_20' ) start [2025-02-09 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440255', 'tblTempVendorCDR_20' ) end [2025-02-09 22:56:18] Production.INFO: ProcessCDR(1,14440255,1,1,2) [2025-02-09 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440255', 'tblTempUsageDetail_20' ) start [2025-02-09 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440255', 'tblTempUsageDetail_20' ) end [2025-02-09 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:56:21] Production.INFO: ==14995== Releasing lock... [2025-02-09 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:56:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:57:05 [end_date_ymd] => 2025-02-09 22:57:05 [RateCDR] => 1 ) [2025-02-09 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 19:57:05' and `end` < '2025-02-09 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 22:57:18] Production.INFO: count ==860 [2025-02-09 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:57:05 - End Time 2025-02-09 22:57:05 [2025-02-09 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440260', 'tblTempUsageDetail_20' ) start [2025-02-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440260', 'tblTempUsageDetail_20' ) end [2025-02-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440260', 'tblTempVendorCDR_20' ) start [2025-02-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440260', 'tblTempVendorCDR_20' ) end [2025-02-09 22:57:18] Production.INFO: ProcessCDR(1,14440260,1,1,2) [2025-02-09 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440260', 'tblTempUsageDetail_20' ) start [2025-02-09 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440260', 'tblTempUsageDetail_20' ) end [2025-02-09 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:57:21] Production.INFO: ==15074== Releasing lock... [2025-02-09 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:57:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:58:05 [end_date_ymd] => 2025-02-09 22:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:58:05' and `end` < '2025-02-09 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-02-09 22:58:18] Production.INFO: count ==860 [2025-02-09 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:58:05 - End Time 2025-02-09 22:58:05 [2025-02-09 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440265', 'tblTempUsageDetail_20' ) start [2025-02-09 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440265', 'tblTempUsageDetail_20' ) end [2025-02-09 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440265', 'tblTempVendorCDR_20' ) start [2025-02-09 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440265', 'tblTempVendorCDR_20' ) end [2025-02-09 22:58:19] Production.INFO: ProcessCDR(1,14440265,1,1,2) [2025-02-09 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440265', 'tblTempUsageDetail_20' ) start [2025-02-09 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440265', 'tblTempUsageDetail_20' ) end [2025-02-09 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:58:22] Production.INFO: ==15159== Releasing lock... [2025-02-09 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:58:22] Production.INFO: 34 MB #Memory Used# [2025-02-09 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 19:59:05 [end_date_ymd] => 2025-02-09 22:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 19:59:05' and `end` < '2025-02-09 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-02-09 22:59:18] Production.INFO: count ==860 [2025-02-09 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 19:59:05 - End Time 2025-02-09 22:59:05 [2025-02-09 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440270', 'tblTempUsageDetail_20' ) start [2025-02-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440270', 'tblTempUsageDetail_20' ) end [2025-02-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440270', 'tblTempVendorCDR_20' ) start [2025-02-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440270', 'tblTempVendorCDR_20' ) end [2025-02-09 22:59:18] Production.INFO: ProcessCDR(1,14440270,1,1,2) [2025-02-09 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440270', 'tblTempUsageDetail_20' ) start [2025-02-09 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440270', 'tblTempUsageDetail_20' ) end [2025-02-09 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 22:59:21] Production.INFO: ==15238== Releasing lock... [2025-02-09 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 22:59:21] Production.INFO: 34 MB #Memory Used# [2025-02-09 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:00:05 [end_date_ymd] => 2025-02-09 23:00:05 [RateCDR] => 1 ) [2025-02-09 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:00:05' and `end` < '2025-02-09 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:00:18] Production.INFO: count ==864 [2025-02-09 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:00:05 - End Time 2025-02-09 23:00:05 [2025-02-09 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440276', 'tblTempUsageDetail_20' ) start [2025-02-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440276', 'tblTempUsageDetail_20' ) end [2025-02-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440276', 'tblTempVendorCDR_20' ) start [2025-02-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440276', 'tblTempVendorCDR_20' ) end [2025-02-09 23:00:19] Production.INFO: ProcessCDR(1,14440276,1,1,2) [2025-02-09 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440276', 'tblTempUsageDetail_20' ) start [2025-02-09 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440276', 'tblTempUsageDetail_20' ) end [2025-02-09 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:00:22] Production.INFO: ==15317== Releasing lock... [2025-02-09 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:01:05 [end_date_ymd] => 2025-02-09 23:01:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:01:05' and `end` < '2025-02-09 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-02-09 23:01:18] Production.INFO: count ==854 [2025-02-09 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:01:05 - End Time 2025-02-09 23:01:05 [2025-02-09 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440281', 'tblTempUsageDetail_20' ) start [2025-02-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440281', 'tblTempUsageDetail_20' ) end [2025-02-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440281', 'tblTempVendorCDR_20' ) start [2025-02-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440281', 'tblTempVendorCDR_20' ) end [2025-02-09 23:01:18] Production.INFO: ProcessCDR(1,14440281,1,1,2) [2025-02-09 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440281', 'tblTempUsageDetail_20' ) start [2025-02-09 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440281', 'tblTempUsageDetail_20' ) end [2025-02-09 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:01:23] Production.INFO: ==15532== Releasing lock... [2025-02-09 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:02:05 [end_date_ymd] => 2025-02-09 23:02:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:02:05' and `end` < '2025-02-09 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-02-09 23:02:19] Production.INFO: count ==854 [2025-02-09 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:02:05 - End Time 2025-02-09 23:02:05 [2025-02-09 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440286', 'tblTempUsageDetail_20' ) start [2025-02-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440286', 'tblTempUsageDetail_20' ) end [2025-02-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440286', 'tblTempVendorCDR_20' ) start [2025-02-09 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440286', 'tblTempVendorCDR_20' ) end [2025-02-09 23:02:19] Production.INFO: ProcessCDR(1,14440286,1,1,2) [2025-02-09 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440286', 'tblTempUsageDetail_20' ) start [2025-02-09 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440286', 'tblTempUsageDetail_20' ) end [2025-02-09 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:02:22] Production.INFO: ==15613== Releasing lock... [2025-02-09 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:03:05 [end_date_ymd] => 2025-02-09 23:03:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:03:05' and `end` < '2025-02-09 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-02-09 23:03:18] Production.INFO: count ==852 [2025-02-09 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:03:05 - End Time 2025-02-09 23:03:05 [2025-02-09 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440291', 'tblTempUsageDetail_20' ) start [2025-02-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440291', 'tblTempUsageDetail_20' ) end [2025-02-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440291', 'tblTempVendorCDR_20' ) start [2025-02-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440291', 'tblTempVendorCDR_20' ) end [2025-02-09 23:03:18] Production.INFO: ProcessCDR(1,14440291,1,1,2) [2025-02-09 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440291', 'tblTempUsageDetail_20' ) start [2025-02-09 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440291', 'tblTempUsageDetail_20' ) end [2025-02-09 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:03:22] Production.INFO: ==15692== Releasing lock... [2025-02-09 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-09 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:04:05 [end_date_ymd] => 2025-02-09 23:04:05 [RateCDR] => 1 ) [2025-02-09 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:04:05' and `end` < '2025-02-09 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:04:17] Production.INFO: count ==851 [2025-02-09 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:04:05 - End Time 2025-02-09 23:04:05 [2025-02-09 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440296', 'tblTempUsageDetail_20' ) start [2025-02-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440296', 'tblTempUsageDetail_20' ) end [2025-02-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440296', 'tblTempVendorCDR_20' ) start [2025-02-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440296', 'tblTempVendorCDR_20' ) end [2025-02-09 23:04:18] Production.INFO: ProcessCDR(1,14440296,1,1,2) [2025-02-09 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440296', 'tblTempUsageDetail_20' ) start [2025-02-09 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440296', 'tblTempUsageDetail_20' ) end [2025-02-09 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:04:21] Production.INFO: ==15771== Releasing lock... [2025-02-09 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:05:05 [end_date_ymd] => 2025-02-09 23:05:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:05:05' and `end` < '2025-02-09 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-02-09 23:05:18] Production.INFO: count ==851 [2025-02-09 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:05:05 - End Time 2025-02-09 23:05:05 [2025-02-09 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440301', 'tblTempUsageDetail_20' ) start [2025-02-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440301', 'tblTempUsageDetail_20' ) end [2025-02-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440301', 'tblTempVendorCDR_20' ) start [2025-02-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440301', 'tblTempVendorCDR_20' ) end [2025-02-09 23:05:18] Production.INFO: ProcessCDR(1,14440301,1,1,2) [2025-02-09 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440301', 'tblTempUsageDetail_20' ) start [2025-02-09 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440301', 'tblTempUsageDetail_20' ) end [2025-02-09 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:05:21] Production.INFO: ==15930== Releasing lock... [2025-02-09 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:06:06 [end_date_ymd] => 2025-02-09 23:06:06 [RateCDR] => 1 ) [2025-02-09 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:06:06' and `end` < '2025-02-09 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:06:19] Production.INFO: count ==850 [2025-02-09 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:06:06 - End Time 2025-02-09 23:06:06 [2025-02-09 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440306', 'tblTempUsageDetail_20' ) start [2025-02-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440306', 'tblTempUsageDetail_20' ) end [2025-02-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440306', 'tblTempVendorCDR_20' ) start [2025-02-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440306', 'tblTempVendorCDR_20' ) end [2025-02-09 23:06:19] Production.INFO: ProcessCDR(1,14440306,1,1,2) [2025-02-09 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440306', 'tblTempUsageDetail_20' ) start [2025-02-09 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440306', 'tblTempUsageDetail_20' ) end [2025-02-09 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:06:23] Production.INFO: ==16017== Releasing lock... [2025-02-09 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:06:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:07:05 [end_date_ymd] => 2025-02-09 23:07:05 [RateCDR] => 1 ) [2025-02-09 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:07:05' and `end` < '2025-02-09 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:07:18] Production.INFO: count ==854 [2025-02-09 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:07:05 - End Time 2025-02-09 23:07:05 [2025-02-09 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440311', 'tblTempUsageDetail_20' ) start [2025-02-09 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440311', 'tblTempUsageDetail_20' ) end [2025-02-09 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440311', 'tblTempVendorCDR_20' ) start [2025-02-09 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440311', 'tblTempVendorCDR_20' ) end [2025-02-09 23:07:19] Production.INFO: ProcessCDR(1,14440311,1,1,2) [2025-02-09 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440311', 'tblTempUsageDetail_20' ) start [2025-02-09 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440311', 'tblTempUsageDetail_20' ) end [2025-02-09 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:07:23] Production.INFO: ==16102== Releasing lock... [2025-02-09 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:08:05 [end_date_ymd] => 2025-02-09 23:08:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:08:05' and `end` < '2025-02-09 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-02-09 23:08:18] Production.INFO: count ==854 [2025-02-09 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:08:05 - End Time 2025-02-09 23:08:05 [2025-02-09 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440316', 'tblTempUsageDetail_20' ) start [2025-02-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440316', 'tblTempUsageDetail_20' ) end [2025-02-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440316', 'tblTempVendorCDR_20' ) start [2025-02-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440316', 'tblTempVendorCDR_20' ) end [2025-02-09 23:08:18] Production.INFO: ProcessCDR(1,14440316,1,1,2) [2025-02-09 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440316', 'tblTempUsageDetail_20' ) start [2025-02-09 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440316', 'tblTempUsageDetail_20' ) end [2025-02-09 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:08:22] Production.INFO: ==16265== Releasing lock... [2025-02-09 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:09:05 [end_date_ymd] => 2025-02-09 23:09:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:09:05' and `end` < '2025-02-09 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-02-09 23:09:18] Production.INFO: count ==854 [2025-02-09 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:09:05 - End Time 2025-02-09 23:09:05 [2025-02-09 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440321', 'tblTempUsageDetail_20' ) start [2025-02-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440321', 'tblTempUsageDetail_20' ) end [2025-02-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440321', 'tblTempVendorCDR_20' ) start [2025-02-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440321', 'tblTempVendorCDR_20' ) end [2025-02-09 23:09:18] Production.INFO: ProcessCDR(1,14440321,1,1,2) [2025-02-09 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440321', 'tblTempUsageDetail_20' ) start [2025-02-09 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440321', 'tblTempUsageDetail_20' ) end [2025-02-09 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:09:21] Production.INFO: ==16350== Releasing lock... [2025-02-09 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:09:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:10:06 [end_date_ymd] => 2025-02-09 23:10:06 [RateCDR] => 1 ) [2025-02-09 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:10:06' and `end` < '2025-02-09 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:10:19] Production.INFO: count ==852 [2025-02-09 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:10:06 - End Time 2025-02-09 23:10:06 [2025-02-09 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440326', 'tblTempUsageDetail_20' ) start [2025-02-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440326', 'tblTempUsageDetail_20' ) end [2025-02-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440326', 'tblTempVendorCDR_20' ) start [2025-02-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440326', 'tblTempVendorCDR_20' ) end [2025-02-09 23:10:19] Production.INFO: ProcessCDR(1,14440326,1,1,2) [2025-02-09 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440326', 'tblTempUsageDetail_20' ) start [2025-02-09 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440326', 'tblTempUsageDetail_20' ) end [2025-02-09 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:10:24] Production.INFO: ==16437== Releasing lock... [2025-02-09 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:11:05 [end_date_ymd] => 2025-02-09 23:11:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:11:05' and `end` < '2025-02-09 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-02-09 23:11:18] Production.INFO: count ==810 [2025-02-09 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:11:05 - End Time 2025-02-09 23:11:05 [2025-02-09 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440332', 'tblTempUsageDetail_20' ) start [2025-02-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440332', 'tblTempUsageDetail_20' ) end [2025-02-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440332', 'tblTempVendorCDR_20' ) start [2025-02-09 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440332', 'tblTempVendorCDR_20' ) end [2025-02-09 23:11:18] Production.INFO: ProcessCDR(1,14440332,1,1,2) [2025-02-09 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440332', 'tblTempUsageDetail_20' ) start [2025-02-09 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440332', 'tblTempUsageDetail_20' ) end [2025-02-09 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:11:21] Production.INFO: ==16523== Releasing lock... [2025-02-09 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:12:05 [end_date_ymd] => 2025-02-09 23:12:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:12:05' and `end` < '2025-02-09 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-02-09 23:12:18] Production.INFO: count ==810 [2025-02-09 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:12:05 - End Time 2025-02-09 23:12:05 [2025-02-09 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440337', 'tblTempUsageDetail_20' ) start [2025-02-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440337', 'tblTempUsageDetail_20' ) end [2025-02-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440337', 'tblTempVendorCDR_20' ) start [2025-02-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440337', 'tblTempVendorCDR_20' ) end [2025-02-09 23:12:18] Production.INFO: ProcessCDR(1,14440337,1,1,2) [2025-02-09 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440337', 'tblTempUsageDetail_20' ) start [2025-02-09 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440337', 'tblTempUsageDetail_20' ) end [2025-02-09 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:12:21] Production.INFO: ==16684== Releasing lock... [2025-02-09 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:13:05 [end_date_ymd] => 2025-02-09 23:13:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:13:05' and `end` < '2025-02-09 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-02-09 23:13:18] Production.INFO: count ==810 [2025-02-09 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:13:05 - End Time 2025-02-09 23:13:05 [2025-02-09 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440342', 'tblTempUsageDetail_20' ) start [2025-02-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440342', 'tblTempUsageDetail_20' ) end [2025-02-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440342', 'tblTempVendorCDR_20' ) start [2025-02-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440342', 'tblTempVendorCDR_20' ) end [2025-02-09 23:13:18] Production.INFO: ProcessCDR(1,14440342,1,1,2) [2025-02-09 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440342', 'tblTempUsageDetail_20' ) start [2025-02-09 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440342', 'tblTempUsageDetail_20' ) end [2025-02-09 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:13:21] Production.INFO: ==16773== Releasing lock... [2025-02-09 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:14:05 [end_date_ymd] => 2025-02-09 23:14:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:14:05' and `end` < '2025-02-09 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-02-09 23:14:18] Production.INFO: count ==814 [2025-02-09 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:14:05 - End Time 2025-02-09 23:14:05 [2025-02-09 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440347', 'tblTempUsageDetail_20' ) start [2025-02-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440347', 'tblTempUsageDetail_20' ) end [2025-02-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440347', 'tblTempVendorCDR_20' ) start [2025-02-09 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440347', 'tblTempVendorCDR_20' ) end [2025-02-09 23:14:18] Production.INFO: ProcessCDR(1,14440347,1,1,2) [2025-02-09 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440347', 'tblTempUsageDetail_20' ) start [2025-02-09 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440347', 'tblTempUsageDetail_20' ) end [2025-02-09 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:14:21] Production.INFO: ==16856== Releasing lock... [2025-02-09 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:15:05 [end_date_ymd] => 2025-02-09 23:15:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:15:05' and `end` < '2025-02-09 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-02-09 23:15:18] Production.INFO: count ==818 [2025-02-09 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:15:05 - End Time 2025-02-09 23:15:05 [2025-02-09 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440352', 'tblTempUsageDetail_20' ) start [2025-02-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440352', 'tblTempUsageDetail_20' ) end [2025-02-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440352', 'tblTempVendorCDR_20' ) start [2025-02-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440352', 'tblTempVendorCDR_20' ) end [2025-02-09 23:15:18] Production.INFO: ProcessCDR(1,14440352,1,1,2) [2025-02-09 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440352', 'tblTempUsageDetail_20' ) start [2025-02-09 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440352', 'tblTempUsageDetail_20' ) end [2025-02-09 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:15:22] Production.INFO: ==17027== Releasing lock... [2025-02-09 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:16:05 [end_date_ymd] => 2025-02-09 23:16:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:16:05' and `end` < '2025-02-09 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-02-09 23:16:19] Production.INFO: count ==817 [2025-02-09 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:16:05 - End Time 2025-02-09 23:16:05 [2025-02-09 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440357', 'tblTempUsageDetail_20' ) start [2025-02-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440357', 'tblTempUsageDetail_20' ) end [2025-02-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440357', 'tblTempVendorCDR_20' ) start [2025-02-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440357', 'tblTempVendorCDR_20' ) end [2025-02-09 23:16:19] Production.INFO: ProcessCDR(1,14440357,1,1,2) [2025-02-09 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440357', 'tblTempUsageDetail_20' ) start [2025-02-09 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440357', 'tblTempUsageDetail_20' ) end [2025-02-09 23:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:16:24] Production.INFO: ==17104== Releasing lock... [2025-02-09 23:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:16:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-09 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:17:05 [end_date_ymd] => 2025-02-09 23:17:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:17:05' and `end` < '2025-02-09 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-02-09 23:17:18] Production.INFO: count ==806 [2025-02-09 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:17:05 - End Time 2025-02-09 23:17:05 [2025-02-09 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440362', 'tblTempUsageDetail_20' ) start [2025-02-09 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440362', 'tblTempUsageDetail_20' ) end [2025-02-09 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440362', 'tblTempVendorCDR_20' ) start [2025-02-09 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440362', 'tblTempVendorCDR_20' ) end [2025-02-09 23:17:19] Production.INFO: ProcessCDR(1,14440362,1,1,2) [2025-02-09 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440362', 'tblTempUsageDetail_20' ) start [2025-02-09 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440362', 'tblTempUsageDetail_20' ) end [2025-02-09 23:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:17:24] Production.INFO: ==17227== Releasing lock... [2025-02-09 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:17:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:18:05 [end_date_ymd] => 2025-02-09 23:18:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:18:05' and `end` < '2025-02-09 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-02-09 23:18:18] Production.INFO: count ==807 [2025-02-09 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:18:05 - End Time 2025-02-09 23:18:05 [2025-02-09 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440367', 'tblTempUsageDetail_20' ) start [2025-02-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440367', 'tblTempUsageDetail_20' ) end [2025-02-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440367', 'tblTempVendorCDR_20' ) start [2025-02-09 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440367', 'tblTempVendorCDR_20' ) end [2025-02-09 23:18:18] Production.INFO: ProcessCDR(1,14440367,1,1,2) [2025-02-09 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440367', 'tblTempUsageDetail_20' ) start [2025-02-09 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440367', 'tblTempUsageDetail_20' ) end [2025-02-09 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:18:21] Production.INFO: ==17322== Releasing lock... [2025-02-09 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:19:05 [end_date_ymd] => 2025-02-09 23:19:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:19:05' and `end` < '2025-02-09 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-02-09 23:19:19] Production.INFO: count ==809 [2025-02-09 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:19:05 - End Time 2025-02-09 23:19:05 [2025-02-09 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440372', 'tblTempUsageDetail_20' ) start [2025-02-09 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440372', 'tblTempUsageDetail_20' ) end [2025-02-09 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440372', 'tblTempVendorCDR_20' ) start [2025-02-09 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440372', 'tblTempVendorCDR_20' ) end [2025-02-09 23:19:19] Production.INFO: ProcessCDR(1,14440372,1,1,2) [2025-02-09 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440372', 'tblTempUsageDetail_20' ) start [2025-02-09 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440372', 'tblTempUsageDetail_20' ) end [2025-02-09 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:19:22] Production.INFO: ==17408== Releasing lock... [2025-02-09 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:20:06 [end_date_ymd] => 2025-02-09 23:20:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:20:06' and `end` < '2025-02-09 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-02-09 23:20:19] Production.INFO: count ==804 [2025-02-09 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:20:06 - End Time 2025-02-09 23:20:06 [2025-02-09 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440378', 'tblTempUsageDetail_20' ) start [2025-02-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440378', 'tblTempUsageDetail_20' ) end [2025-02-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440378', 'tblTempVendorCDR_20' ) start [2025-02-09 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440378', 'tblTempVendorCDR_20' ) end [2025-02-09 23:20:19] Production.INFO: ProcessCDR(1,14440378,1,1,2) [2025-02-09 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440378', 'tblTempUsageDetail_20' ) start [2025-02-09 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440378', 'tblTempUsageDetail_20' ) end [2025-02-09 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:20:24] Production.INFO: ==17492== Releasing lock... [2025-02-09 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:20:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-09 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:21:06 [end_date_ymd] => 2025-02-09 23:21:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:21:06' and `end` < '2025-02-09 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-02-09 23:21:19] Production.INFO: count ==775 [2025-02-09 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:21:06 - End Time 2025-02-09 23:21:06 [2025-02-09 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440383', 'tblTempUsageDetail_20' ) start [2025-02-09 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440383', 'tblTempUsageDetail_20' ) end [2025-02-09 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440383', 'tblTempVendorCDR_20' ) start [2025-02-09 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440383', 'tblTempVendorCDR_20' ) end [2025-02-09 23:21:19] Production.INFO: ProcessCDR(1,14440383,1,1,2) [2025-02-09 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440383', 'tblTempUsageDetail_20' ) start [2025-02-09 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440383', 'tblTempUsageDetail_20' ) end [2025-02-09 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:21:22] Production.INFO: ==17580== Releasing lock... [2025-02-09 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:21:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:22:05 [end_date_ymd] => 2025-02-09 23:22:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:22:05' and `end` < '2025-02-09 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-02-09 23:22:18] Production.INFO: count ==774 [2025-02-09 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:22:05 - End Time 2025-02-09 23:22:05 [2025-02-09 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440388', 'tblTempUsageDetail_20' ) start [2025-02-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440388', 'tblTempUsageDetail_20' ) end [2025-02-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440388', 'tblTempVendorCDR_20' ) start [2025-02-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440388', 'tblTempVendorCDR_20' ) end [2025-02-09 23:22:18] Production.INFO: ProcessCDR(1,14440388,1,1,2) [2025-02-09 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440388', 'tblTempUsageDetail_20' ) start [2025-02-09 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440388', 'tblTempUsageDetail_20' ) end [2025-02-09 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:22:21] Production.INFO: ==17662== Releasing lock... [2025-02-09 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:22:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:23:06 [end_date_ymd] => 2025-02-09 23:23:06 [RateCDR] => 1 ) [2025-02-09 23: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-02-09 20:23:06' and `end` < '2025-02-09 23: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-02-09 23:23:21] Production.INFO: count ==772 [2025-02-09 23:23:21] Production.ERROR: pbx CDR StartTime 2025-02-09 20:23:06 - End Time 2025-02-09 23:23:06 [2025-02-09 23:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440393', 'tblTempUsageDetail_20' ) start [2025-02-09 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440393', 'tblTempUsageDetail_20' ) end [2025-02-09 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440393', 'tblTempVendorCDR_20' ) start [2025-02-09 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440393', 'tblTempVendorCDR_20' ) end [2025-02-09 23:23:21] Production.INFO: ProcessCDR(1,14440393,1,1,2) [2025-02-09 23:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440393', 'tblTempUsageDetail_20' ) start [2025-02-09 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440393', 'tblTempUsageDetail_20' ) end [2025-02-09 23:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:23:24] Production.INFO: ==17742== Releasing lock... [2025-02-09 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:23:24] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:24:05 [end_date_ymd] => 2025-02-09 23:24:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:24:05' and `end` < '2025-02-09 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-02-09 23:24:18] Production.INFO: count ==772 [2025-02-09 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:24:05 - End Time 2025-02-09 23:24:05 [2025-02-09 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440398', 'tblTempUsageDetail_20' ) start [2025-02-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440398', 'tblTempUsageDetail_20' ) end [2025-02-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440398', 'tblTempVendorCDR_20' ) start [2025-02-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440398', 'tblTempVendorCDR_20' ) end [2025-02-09 23:24:18] Production.INFO: ProcessCDR(1,14440398,1,1,2) [2025-02-09 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440398', 'tblTempUsageDetail_20' ) start [2025-02-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440398', 'tblTempUsageDetail_20' ) end [2025-02-09 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:24:21] Production.INFO: ==17821== Releasing lock... [2025-02-09 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:24:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:25:05 [end_date_ymd] => 2025-02-09 23:25:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:25:05' and `end` < '2025-02-09 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-02-09 23:25:18] Production.INFO: count ==770 [2025-02-09 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:25:05 - End Time 2025-02-09 23:25:05 [2025-02-09 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440403', 'tblTempUsageDetail_20' ) start [2025-02-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440403', 'tblTempUsageDetail_20' ) end [2025-02-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440403', 'tblTempVendorCDR_20' ) start [2025-02-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440403', 'tblTempVendorCDR_20' ) end [2025-02-09 23:25:18] Production.INFO: ProcessCDR(1,14440403,1,1,2) [2025-02-09 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440403', 'tblTempUsageDetail_20' ) start [2025-02-09 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440403', 'tblTempUsageDetail_20' ) end [2025-02-09 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:25:21] Production.INFO: ==17898== Releasing lock... [2025-02-09 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:25:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:26:04 [end_date_ymd] => 2025-02-09 23:26:04 [RateCDR] => 1 ) [2025-02-09 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:26:04' and `end` < '2025-02-09 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:26:18] Production.INFO: count ==773 [2025-02-09 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:26:04 - End Time 2025-02-09 23:26:04 [2025-02-09 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440408', 'tblTempUsageDetail_20' ) start [2025-02-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440408', 'tblTempUsageDetail_20' ) end [2025-02-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440408', 'tblTempVendorCDR_20' ) start [2025-02-09 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440408', 'tblTempVendorCDR_20' ) end [2025-02-09 23:26:18] Production.INFO: ProcessCDR(1,14440408,1,1,2) [2025-02-09 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440408', 'tblTempUsageDetail_20' ) start [2025-02-09 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440408', 'tblTempUsageDetail_20' ) end [2025-02-09 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:26:22] Production.INFO: ==17978== Releasing lock... [2025-02-09 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:26:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:27:05 [end_date_ymd] => 2025-02-09 23:27:05 [RateCDR] => 1 ) [2025-02-09 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:27:05' and `end` < '2025-02-09 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:27:18] Production.INFO: count ==777 [2025-02-09 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:27:05 - End Time 2025-02-09 23:27:05 [2025-02-09 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440413', 'tblTempUsageDetail_20' ) start [2025-02-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440413', 'tblTempUsageDetail_20' ) end [2025-02-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440413', 'tblTempVendorCDR_20' ) start [2025-02-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440413', 'tblTempVendorCDR_20' ) end [2025-02-09 23:27:18] Production.INFO: ProcessCDR(1,14440413,1,1,2) [2025-02-09 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440413', 'tblTempUsageDetail_20' ) start [2025-02-09 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440413', 'tblTempUsageDetail_20' ) end [2025-02-09 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:27:22] Production.INFO: ==18055== Releasing lock... [2025-02-09 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:27:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:28:04 [end_date_ymd] => 2025-02-09 23:28:04 [RateCDR] => 1 ) [2025-02-09 23:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:28:04' and `end` < '2025-02-09 23:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:28:17] Production.INFO: count ==777 [2025-02-09 23:28:17] Production.ERROR: pbx CDR StartTime 2025-02-09 20:28:04 - End Time 2025-02-09 23:28:04 [2025-02-09 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440418', 'tblTempUsageDetail_20' ) start [2025-02-09 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440418', 'tblTempUsageDetail_20' ) end [2025-02-09 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440418', 'tblTempVendorCDR_20' ) start [2025-02-09 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440418', 'tblTempVendorCDR_20' ) end [2025-02-09 23:28:17] Production.INFO: ProcessCDR(1,14440418,1,1,2) [2025-02-09 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440418', 'tblTempUsageDetail_20' ) start [2025-02-09 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440418', 'tblTempUsageDetail_20' ) end [2025-02-09 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:28:20] Production.INFO: ==18135== Releasing lock... [2025-02-09 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:28:20] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:29:05 [end_date_ymd] => 2025-02-09 23:29:05 [RateCDR] => 1 ) [2025-02-09 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:29:05' and `end` < '2025-02-09 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:29:20] Production.INFO: count ==776 [2025-02-09 23:29:20] Production.ERROR: pbx CDR StartTime 2025-02-09 20:29:05 - End Time 2025-02-09 23:29:05 [2025-02-09 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440423', 'tblTempUsageDetail_20' ) start [2025-02-09 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440423', 'tblTempUsageDetail_20' ) end [2025-02-09 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440423', 'tblTempVendorCDR_20' ) start [2025-02-09 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440423', 'tblTempVendorCDR_20' ) end [2025-02-09 23:29:20] Production.INFO: ProcessCDR(1,14440423,1,1,2) [2025-02-09 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440423', 'tblTempUsageDetail_20' ) start [2025-02-09 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440423', 'tblTempUsageDetail_20' ) end [2025-02-09 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:29:23] Production.INFO: ==18218== Releasing lock... [2025-02-09 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:29:23] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:30:06 [end_date_ymd] => 2025-02-09 23:30:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:30:06' and `end` < '2025-02-09 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-02-09 23:30:19] Production.INFO: count ==776 [2025-02-09 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:30:06 - End Time 2025-02-09 23:30:06 [2025-02-09 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440429', 'tblTempUsageDetail_20' ) start [2025-02-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440429', 'tblTempUsageDetail_20' ) end [2025-02-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440429', 'tblTempVendorCDR_20' ) start [2025-02-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440429', 'tblTempVendorCDR_20' ) end [2025-02-09 23:30:19] Production.INFO: ProcessCDR(1,14440429,1,1,2) [2025-02-09 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440429', 'tblTempUsageDetail_20' ) start [2025-02-09 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440429', 'tblTempUsageDetail_20' ) end [2025-02-09 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:30:22] Production.INFO: ==18299== Releasing lock... [2025-02-09 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:30:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:31:05 [end_date_ymd] => 2025-02-09 23:31:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:31:05' and `end` < '2025-02-09 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-02-09 23:31:18] Production.INFO: count ==780 [2025-02-09 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:31:05 - End Time 2025-02-09 23:31:05 [2025-02-09 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440434', 'tblTempUsageDetail_20' ) start [2025-02-09 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440434', 'tblTempUsageDetail_20' ) end [2025-02-09 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440434', 'tblTempVendorCDR_20' ) start [2025-02-09 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440434', 'tblTempVendorCDR_20' ) end [2025-02-09 23:31:19] Production.INFO: ProcessCDR(1,14440434,1,1,2) [2025-02-09 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440434', 'tblTempUsageDetail_20' ) start [2025-02-09 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440434', 'tblTempUsageDetail_20' ) end [2025-02-09 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:31:22] Production.INFO: ==18377== Releasing lock... [2025-02-09 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:31:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:32:05 [end_date_ymd] => 2025-02-09 23:32:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:32:05' and `end` < '2025-02-09 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-02-09 23:32:18] Production.INFO: count ==776 [2025-02-09 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:32:05 - End Time 2025-02-09 23:32:05 [2025-02-09 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440439', 'tblTempUsageDetail_20' ) start [2025-02-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440439', 'tblTempUsageDetail_20' ) end [2025-02-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440439', 'tblTempVendorCDR_20' ) start [2025-02-09 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440439', 'tblTempVendorCDR_20' ) end [2025-02-09 23:32:19] Production.INFO: ProcessCDR(1,14440439,1,1,2) [2025-02-09 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440439', 'tblTempUsageDetail_20' ) start [2025-02-09 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440439', 'tblTempUsageDetail_20' ) end [2025-02-09 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:32:22] Production.INFO: ==18502== Releasing lock... [2025-02-09 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:32:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:33:04 [end_date_ymd] => 2025-02-09 23:33:04 [RateCDR] => 1 ) [2025-02-09 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:33:04' and `end` < '2025-02-09 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:33:18] Production.INFO: count ==778 [2025-02-09 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:33:04 - End Time 2025-02-09 23:33:04 [2025-02-09 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440444', 'tblTempUsageDetail_20' ) start [2025-02-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440444', 'tblTempUsageDetail_20' ) end [2025-02-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440444', 'tblTempVendorCDR_20' ) start [2025-02-09 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440444', 'tblTempVendorCDR_20' ) end [2025-02-09 23:33:18] Production.INFO: ProcessCDR(1,14440444,1,1,2) [2025-02-09 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440444', 'tblTempUsageDetail_20' ) start [2025-02-09 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440444', 'tblTempUsageDetail_20' ) end [2025-02-09 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:33:21] Production.INFO: ==18604== Releasing lock... [2025-02-09 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:33:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:34:05 [end_date_ymd] => 2025-02-09 23:34:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:34:05' and `end` < '2025-02-09 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-02-09 23:34:19] Production.INFO: count ==774 [2025-02-09 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:34:05 - End Time 2025-02-09 23:34:05 [2025-02-09 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440449', 'tblTempUsageDetail_20' ) start [2025-02-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440449', 'tblTempUsageDetail_20' ) end [2025-02-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440449', 'tblTempVendorCDR_20' ) start [2025-02-09 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440449', 'tblTempVendorCDR_20' ) end [2025-02-09 23:34:19] Production.INFO: ProcessCDR(1,14440449,1,1,2) [2025-02-09 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440449', 'tblTempUsageDetail_20' ) start [2025-02-09 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440449', 'tblTempUsageDetail_20' ) end [2025-02-09 23:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:34:24] Production.INFO: ==18683== Releasing lock... [2025-02-09 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:34:24] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:35:05 [end_date_ymd] => 2025-02-09 23:35:05 [RateCDR] => 1 ) [2025-02-09 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:35:05' and `end` < '2025-02-09 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:35:18] Production.INFO: count ==773 [2025-02-09 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:35:05 - End Time 2025-02-09 23:35:05 [2025-02-09 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440454', 'tblTempUsageDetail_20' ) start [2025-02-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440454', 'tblTempUsageDetail_20' ) end [2025-02-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440454', 'tblTempVendorCDR_20' ) start [2025-02-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440454', 'tblTempVendorCDR_20' ) end [2025-02-09 23:35:18] Production.INFO: ProcessCDR(1,14440454,1,1,2) [2025-02-09 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440454', 'tblTempUsageDetail_20' ) start [2025-02-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440454', 'tblTempUsageDetail_20' ) end [2025-02-09 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:35:21] Production.INFO: ==18770== Releasing lock... [2025-02-09 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:35:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:36:05 [end_date_ymd] => 2025-02-09 23:36:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:36:05' and `end` < '2025-02-09 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-02-09 23:36:18] Production.INFO: count ==777 [2025-02-09 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:36:05 - End Time 2025-02-09 23:36:05 [2025-02-09 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440459', 'tblTempUsageDetail_20' ) start [2025-02-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440459', 'tblTempUsageDetail_20' ) end [2025-02-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440459', 'tblTempVendorCDR_20' ) start [2025-02-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440459', 'tblTempVendorCDR_20' ) end [2025-02-09 23:36:18] Production.INFO: ProcessCDR(1,14440459,1,1,2) [2025-02-09 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440459', 'tblTempUsageDetail_20' ) start [2025-02-09 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440459', 'tblTempUsageDetail_20' ) end [2025-02-09 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:36:21] Production.INFO: ==18852== Releasing lock... [2025-02-09 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:36:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:37:06 [end_date_ymd] => 2025-02-09 23:37:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:37:06' and `end` < '2025-02-09 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-02-09 23:37:19] Production.INFO: count ==776 [2025-02-09 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:37:06 - End Time 2025-02-09 23:37:06 [2025-02-09 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440464', 'tblTempUsageDetail_20' ) start [2025-02-09 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440464', 'tblTempUsageDetail_20' ) end [2025-02-09 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440464', 'tblTempVendorCDR_20' ) start [2025-02-09 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440464', 'tblTempVendorCDR_20' ) end [2025-02-09 23:37:19] Production.INFO: ProcessCDR(1,14440464,1,1,2) [2025-02-09 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440464', 'tblTempUsageDetail_20' ) start [2025-02-09 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440464', 'tblTempUsageDetail_20' ) end [2025-02-09 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:37:22] Production.INFO: ==18930== Releasing lock... [2025-02-09 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:37:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:38:05 [end_date_ymd] => 2025-02-09 23:38:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:38:05' and `end` < '2025-02-09 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-02-09 23:38:18] Production.INFO: count ==774 [2025-02-09 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:38:05 - End Time 2025-02-09 23:38:05 [2025-02-09 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440469', 'tblTempUsageDetail_20' ) start [2025-02-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440469', 'tblTempUsageDetail_20' ) end [2025-02-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440469', 'tblTempVendorCDR_20' ) start [2025-02-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440469', 'tblTempVendorCDR_20' ) end [2025-02-09 23:38:18] Production.INFO: ProcessCDR(1,14440469,1,1,2) [2025-02-09 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440469', 'tblTempUsageDetail_20' ) start [2025-02-09 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440469', 'tblTempUsageDetail_20' ) end [2025-02-09 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:38:21] Production.INFO: ==19014== Releasing lock... [2025-02-09 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:38:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:39:05 [end_date_ymd] => 2025-02-09 23:39:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:39:05' and `end` < '2025-02-09 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-02-09 23:39:18] Production.INFO: count ==774 [2025-02-09 23:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:39:05 - End Time 2025-02-09 23:39:05 [2025-02-09 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440474', 'tblTempUsageDetail_20' ) start [2025-02-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440474', 'tblTempUsageDetail_20' ) end [2025-02-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440474', 'tblTempVendorCDR_20' ) start [2025-02-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440474', 'tblTempVendorCDR_20' ) end [2025-02-09 23:39:18] Production.INFO: ProcessCDR(1,14440474,1,1,2) [2025-02-09 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440474', 'tblTempUsageDetail_20' ) start [2025-02-09 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440474', 'tblTempUsageDetail_20' ) end [2025-02-09 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:39:21] Production.INFO: ==19093== Releasing lock... [2025-02-09 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:39:21] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:40:06 [end_date_ymd] => 2025-02-09 23:40:06 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:40:06' and `end` < '2025-02-09 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-02-09 23:40:19] Production.INFO: count ==772 [2025-02-09 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:40:06 - End Time 2025-02-09 23:40:06 [2025-02-09 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440479', 'tblTempUsageDetail_20' ) start [2025-02-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440479', 'tblTempUsageDetail_20' ) end [2025-02-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440479', 'tblTempVendorCDR_20' ) start [2025-02-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440479', 'tblTempVendorCDR_20' ) end [2025-02-09 23:40:19] Production.INFO: ProcessCDR(1,14440479,1,1,2) [2025-02-09 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440479', 'tblTempUsageDetail_20' ) start [2025-02-09 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440479', 'tblTempUsageDetail_20' ) end [2025-02-09 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:40:22] Production.INFO: ==19176== Releasing lock... [2025-02-09 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:40:22] Production.INFO: 33 MB #Memory Used# [2025-02-09 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:41:05 [end_date_ymd] => 2025-02-09 23:41:05 [RateCDR] => 1 ) [2025-02-09 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:41:05' and `end` < '2025-02-09 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:41:18] Production.INFO: count ==751 [2025-02-09 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:41:05 - End Time 2025-02-09 23:41:05 [2025-02-09 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440485', 'tblTempUsageDetail_20' ) start [2025-02-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440485', 'tblTempUsageDetail_20' ) end [2025-02-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440485', 'tblTempVendorCDR_20' ) start [2025-02-09 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440485', 'tblTempVendorCDR_20' ) end [2025-02-09 23:41:18] Production.INFO: ProcessCDR(1,14440485,1,1,2) [2025-02-09 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440485', 'tblTempUsageDetail_20' ) start [2025-02-09 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440485', 'tblTempUsageDetail_20' ) end [2025-02-09 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:41:21] Production.INFO: ==19258== Releasing lock... [2025-02-09 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:42:05 [end_date_ymd] => 2025-02-09 23:42:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:42:05' and `end` < '2025-02-09 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-02-09 23:42:19] Production.INFO: count ==751 [2025-02-09 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:42:05 - End Time 2025-02-09 23:42:05 [2025-02-09 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440490', 'tblTempUsageDetail_20' ) start [2025-02-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440490', 'tblTempUsageDetail_20' ) end [2025-02-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440490', 'tblTempVendorCDR_20' ) start [2025-02-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440490', 'tblTempVendorCDR_20' ) end [2025-02-09 23:42:19] Production.INFO: ProcessCDR(1,14440490,1,1,2) [2025-02-09 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440490', 'tblTempUsageDetail_20' ) start [2025-02-09 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440490', 'tblTempUsageDetail_20' ) end [2025-02-09 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:42:22] Production.INFO: ==19332== Releasing lock... [2025-02-09 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:43:05 [end_date_ymd] => 2025-02-09 23:43:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:43:05' and `end` < '2025-02-09 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-02-09 23:43:18] Production.INFO: count ==741 [2025-02-09 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:43:05 - End Time 2025-02-09 23:43:05 [2025-02-09 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440495', 'tblTempUsageDetail_20' ) start [2025-02-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440495', 'tblTempUsageDetail_20' ) end [2025-02-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440495', 'tblTempVendorCDR_20' ) start [2025-02-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440495', 'tblTempVendorCDR_20' ) end [2025-02-09 23:43:18] Production.INFO: ProcessCDR(1,14440495,1,1,2) [2025-02-09 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440495', 'tblTempUsageDetail_20' ) start [2025-02-09 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440495', 'tblTempUsageDetail_20' ) end [2025-02-09 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:43:22] Production.INFO: ==19407== Releasing lock... [2025-02-09 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:44:05 [end_date_ymd] => 2025-02-09 23:44:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:44:05' and `end` < '2025-02-09 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-02-09 23:44:18] Production.INFO: count ==741 [2025-02-09 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:44:05 - End Time 2025-02-09 23:44:05 [2025-02-09 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440500', 'tblTempUsageDetail_20' ) start [2025-02-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440500', 'tblTempUsageDetail_20' ) end [2025-02-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440500', 'tblTempVendorCDR_20' ) start [2025-02-09 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440500', 'tblTempVendorCDR_20' ) end [2025-02-09 23:44:18] Production.INFO: ProcessCDR(1,14440500,1,1,2) [2025-02-09 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440500', 'tblTempUsageDetail_20' ) start [2025-02-09 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440500', 'tblTempUsageDetail_20' ) end [2025-02-09 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:44:21] Production.INFO: ==19484== Releasing lock... [2025-02-09 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:45:05 [end_date_ymd] => 2025-02-09 23:45:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:45:05' and `end` < '2025-02-09 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-02-09 23:45:18] Production.INFO: count ==741 [2025-02-09 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:45:05 - End Time 2025-02-09 23:45:05 [2025-02-09 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440505', 'tblTempUsageDetail_20' ) start [2025-02-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440505', 'tblTempUsageDetail_20' ) end [2025-02-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440505', 'tblTempVendorCDR_20' ) start [2025-02-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440505', 'tblTempVendorCDR_20' ) end [2025-02-09 23:45:18] Production.INFO: ProcessCDR(1,14440505,1,1,2) [2025-02-09 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440505', 'tblTempUsageDetail_20' ) start [2025-02-09 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440505', 'tblTempUsageDetail_20' ) end [2025-02-09 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:45:22] Production.INFO: ==19560== Releasing lock... [2025-02-09 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:46:05 [end_date_ymd] => 2025-02-09 23:46:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:46:05' and `end` < '2025-02-09 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-02-09 23:46:18] Production.INFO: count ==739 [2025-02-09 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:46:05 - End Time 2025-02-09 23:46:05 [2025-02-09 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440510', 'tblTempUsageDetail_20' ) start [2025-02-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440510', 'tblTempUsageDetail_20' ) end [2025-02-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440510', 'tblTempVendorCDR_20' ) start [2025-02-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440510', 'tblTempVendorCDR_20' ) end [2025-02-09 23:46:18] Production.INFO: ProcessCDR(1,14440510,1,1,2) [2025-02-09 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440510', 'tblTempUsageDetail_20' ) start [2025-02-09 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440510', 'tblTempUsageDetail_20' ) end [2025-02-09 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:46:21] Production.INFO: ==19631== Releasing lock... [2025-02-09 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:47:05 [end_date_ymd] => 2025-02-09 23:47:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:47:05' and `end` < '2025-02-09 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-02-09 23:47:20] Production.INFO: count ==739 [2025-02-09 23:47:20] Production.ERROR: pbx CDR StartTime 2025-02-09 20:47:05 - End Time 2025-02-09 23:47:05 [2025-02-09 23:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440515', 'tblTempUsageDetail_20' ) start [2025-02-09 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440515', 'tblTempUsageDetail_20' ) end [2025-02-09 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440515', 'tblTempVendorCDR_20' ) start [2025-02-09 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440515', 'tblTempVendorCDR_20' ) end [2025-02-09 23:47:20] Production.INFO: ProcessCDR(1,14440515,1,1,2) [2025-02-09 23:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440515', 'tblTempUsageDetail_20' ) start [2025-02-09 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440515', 'tblTempUsageDetail_20' ) end [2025-02-09 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:47:23] Production.INFO: ==19744== Releasing lock... [2025-02-09 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:48:05 [end_date_ymd] => 2025-02-09 23:48:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:48:05' and `end` < '2025-02-09 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-02-09 23:48:19] Production.INFO: count ==737 [2025-02-09 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:48:05 - End Time 2025-02-09 23:48:05 [2025-02-09 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440520', 'tblTempUsageDetail_20' ) start [2025-02-09 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440520', 'tblTempUsageDetail_20' ) end [2025-02-09 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440520', 'tblTempVendorCDR_20' ) start [2025-02-09 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440520', 'tblTempVendorCDR_20' ) end [2025-02-09 23:48:19] Production.INFO: ProcessCDR(1,14440520,1,1,2) [2025-02-09 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440520', 'tblTempUsageDetail_20' ) start [2025-02-09 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440520', 'tblTempUsageDetail_20' ) end [2025-02-09 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:48:22] Production.INFO: ==19820== Releasing lock... [2025-02-09 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:49:05 [end_date_ymd] => 2025-02-09 23:49:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:49:05' and `end` < '2025-02-09 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-02-09 23:49:18] Production.INFO: count ==736 [2025-02-09 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:49:05 - End Time 2025-02-09 23:49:05 [2025-02-09 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440525', 'tblTempUsageDetail_20' ) start [2025-02-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440525', 'tblTempUsageDetail_20' ) end [2025-02-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440525', 'tblTempVendorCDR_20' ) start [2025-02-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440525', 'tblTempVendorCDR_20' ) end [2025-02-09 23:49:18] Production.INFO: ProcessCDR(1,14440525,1,1,2) [2025-02-09 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440525', 'tblTempUsageDetail_20' ) start [2025-02-09 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440525', 'tblTempUsageDetail_20' ) end [2025-02-09 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:49:22] Production.INFO: ==19893== Releasing lock... [2025-02-09 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:49:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:50:05 [end_date_ymd] => 2025-02-09 23:50:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:50:05' and `end` < '2025-02-09 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-02-09 23:50:18] Production.INFO: count ==736 [2025-02-09 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:50:05 - End Time 2025-02-09 23:50:05 [2025-02-09 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440531', 'tblTempUsageDetail_20' ) start [2025-02-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440531', 'tblTempUsageDetail_20' ) end [2025-02-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440531', 'tblTempVendorCDR_20' ) start [2025-02-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440531', 'tblTempVendorCDR_20' ) end [2025-02-09 23:50:18] Production.INFO: ProcessCDR(1,14440531,1,1,2) [2025-02-09 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440531', 'tblTempUsageDetail_20' ) start [2025-02-09 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440531', 'tblTempUsageDetail_20' ) end [2025-02-09 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:50:21] Production.INFO: ==19970== Releasing lock... [2025-02-09 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:51:04 [end_date_ymd] => 2025-02-09 23:51:04 [RateCDR] => 1 ) [2025-02-09 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:51:04' and `end` < '2025-02-09 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:51:19] Production.INFO: count ==718 [2025-02-09 23:51:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:51:04 - End Time 2025-02-09 23:51:04 [2025-02-09 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440536', 'tblTempUsageDetail_20' ) start [2025-02-09 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440536', 'tblTempUsageDetail_20' ) end [2025-02-09 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440536', 'tblTempVendorCDR_20' ) start [2025-02-09 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440536', 'tblTempVendorCDR_20' ) end [2025-02-09 23:51:19] Production.INFO: ProcessCDR(1,14440536,1,1,2) [2025-02-09 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440536', 'tblTempUsageDetail_20' ) start [2025-02-09 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440536', 'tblTempUsageDetail_20' ) end [2025-02-09 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:51:23] Production.INFO: ==20044== Releasing lock... [2025-02-09 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:52:05 [end_date_ymd] => 2025-02-09 23:52:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:52:05' and `end` < '2025-02-09 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-02-09 23:52:18] Production.INFO: count ==715 [2025-02-09 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:52:05 - End Time 2025-02-09 23:52:05 [2025-02-09 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440541', 'tblTempUsageDetail_20' ) start [2025-02-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440541', 'tblTempUsageDetail_20' ) end [2025-02-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440541', 'tblTempVendorCDR_20' ) start [2025-02-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440541', 'tblTempVendorCDR_20' ) end [2025-02-09 23:52:18] Production.INFO: ProcessCDR(1,14440541,1,1,2) [2025-02-09 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440541', 'tblTempUsageDetail_20' ) start [2025-02-09 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440541', 'tblTempUsageDetail_20' ) end [2025-02-09 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:52:22] Production.INFO: ==20116== Releasing lock... [2025-02-09 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:53:05 [end_date_ymd] => 2025-02-09 23:53:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:53:05' and `end` < '2025-02-09 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-02-09 23:53:17] Production.INFO: count ==715 [2025-02-09 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:53:05 - End Time 2025-02-09 23:53:05 [2025-02-09 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440546', 'tblTempUsageDetail_20' ) start [2025-02-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440546', 'tblTempUsageDetail_20' ) end [2025-02-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440546', 'tblTempVendorCDR_20' ) start [2025-02-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440546', 'tblTempVendorCDR_20' ) end [2025-02-09 23:53:18] Production.INFO: ProcessCDR(1,14440546,1,1,2) [2025-02-09 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440546', 'tblTempUsageDetail_20' ) start [2025-02-09 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440546', 'tblTempUsageDetail_20' ) end [2025-02-09 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:53:21] Production.INFO: ==20191== Releasing lock... [2025-02-09 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:54:05 [end_date_ymd] => 2025-02-09 23:54:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:54:05' and `end` < '2025-02-09 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-02-09 23:54:19] Production.INFO: count ==716 [2025-02-09 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-09 20:54:05 - End Time 2025-02-09 23:54:05 [2025-02-09 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440551', 'tblTempUsageDetail_20' ) start [2025-02-09 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440551', 'tblTempUsageDetail_20' ) end [2025-02-09 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440551', 'tblTempVendorCDR_20' ) start [2025-02-09 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440551', 'tblTempVendorCDR_20' ) end [2025-02-09 23:54:19] Production.INFO: ProcessCDR(1,14440551,1,1,2) [2025-02-09 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440551', 'tblTempUsageDetail_20' ) start [2025-02-09 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440551', 'tblTempUsageDetail_20' ) end [2025-02-09 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:54:23] Production.INFO: ==20272== Releasing lock... [2025-02-09 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:54:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:55:05 [end_date_ymd] => 2025-02-09 23:55:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:55:05' and `end` < '2025-02-09 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-02-09 23:55:18] Production.INFO: count ==716 [2025-02-09 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:55:05 - End Time 2025-02-09 23:55:05 [2025-02-09 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440556', 'tblTempUsageDetail_20' ) start [2025-02-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440556', 'tblTempUsageDetail_20' ) end [2025-02-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440556', 'tblTempVendorCDR_20' ) start [2025-02-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440556', 'tblTempVendorCDR_20' ) end [2025-02-09 23:55:18] Production.INFO: ProcessCDR(1,14440556,1,1,2) [2025-02-09 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440556', 'tblTempUsageDetail_20' ) start [2025-02-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440556', 'tblTempUsageDetail_20' ) end [2025-02-09 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:55:21] Production.INFO: ==20343== Releasing lock... [2025-02-09 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:56:05 [end_date_ymd] => 2025-02-09 23:56:05 [RateCDR] => 1 ) [2025-02-09 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:56:05' and `end` < '2025-02-09 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:56:18] Production.INFO: count ==716 [2025-02-09 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:56:05 - End Time 2025-02-09 23:56:05 [2025-02-09 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440561', 'tblTempUsageDetail_20' ) start [2025-02-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440561', 'tblTempUsageDetail_20' ) end [2025-02-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440561', 'tblTempVendorCDR_20' ) start [2025-02-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440561', 'tblTempVendorCDR_20' ) end [2025-02-09 23:56:18] Production.INFO: ProcessCDR(1,14440561,1,1,2) [2025-02-09 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440561', 'tblTempUsageDetail_20' ) start [2025-02-09 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440561', 'tblTempUsageDetail_20' ) end [2025-02-09 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:56:21] Production.INFO: ==20418== Releasing lock... [2025-02-09 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:57:05 [end_date_ymd] => 2025-02-09 23:57:05 [RateCDR] => 1 ) [2025-02-09 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 20:57:05' and `end` < '2025-02-09 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-09 23:57:18] Production.INFO: count ==719 [2025-02-09 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:57:05 - End Time 2025-02-09 23:57:05 [2025-02-09 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440566', 'tblTempUsageDetail_20' ) start [2025-02-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440566', 'tblTempUsageDetail_20' ) end [2025-02-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440566', 'tblTempVendorCDR_20' ) start [2025-02-09 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440566', 'tblTempVendorCDR_20' ) end [2025-02-09 23:57:18] Production.INFO: ProcessCDR(1,14440566,1,1,2) [2025-02-09 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440566', 'tblTempUsageDetail_20' ) start [2025-02-09 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440566', 'tblTempUsageDetail_20' ) end [2025-02-09 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:57:21] Production.INFO: ==20492== Releasing lock... [2025-02-09 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:58:05 [end_date_ymd] => 2025-02-09 23:58:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:58:05' and `end` < '2025-02-09 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-02-09 23:58:18] Production.INFO: count ==719 [2025-02-09 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:58:05 - End Time 2025-02-09 23:58:05 [2025-02-09 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440571', 'tblTempUsageDetail_20' ) start [2025-02-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440571', 'tblTempUsageDetail_20' ) end [2025-02-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440571', 'tblTempVendorCDR_20' ) start [2025-02-09 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440571', 'tblTempVendorCDR_20' ) end [2025-02-09 23:58:18] Production.INFO: ProcessCDR(1,14440571,1,1,2) [2025-02-09 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440571', 'tblTempUsageDetail_20' ) start [2025-02-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440571', 'tblTempUsageDetail_20' ) end [2025-02-09 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:58:23] Production.INFO: ==20566== Releasing lock... [2025-02-09 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:58:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-09 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 20:59:05 [end_date_ymd] => 2025-02-09 23:59:05 [RateCDR] => 1 ) [2025-02-09 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-02-09 20:59:05' and `end` < '2025-02-09 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-02-09 23:59:18] Production.INFO: count ==719 [2025-02-09 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 20:59:05 - End Time 2025-02-09 23:59:05 [2025-02-09 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440575', 'tblTempUsageDetail_20' ) start [2025-02-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440575', 'tblTempUsageDetail_20' ) end [2025-02-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440575', 'tblTempVendorCDR_20' ) start [2025-02-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440575', 'tblTempVendorCDR_20' ) end [2025-02-09 23:59:18] Production.INFO: ProcessCDR(1,14440575,1,1,2) [2025-02-09 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-09 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440575', 'tblTempUsageDetail_20' ) start [2025-02-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440575', 'tblTempUsageDetail_20' ) end [2025-02-09 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-09 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-09 23:59:21] Production.INFO: ==20642== Releasing lock... [2025-02-09 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-09 23:59:21] Production.INFO: 32.75 MB #Memory Used#